在 Rails 项目根路径下的 .bowerrc
{
"directory": "vendor/assets/bower_components"
}
bower.json 文件如下
{
"name": "angular_demo",
"version": "0.0.0",
"authors": [
"luffycn <[email protected]>"
],
"moduleType": [
"amd",
"es6",
"globals",
"node",
"yui"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"vendor/assets/bower_components",
"test",
"tests"
]
}
运行
bower install angular angular-ui-router bootstrap --save
执行完毕后 一直没有看到有文件在 vender/assets/bower_components 路径下