bower

Using multiple AngularJS versions in a project with Bower

烂漫一生 提交于 2019-12-11 06:38:21
问题 I've been trying to upgrade medium sized project from Angular version 1.2.16 to 1.6.4 . The problem here is, I can't jump from one version to another, so I have to use both versions at the same time in the project. However, I couldn't able to find a well prepared guide to follow. There are some different steps which is described in SO or in Github pages. But anyhow, I couldn't manage it. Here are some SO links that I've been reading during this time. 1 - Multiple versions of AngularJS in one

Dealing with git, generated files and bower

别说谁变了你拦得住时间么 提交于 2019-12-11 04:07:43
问题 I know that it is considered a bad practice to commit generated files to a git repository. But how to deal with bower? Currently my library is built into a dist/ directory which gets ignored by a .gitignore file. I don't want generated files pushed to the repository. The problem is that the library is also distributed as a bower component. How can I reference the generated assets into my bower component when a new version got released? Should I create another repository to store those files?

How to manage bower dependencies when developing and deploying with grunt and a dist project folder?

久未见 提交于 2019-12-11 03:58:26
问题 I am trying to set up a Grunt project with bower dependencies with two tasks: development and deploy . The project folder structure currently looks like this: . ├── bower_components │ ├── animate.css │ ├── jquery │ ├── semantic-ui │ └── wow ├── dist │ └── assets │ ├── styles │ └── js ├── node_modules └── src └── assets ├── less └── js I am currently using grunt-wiredep to automagically include the bower dependencies in the HTML files in dist . I am trying to keep the bower_components out of

Bower exportsOverride doesn't work on ASP.NET 5 beta7

≯℡__Kan透↙ 提交于 2019-12-11 03:53:41
问题 The bower_components folder presented on ASP.NET 5 beta6 and earlier, but starting from beta7 bower_components folder doesn't exist anymore and bower packages located directly in the wwwroot/libs folder. And seems like this change breaks exportsOverride feature. Is it possible to reduce the amount of unnecessary files in the lib folder using exportOverrides or some other approach? In bower.json I have the following exportsOverride section: "exportsOverride": { "bootstrap": { "js": "dist/js/*.

Module 'angularGrid' is not available! with ag-grid and HotTowel

烂漫一生 提交于 2019-12-11 03:35:28
问题 I’m somewhat new to AngularJS and the HotTowel toolchain. The bower install of ag-grid places appropriate (.css & .js) links in the index.html file. The dependency to ‘angularGrid’ has been attempted against different modules (e.g. app, core, etc.) with no success. Code excerpts are included below. At runtime, this results in a string of errors: [$injector:modulerr] Failed to instantiate module app due to: Error: [$injector:modulerr] Failed to instantiate module app.core due to: Error: [

include html templates in a bower component for angular

ε祈祈猫儿з 提交于 2019-12-11 03:15:52
问题 I'm making some reusable directives for my angular apps by putting them in a separate bower component. I would like to use a templateUrl for the directives so that I am not forced to do one of the three options in this post: How do I use separate templates with my angular directive bower package? Here is amoderate paraphrasing of the suggestions: 1 copy and past html in to the js file, 2 using grunt to compile the templates into js, or 3 put the templates in a different directory and have the

How to update bower.json with installed packages from bower_components

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:49:16
问题 How to update bower.json with installed packages from bower_components ? bower init does not add all my installed packages into bower.json , some are obviously missing bower list fails connecting to github on one package. So whats the correct way of doing this? 回答1: Install all your new dependencies with --save tag. This will add them to your bower.json file automatically. # e.g. bower install angular --save bower install <package> --save If you missed adding save tag you can just run bower

Composer - show possible updates for dependencies (like bower list)

╄→гoц情女王★ 提交于 2019-12-10 18:18:20
问题 Can't find in Composer documentation how to check all dependencies for new versions. In bower there's bower list : Any alternative in Composer to achieve this? 回答1: No, the feature you are asking for is not implemented, yet. Update (May 2016): Use: composer outdated or composer show --outdated Old answer: You may find a feature request for "list packages with dependencies" over here: https://github.com/composer/composer/issues/3836 The "possible updates indication" is an addition to that. See

How to install bower on centos 7

纵然是瞬间 提交于 2019-12-10 17:41:55
问题 I am trying to install bower on centos7, after installing nodejs. To install nodejs I follows these steps Step1: wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz Step2: tar xzvf node-v* && cd node-v* Step3: sudo yum install gcc gcc-c++ Step4: ./configure Step5: make Step6: sudo make install Step7: node --version I had successfully installed nodejs, I follows this steps from Install Nodejs Then install npm by running command sudo yum install npm . Now I am trying to install bower So I

ASP .NET 5 - grunt task to copy files from node modules to wwwroot

ぃ、小莉子 提交于 2019-12-10 17:26:51
问题 I have a simple ASP .NET 5 empty project - with npm and grunt installed. I've used npm to install a few client-side libraries, at present located in the node_modules directory directly under my ASP .NET project. I want to copy the relevant files (for example, jquery.min.js) from the node_modules folder into the wwwroot folder. It's unclear to me how to use grunt to do this - as each node module has it's own dependency tree, and there doesn't seem to be any consistency in the file structure