node.js - Ожидание запуска задачи "watch_default"
1.хрюкать в терминале, показывая:
Тогда я просто следую терминалу
Во-первых, работает grunt build --env uat
, затем работает успешно.
После этого работает grunt watch --evn uat
, но в Running "watch_default" task
шаг, показывая ожидание, но не будет переходить к следующему шагу.
И я пытаюсь убежать grunt test
, показывая эту ошибку для меня.
Я попытался выполнить поиск в Google, но все еще не нашел хорошего решения этой проблемы.
Это ссылка:
1. [Смотреть] Ожидание... никогда не ок # 474
2. Grunt watch Запуск задачи "watch" Ожидание
3. Попытка запустить задачу Grunt Watch, но она просто говорит "Ожидание... и никогда не решается"?
ОБНОВИТЬ:
## Custom tasks ------------------------------------------------------------
grunt.task.renameTask "watch", "watch_default"
grunt.registerTask "default", "Usage", usage
grunt.registerTask "scripts", "Compiles the JavaScript files.", [
"clean:scripts"
"coffee:all"
"coffee:env"
"browserify:all"
"clean:temp"
].concat unless Debug then ["uglify:all"] else []
grunt.registerTask "stylesheets", "Compiles the stylesheets.", [
"clean:stylesheets"
"stylus:all"
"autoprefixer:all"
].concat unless Debug then ["cssmin"] else []
grunt.registerTask "test", "Run unit testing.", ->
grunt.fail.fatal "Unit testing is not implemented yet" # TODO
grunt.registerTask "build", "Compiles all of the assets and copies the files to the Build directory.", [
"clean:all"
"copy:static"
"jade:all"
"htmlmin:all"
"stylesheets"
"scripts"
].concat unless Debug then ["clean:production"] else []
grunt.registerTask "watch", "Builds and watches the project for changes.", [
"build"
"watch_default"
]