一直是waitring。。。。
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch : {
jade : {
files : ['view/**'],
options : {
livereload : true
}
},
js : {
files : ['punlic/js/**', 'models/**/*.js', 'sechemas/**/*.js'],
//task : ['jshint'],
options : {
livereload : true
}
}
},
nodemon : {
dev : {
options : {
files : "app.js",
script:'app.js',
args : [],
ignoredFiles : ['README.md', 'node_modules/**', '.DS_Store'],
watchedExtensions : ['js'],
watchedFolders : ['app', 'config'],
debug : true,
delayTime : 1,
env : {
PORT : 3000
},
cwd : __dirname
}
}
},
concurrent : {
task : ['nodemon', 'watch'],
options : {
logConcurrentOutput : true
}
}
})
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-concurrent');
grunt.option('force', false);
grunt.registerTask('default', ['concurrent'])
}