bower_components应该被gitignored吗? [英] Should bower_components be gitignored?

查看:109
本文介绍了bower_components应该被gitignored吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只保留 bower.json 文件和gitignore整个 bower_components 目录吗?

/ p>

解决方案

官方Bower页面声明:


注意如果你没有编写一个打算供他人使用的软件包(例如,你正在构建一个web应用程序),你应该总是检查已安装的软件包到源代码管理



请务必查看报价单中的链接,讨论一些正反两面的问题。主要提到的是,只要您的存储库可用,检查它们可确保您的依赖项始终可用。无论Bower,GitHub或其他方面会发生什么情况。

Would it be good practice to keep only the bower.json file and gitignore the whole bower_components directory?

解决方案

The official Bower page stated:

N.B. If you aren't authoring a package that is intended to be consumed by others (e.g., you're building a web app), you should always check installed packages into source control.

Make sure to check out the link in the quote, it discusses some pro and cons. The main pro it mentions is that checking them in ensures that your dependencies are always available, as long as your repository is available. No matter what happens to Bower, GitHub or whatever else would be needed otherwise.

这篇关于bower_components应该被gitignored吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆