bower

Is there an injector like grunt-wiredep that works for NPM dependencies?

ぃ、小莉子 提交于 2019-12-03 01:17:45
Most packages nowadays are available in both NPM and Bower. I have to have NPM around, but I'd like cut Bower out of the loop on my project. I'm currently relying on grunt-wiredep to create <script> includes in my index.html . This tool looks at all of the Bower configs to pull all the necessary js and css files into my index.html for me. Is there a tool that will do the same for NPM dependencies? You would be able to do that using a module bundler like Browserify or Webpack . For getting started with Browserify , you will need to first install it via NPM globally npm install -g browserify

EACCES Error with Bower install?

匿名 (未验证) 提交于 2019-12-03 01:13:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've read a few answers on StackOverflow & some other sites but none seem to fix the issue I'm having. I'm installing AppGyver Add-ons, via terminal. Getting the following error: BradMacBookPro : SparksInSpain breadadams$ bower install https : //##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0 --save bower not - cached https : //##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0#* bower resolve https : //##MY-DOWNLOAD-CODE##@addons.appgyver.com/steroids-addons.js?version=3.1.0#* bower

How to resolve Bower dependency version conflicts?

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a project that depends on both: jquery ~1.9.1 another project which in turn depends on jquery >=1.7.2 But when I run bower install , it ends up installing jquery 2.0.2. This seems broken. How do I either (a) make it correctly solve the constraints or (b) explicitly force a final version to be installed (workaround)? 回答1: You can add resolutions to the object in your bower.json file and specify the component name & version to automatically resolve the conflict when running bower commands. Like this: { "name" : "project-x" ,

Using bootstrap with bower

房东的猫 提交于 2019-12-03 01:06:28
问题 I'm trying to use bootstrap with bower, but since it clones the whole repo, there is no CSS and other stuff. Does it means that I need to include building Bootstrap in my own build process? Or if I'm wrong, what's the right workflow? 回答1: I finally ended using the following : bower install --save http://twitter.github.com/bootstrap/assets/bootstrap.zip Seems cleaner to me since it doesn't clone the whole repo, it only unzip the required assests. The downside of that is that it breaks the

MEAN app with admin panel and client panel

匿名 (未验证) 提交于 2019-12-03 00:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a mean app which is working perfect with admin panel. My server is listening on: http://localhost:3003 admin panel I can access here: http://localhost:3003/#/admin/ Now I want to separate admin panel and client panel, but client panel is not accessible like when I tried to this url, show nothing http://localhost:3003/#/client I have updated my server.js file also enable multiple views in express v 10.x.x like: app.set('views', [__dirname + '/admin/views', __dirname + '/client/views']); I think problem is with app.get('/', function

以太坊区块链浏览器的搭建

匿名 (未验证) 提交于 2019-12-03 00:22:01
root@cc - virtual - machine : /opt# git clone https:/ / github . com / etherparty / explorer root@cc - virtual - machine :/ opt # cd explorer root@cc - virtual - machine : /opt/ explorer # vim app/app.js 将 var eth_node_url = 'http://localhost:8545' ; 修改为 var eth_node_url = 'http://192.168.172.201:8545' ; root@cc - virtual - machine :/ opt # cd explorer root@cc - virtual - machine : /opt/ explorer # vim ./package.json 将 "start" : "http-server ./app -a localhost -p 8000 -c-1" , 修改为 "start" : "http-server ./app -a 192.168.172.201 -p 8000 -c-1" , root@cc - virtual - machine : /opt/ explorer # npm

Automate npm and bower install with grunt

落花浮王杯 提交于 2019-12-03 00:18:13
问题 I have a node / angular project that uses npm for backend dependency management and bower for frontend dependency management. I'd like to use a grunt task to do both install commands. I haven't been able to figure out how to do it. I made an attempt using exec , but it doesn't actually install anything. module.exports = function(grunt) { grunt.registerTask('install', 'install the backend and frontend dependencies', function() { // adapted from http://www.dzone.com/snippets/execute-unix

Installing Bower on Ubuntu

浪尽此生 提交于 2019-12-03 00:04:36
问题 I'm trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing sudo apt-get install npm and sudo npm install -g bower I get the following after issuing bower on the command line: /usr/bin/env: node: No such file or directory I then install Node (even though I assume that would not be unnecessary since Bower's only dependency would be NPM, correct?). Anyhow, after I install node with sudo apt-get install node any of the Bower commands, such as

Installing Node, NPM (and then Grunt and Bower globally) in Vagrant

隐身守侯 提交于 2019-12-02 21:14:07
I've been following this gist for installing a bunch of core dependencies for PHP development, but one that I do need and have not been able to get working as of yet is to install Node, NPM (and then Grunt and Bower globally) in Vagrant. I've seen answers like this one but it doesn't ever appear to complete the install (ie. I can't then install bower and grunt). There is a nodejs package through apt-get that does appear to install Node (and I can install NPM from there), but the version appears to be too old for Bower, so that's why I backtracked to a manual approach. Thanks for any help.

Assets missing in Angular application built using grunt

安稳与你 提交于 2019-12-02 20:34:27
I have built an application using Yeoman and AngularJS (and all the stuff that goes along with it like Grunt and Bower). It all works perfectly when running locally using grunt serve . However, after running grunt and deploying the application, there are a couple of missing assets and I'm not sure what the best way to solve it is. Firstly, running Grunt seems to copy the images across to dist but it renames them without adjusting the references in the CSS. app/images/uparrow.png becomes dist/images/3f84644a.uparrow.png . Here is a line from the main.scss: .table.sortable th.sorted-asc {