简体   繁体   中英

ASP.NET Core - Bower files in Git

I'm using ASP.NET Core 1.0.1. My question is - should I push to Git all files that can be downloaded automatically by Bower?

Visual Studio中的bower.json

like bootstrap/js/src or bootstrap/scss ?

I mean, we usually don't push to Git whole packages referenced by NuGet, right? 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. Is it different with Bower? Shouldn't we push to Git only changes made to bower.json file?

I've just started the project and GitHub shows me language statistics like this:

GitHub语言统计

And so far I've written like 2 simple functions, not the entire Bootstrap or 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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