grunt Warning: Task "default" not found.
這是什么問(wèn)題??? ? ? 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']);
};
2017-07-19
第一行就錯(cuò)了 ?exports ?不是export