当我用bower下载包时,它会在包文件夹中创建一个.bower.json
文件。当我修改忽略列表并运行bower update
时,它不会更新。
{
"name": "less",
"version": "1.6.3",
"main": "./dist/less-1.6.3.js",
"ignore": [
"**/.*",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"homepage": "https://github.com/less/less",
"_release": "1.6.3",
"_resolution": {
"type": "version",
"tag": "v1.6.3",
"commit": "0cfd753e3750ff1ee4c54e09d10ea1a633b0ce89"
},
"_source": "git://github.com/less/less.git",
"_target": "1.6.3",
"_originalSource": "less"
}
更改为
{
"name": "less",
"version": "1.6.3",
"main": "./dist/less-1.6.3.js",
"ignore": [
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"homepage": "https://github.com/less/less",
"_release": "1.6.3",
"_resolution": {
"type": "version",
"tag": "v1.6.3",
"commit": "0cfd753e3750ff1ee4c54e09d10ea1a633b0ce89"
},
"_source": "git://github.com/less/less.git",
"_target": "1.6.3",
"_originalSource": "less"
}
有没有办法在我的包中提供这些文件?
答案 0 :(得分:1)
有一个原因是它带有一个前缀并隐藏起来。你不应该碰它。它适用于Bower内部。如果您需要更新忽略列表,您应该向相关软件包的bower.json提交拉取请求。
答案 1 :(得分:0)
如果包文件夹同时包含.bower.json
和bower.json
,Bower是否会识别出差异?哪个是首选?