grunt Warning: Task "default" not found.
这是什么问题啊? ➜ ✗ grunt Warning: Task "default" not found. Use --force to continue. Aborted due to warnings.
module.export = function(grunt) {
grunt.initConfig({
watch: {
jade: {
files: ['views/**'],
options: {
livereload: true
}
},
js: {
files: ['public/js/**', 'models/**/*.js', 'schemas/**/*.js'],
//tasks: ['jshint'],
options: {
livereload: true
}
}
},
nodemon: {
dev: {
script: 'app.js',
options: {
args:[],
nodeArgs: ['--debug'],
ignore: ['README.md', 'node_modules/**', '.DS_Store'],
ext: 'js',
watch: ['./'],
delay: 1000,
env: {
PORT: '3000'
},
cwd: __dirname
}
}
},
concurrent: {
target: {
tasks: ['nodemon', 'watch'],
options: {
logConcurrentOutput: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-nodemon')
grunt.loadNpmTasks('grunt-concurrent');
grunt.option('force', true)
grunt.registerTask('default', ['concurrent:target']);
};