简体   繁体   English

ASP.NET Core - Git中的Bower文件

[英]ASP.NET Core - Bower files in Git

I'm using ASP.NET Core 1.0.1. 我正在使用ASP.NET Core 1.0.1。 My question is - should I push to Git all files that can be downloaded automatically by Bower? 我的问题是 - 我应该向Git推送所有可以由Bower自动下载的文件吗?

Visual Studio中的bower.json

like bootstrap/js/src or bootstrap/scss ? 喜欢bootstrap/js/src还是bootstrap/scss

I mean, we usually don't push to Git whole packages referenced by NuGet, right? 我的意思是,我们通常不会向NuGet引用的整个软件包推送给Git,对吧? We are only pushing some config file with their "URIs", so that anyone can download the packages on their own, automatically when they build the project. 我们只推送一些带有“URI”的配置文件,这样任何人都可以在构建项目时自动下载这些包。 Is it different with Bower? 与鲍尔有什么不同? Shouldn't we push to Git only changes made to bower.json file? 我们不应该只向Git推送对bower.json文件所做的更改吗?

I've just started the project and GitHub shows me language statistics like this: 我刚开始这个项目,GitHub向我展示了这样的语言统计:

GitHub语言统计

And so far I've written like 2 simple functions, not the entire Bootstrap or jQuery :) 到目前为止,我写了两个简单的函数,而不是整个Bootstrap或jQuery :)

It is unnecessary to upload those files. 没有必要上传这些文件。 As documentation says Bower packages are installed using Bower install command, so everyone who clones you repository can install them himself. 正如文档所说 Bower软件包是使用Bower install命令Bower install ,所以克隆你的所有人都可以自己安装它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM