bower

Use Bower package version numbers in Razor views for CDN support

ⅰ亾dé卋堺 提交于 2019-12-23 08:49:52
问题 I am using Bower in Visual Studio 2017 to install packages such as Bootstrap and jQuery. In my views I am referencing the same libraries using a CDN like so: <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css" asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.css" asp-fallback-test-class="glyphicon" asp-fallback-test-property="visibility" asp-fallback-test-value="hidden" /> If I change the version of Bootstrap in Bower from 3.3.7 to something

Modified .bower.json file not updating

十年热恋 提交于 2019-12-23 04:47:50
问题 When I download a package with bower it creates a .bower.json file in the package folder. When I modify the ignore list and run bower update it does not update however. { "name": "less", "version": "1.6.3", "main": "./dist/less-1.6.3.js", "ignore": [ "**/.*", "test", "*.md", "LICENSE", "Gruntfile.js", "package.json", "bower.json" ], "homepage": "https://github.com/less/less", "_release": "1.6.3", "_resolution": { "type": "version", "tag": "v1.6.3", "commit":

Bower installation directory changes: sometimes the version is appended

我的未来我决定 提交于 2019-12-22 19:26:10
问题 I have a project that uses bower. My bower.json: { "name": "myproject", "version": "0.0.0", "dependencies": { ... "angular-sanitize": "1.2.1", ... Then I run bower install. Then I can see what's installed: ➜ myproject git:(develop) ✗ ls app/bower_components/angular-sanitize/ README.md angular-sanitize.min.js bower.json angular-sanitize.js angular-sanitize.min.js.map But then a coworker checkouts the project, he bower install s, on his machine, this dependency is installed in app/bower

Bower with Visual Studio Publish

谁说我不能喝 提交于 2019-12-22 10:39:18
问题 I want to use Bower in an MVC 4 application, developed in Visual Studio 2015. I know when you have a MVC 5 project, with Visual Studio 2015 Update 1, there is a nice UI for Bower management, much like the nuget interface. This part is not really critical. I am using bower currently - I have npm and bower setup, and I have the package.json and bower.json files in the solution. When you save, Visual Studio automatically runs "npm install" and I have a postinstall step in package.json to run

How I can prevent bower from downloading the whole repo

旧街凉风 提交于 2019-12-22 09:19:48
问题 I just need the .min files, but it downloads the whole repo and it's very big. This is my bower.json { "name": "blah", "version": "0.0.0", "dependencies": { "backbone": "~1.0.0", "underscore": "~1.4.4", "jquery": "~1.9.1", "backbone.localStorage": "~1.1.0", "bootstrap": "", "requirejs": "", "mustache": "", "hammerjs": "" } } 回答1: Bower is deliberately not opinionated about the content of packages, so it does not give you that kind of control, it just downloads the whole thing. The idea is

bower install take repo, not specific files in main

試著忘記壹切 提交于 2019-12-22 08:24:34
问题 I am trying to install some js files via bower. My repo has a bower.json with a main property, however the whole repo gets installed to components/, not just the files in the dist/custom/ dir. Here is what my bower.rc looks like { "name": "jquery-m", "version": "2.0.2mup", "description": "Meetup custom build of jQuery 2.0, used on mobile", "main": [ "./dist/custom/" ], "license": "MIT" } Is this the way bower is supposed to work? I thought it was possible just to specify certain files with

How do I automate the task of compiling front-end frameworks like Twitter Bootstrap in my Node.js project?

℡╲_俬逩灬. 提交于 2019-12-22 04:49:06
问题 How do I automate the task of compiling Twitter Bootstrap in my Node.js project? I'm editing the LESS files that compile into a custom build of Bootstrap for my Node.js project, so I can't just use the online customizer or the pre-compiled JavaScript/CSS distribution. How do I use something like Grunt or Bower to automate the process of building and compiling the Twitter Bootstrap front-end framework into my project from source? Is there a package manager for front-end libraries and

Visual Studio 2015 bower - not installed

瘦欲@ 提交于 2019-12-22 04:31:13
问题 Using a Empty Template in Visual Studio 2015, the following configuration fails to install dependencies. { "name": "ASP.NET", "private": true, "dependencies": { "bootstrap": "3.0.0", "bootstrap-touch-carousel": "0.8.0", "hammer.js": "2.0.4", "jquery": "2.1.4", "jquery-validation": "1.11.1", "jquery-validation-unobtrusive": "3.2.2" } } While the same configuration for a Web Application Sample template in ASP.NET completes successfully . My colleagues are running into the same problem. Is this

Visual Studio 2015 bower - not installed

让人想犯罪 __ 提交于 2019-12-22 04:31:05
问题 Using a Empty Template in Visual Studio 2015, the following configuration fails to install dependencies. { "name": "ASP.NET", "private": true, "dependencies": { "bootstrap": "3.0.0", "bootstrap-touch-carousel": "0.8.0", "hammer.js": "2.0.4", "jquery": "2.1.4", "jquery-validation": "1.11.1", "jquery-validation-unobtrusive": "3.2.2" } } While the same configuration for a Web Application Sample template in ASP.NET completes successfully . My colleagues are running into the same problem. Is this

How to make Gulp.src fail if a file is missing?

寵の児 提交于 2019-12-22 03:33:21
问题 Our gulp build takes a bunch of libraries installed with bower, then concatenates them with all the code we have distributed across several directories. Here's what it looks like: var jsFiles = [ sourcePath + '/config/config.js', sourcePath + '/vendor/jquery/dist/jquery.js', sourcePath + '/vendor/js-cookie/src/js.cookie.js', sourcePath + '/vendor/modernizr/modernizr.js', sourcePath + '/vendor/lodash/lodash.js', sourcePath + '/vendor/picturefill/dist/picturefill.min.js', sourcePath + '