我希望在把github上的错误重现之前在这里发布,我的文件部分是否有问题?
观察部分如下:
watch: {
files: ['includes/js/source/_*.js'],
tasks: 'dev',
},
运行grunt --verbose
命令会得到以下结果:
Running "watch" task
Waiting...
Verifying property watch exists in config...OK
Watching includes/js/source/_broken.js for changes.
Watching includes/js/source/_hi.js for changes.
Watching includes/js/source/_jquery_ui_1.10.3_autocomplete.js for changes.
Watching includes/js/source/_menu_toggle.js for changes.
Watching includes/js/source/_thisisatest.js for changes.
Watching includes/js/source for changes.
系统规格:
Mac osx 10.9.3并运行Vagrant:
Ubuntu 12.04 (php 5.5.11,apache 2.4.9)
node v0.10.28
npm 1.4.9
grunt-cli v0.1.13
grunt v0.4.5
仅运行dev
任务似乎按预期工作
/var/www/themissingsearch $ grunt dev -v
Initializing
Command-line options: --verbose
Reading "GruntFile.js" Gruntfile...OK
Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /var/www/themissingsearch/node_modules/grunt-contrib-watch/package.json...OK
Parsing /var/www/themissingsearch/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /var/www/themissingsearch/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /var/www/themissingsearch/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /var/www/themissingsearch/node_modules/grunt-contrib-concat/package.json...OK
Parsing /var/www/themissingsearch/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Loading "GruntFile.js" tasks...OK
+ default, dev, production
Running tasks: dev
Running "dev" task
Running "concat" task
Running "concat:build" (concat) task
Verifying property concat.build exists in config...OK
Files: includes/js/source/_jquery_ui_1.10.3_autocomplete.js, includes/js/source/_menu_toggle.js, includes/js/source/hellllo.js, includes/js/source/hi.js, includes/js/source/hi2.js, includes/js/source/thisisanewfile.js -> includes/js/themissingsearch.0.1.0.dev.min.js
Options: separator="\n", banner="/*! themissingsearch 06-11-2014 1:36:31 am */\n\n", footer="", stripBanners=false, process=undefined
Reading includes/js/source/_jquery_ui_1.10.3_autocomplete.js...OK
Reading includes/js/source/_menu_toggle.js...OK
Reading includes/js/source/hellllo.js...OK
Reading includes/js/source/hi.js...OK
Reading includes/js/source/hi2.js...OK
Reading includes/js/source/thisisanewfile.js...OK
Writing includes/js/themissingsearch.0.1.0.dev.min.js...OK
File includes/js/themissingsearch.0.1.0.dev.min.js created.
Done, without errors.
dev
看起来运行良好,进行了几个小测试,所有代码都编译通过,包括新文件。 - tbremer