Yeoman ビルド タスクによってアプリが壊れてしまい、どこに問題があるのかを調べようとしています。
だから私は他のタスクをコメントアウトし、残しました:
grunt.registerTask('build', [
'clean:dist',
'useminPrepare',
]);
また、useminPrepre タスクは次のように定義されます。
useminPrepare: {
html: '<%= yeoman.app %>/index.html',
options: {
dest: '<%= yeoman.dist %>',
flow: {
steps: {'js': ['concat']},
post: {}
}
}
},
出力 (以下を参照) は問題ないように見えdist
ますが、ビルドが完了するとフォルダーは空になります。実際にファイルを書き込むために useminPrepare を作成するにはどうすればよいですか?
Running "useminPrepare:html" (useminPrepare) task
Going through C:/development/projects/yadazing/bb_ui/app/index.html to update the config
Looking for build script HTML comment blocks
Configuration is now:
concat:
{ generated:
{ files:
[ { dest: '<APP_PATH> \\dist\\scripts\\scripts.js',
src:
[ '{.tmp,app}\\bower_components\\jquery\\jquery.js',
<APP_COMPONENTS>\\angular.js'
.
.
] },
{ dest: ''<APP_PATH>\\dist\\scripts\\modules.js',
src:
[ '<APP_MUDULES>\\app\\scripts\\app.js',
'<APP_MUDULES>\\app\\scripts\\settings.js',
.
.
]}]}}
Done, without errors.
Execution Time (2014-02-19 22:46:34 UTC)
loading tasks 5ms
clean:dist 5ms
useminPrepare:html 26ms
Total 37ms