[Front End] Yoeman grunt js setting
Yeoman 是一个建立 Angular/Jquery/Ember 专案好用的小工具
很简单就可以安装
相关连结
建立专案后grunt.js 的 config 却因为
预设读取的资料夹位置将 bower.json 的位置设定为 app/bower.json
Running "wiredep:app" (wiredep) task
Warning: ENOENT, no such file or directory '{ProjectPath}/app/bower.json' Use --force to continue.
这时的解决方案可直接将 bower.json 复制近 app/ folder 底下
或者更改Gruntfile.js的设定将 app folder 更改为 root folder
// Automatically inject Bower components into the app
wiredep: {
options: {
cwd: ''
}
改为
// Automatically inject Bower components into the app
wiredep: {
options: {
cwd : ''
},
查看原文 >>