Bower 1.0:.bower.json是什么意思?

18

我刚刚升级到了 bower 1.0,执行了 bower install 命令后发现了一堆新的 .bower.json 文件(注意前面的点号)。

changelog 或文档中我没有找到关于 .bower.json 的参考。我是否应该将这些文件添加到 .gitignore 中?它们看起来非常像没有点号的原始 bower.json 并带有一些额外的元数据。


1
基本上你应该忽略整个 bower_components 文件夹。 - Roy Ling
1个回答

14

你不能删除它们,因为Bower使用了额外的元数据。决定保留原始的bower.json文件不变,并创建一个.bower.json文件。


1
谢谢!那么.gitignore它有意义吗? - thatmarvin
1
@thatmarvin 不,它被 Bower 使用。 - Sindre Sorhus

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接