bower.json 可以指定哪些文件应该被忽略:
ignore
[array]: An array of paths not needed in production that you want Bower to ignore when installing your package.
默认情况下会忽略哪些路径?
最佳答案
来自source :
json.ignore = mout.array.combine(json.ignore || [], [
'**/.*',
'node_modules',
'bower_components',
config.directory,
'test',
'tests'
]);
显然所有点文件都被忽略,bower_components
、node_modules
、test
和 tests
目录也是如此。我不知道 config.directory
是什么。
更新:我刚刚发布了一个包,test
目录没有被忽略。显然我误解了源代码。我希望得到 Bower 贡献者的澄清。
关于bower - Bower 默认忽略哪些路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22598184/