bower

yeoman angular generator - generated index.html

半世苍凉 提交于 2019-12-04 02:49:50
Last day I was in process of updating Angular library in my project from 1.0.7 to 1.2.6 , to do this, I updated my yeoman generator and generated application again. After this, I started browsing generated files to get hang of the changes and I noticed something new in index.html file. <!-- build:js scripts/vendor.js --> <!-- bower:js --> <script src="bower_components/jquery/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> <script src="bower_components/angular-resource/angular-resource.js"><

Use the Bootstrap config.json file with Bower

萝らか妹 提交于 2019-12-04 02:47:43
I used the Bootstrap customizer tool: http://getbootstrap.com/customize/ It generates a config.json file that I reuse whenever I need to make changes. I use Bower to handle all my dependencies, except Bootstrap, because I need my customized version. Is there a way I can tell Bower to use my config.json file to generate the CSS? The chosen answer to this question seems to state that it is actually possible, but it doesn't give much details and I couldn't find anything else about that anywhere: Twitter Bootstraps config.json - what does it do? I also found this package that lets you customize

How to install latest unstable AngularJS components using Bower?

寵の児 提交于 2019-12-04 02:18:51
I’ve scaffold an AngularJS app using Yeoman: yo angular –minsafe When I run “bower list” command I get following: angular#1.0.8 (latest is 1.2.0-rc.2) angular-mocks#1.0.8 (latest is 1.2.0-rc.2) -angular#1.0.8 (latest is 1.2.0-rc.2) angular-scenario#1.0.8 (latest is 1.2.0-rc.2) -angular#1.0.8 (latest is 1.2.0-rc.2) angular-scenario#1.0.8 (latest is 1.2.0-rc.2) -angular#1.0.8 (latest is 1.2.0-rc.2) es5-shim#2.0.12(latest is 2.1.0) json3#3.2.5 I would like to install the latest unstable versions of angular and it’s dependencies. My bower version is 1.2.6. What I tried to do was replacing the

grunt-bower-install: exclude certain components

我的未来我决定 提交于 2019-12-04 02:15:41
I just created a new webapp using the angular-fullstack yeoman generator. I noticed that grunt-bower-install is generating the JS bower components in my index.html files between the <!-- bower:js --> tags. <!-- bower:js --> <script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/affix.js"></script> <script src="bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/alert.js"></script> <script src="bower_components

Bower - error when installing package “Arguments to path.join must be strings”

╄→гoц情女王★ 提交于 2019-12-03 23:36:33
I just created a node project and am trying to install jquery using bower. bower install jquery I get the following error: bower jquery#* not-cached git://github.com/jquery/jquery.git#* bower jquery#* resolve git://github.com/jquery/jquery.git#* bower jquery#* error Arguments to path.join must be strings Stack trace: TypeError: Arguments to path.join must be strings at f (path.js:204:15) at Object.filter (native) at Object.exports.join (path.js:209:40) at GitHubResolver._checkout (C:\Users\Adam\AppData\Roaming\npm\node_modules\bower\lib\core\resolvers\GitHubResolver.js:54:21) at C:\Users\Adam

how to include a private local file in javascript project using bower

爷,独闯天下 提交于 2019-12-03 22:49:44
i want to include a custom file as one of the bower dependency. I am have the following bower.json { "name": "xyz", "version": "0.0.0", "dependencies": { "sass-bootstrap": "~2.3.0", "requirejs": "~2.1.4", "modernizr": "~2.6.2", "jquery": "~1.9.1", "beautify": "file:/path/to/beautify.js" }, "devDependencies": {} } But when i do bower install it gives error : bower beautify#* ENOTFOUND Package file:/path/to/beautify.js not found however when i open the same path in browser i get the right file. I have also checked the case sensitive of the path. Now can any one tell me what error i am doing? Is

Why check in bower components?

南楼画角 提交于 2019-12-03 22:11:38
Bower docs says 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. Does anyone have a good answer to why? If I am making a web app I don't want my repo cluttered with updates in version of library X. I just want to update bower.json dependencies. I would think most projects will have a build step or similar, for instance with grunt. The build step would make sure to call bower install/update before building, so that those files are present for concat/minification etc

Specifying version numbers in Bower

安稳与你 提交于 2019-12-03 20:34:47
问题 When writing bower.json you can specify version numbers in your dependencies. Sometimes I see people writing { ... "devDependencies" : { "grunt" : "~0.3.13", } } What exactly does the ~ mean? Why not write >=0.3.13? Is this some sort of best practice? 回答1: It's semver and the notation is the same as >=0.3.13 <0.4.0 , which will match all patch releases after and including 0.3.13 , but not 0.4.0 . This means you'll get bug fixes ( patch ), but not new features ( minor ). >=0.3.13 is not

How make bower build the package?

早过忘川 提交于 2019-12-03 16:04:43
问题 Is there a way to make bower run a package grunt after it was cloned from GitHub? I'm trying to use Bower but one of the packages I'm using is the Bootstrap extension, x-editable. The problem is that while other packages push a fully built version to github so when installed by Bower you have a built version x-editable expect you to run a grunt file to build the package. That is a common practice in other package managers like npm but I could find how to make Bower build it on install. Which

References to font (font-awesome) resources are not updated in yeoman/angular grunt build

半腔热情 提交于 2019-12-03 15:01:25
问题 I'm aware of the SO threads about this (I've linked them below), but unfortunately I couldn't solve this with them, so please allow me this question :-) I've bootstrapped an AngularJS project with Yeoman and thus rely on a grunt.js build utilizing bower.js and SCSS. I want to use font-awesome and the glyphicons-halflings-regular from bootstrap-sass-official. When running "grunt serve" everything is fine, but when I want to create a fileset for distribution, the references to the font files