bower

Ionic / bower / cordova - ignore files for build

一世执手 提交于 2019-12-20 12:08:08
问题 My project structure is the following: MyApp - hooks - platforms - android - ios - www - js / css / templates.. - lib (including all bower components) Right now, the www/lib directory is taking up 21,8 Mb . (I have a large set of bower components added to my project.) When building each project, the entire www folder is copied to the platform/android (for instance) folder for build, including of course www/lib . This leads to a very big build, as lots of files included into bower components

Assets missing in Angular application built using grunt

怎甘沉沦 提交于 2019-12-20 09:48:43
问题 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

how to properly register a github fork with Bower

别说谁变了你拦得住时间么 提交于 2019-12-20 09:48:12
问题 A while back I had to use a jQuery plugin in my project. I needed some different functionality, so I rewrote the plugin and a few days back I published a fork on github. I wanted to add the package to the bower repository. The forked repository I added a bower.json file to the repository and registered the package with the usual "bower register" command. The problem is, when I try to install my package, bower installs the original script and not the fork. What I already tried: At first I

Adding ui.bootstrap dependency with bower

坚强是说给别人听的谎言 提交于 2019-12-20 08:46:59
问题 I m trying to add ui.bootstrap dependency to my angular project (I m using yeoman, bower). I did this : yo angular bower install angular-ui I then added to my index.html file : and grunt serve Then I added the ui.bootstrap dependency to my app.js: angular.module('angularuiprojectApp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'ngRoute', 'ui.bootstrap']) When I m trying to access to my index.html on Chrome I m getting this error : Uncaught Error: [$injector:modulerr] Failed to instantiate

How to update bower.json with installed packages?

随声附和 提交于 2019-12-20 08:23:08
问题 In my project I've installed bower components without save option. Now, I would like update to bower.json ? How can I update bower.json with installed packages? 回答1: Just list your dependencies: bower list Then you should run all install command with param '--save' like this: bower install bootstrap --save It's a hard work, but if you have a thousand dependencies, could you create a script to automatize the task. 回答2: A little trick if you don't want to write a script for that: before doing

How to update bower.json with installed packages?

我只是一个虾纸丫 提交于 2019-12-20 08:23:02
问题 In my project I've installed bower components without save option. Now, I would like update to bower.json ? How can I update bower.json with installed packages? 回答1: Just list your dependencies: bower list Then you should run all install command with param '--save' like this: bower install bootstrap --save It's a hard work, but if you have a thousand dependencies, could you create a script to automatize the task. 回答2: A little trick if you don't want to write a script for that: before doing

Scss compiler error: no mixin named transition

不打扰是莪最后的温柔 提交于 2019-12-20 04:08:05
问题 I have a meteor app which uses bower components. When I try to run the app I got an error: Scss compiler error: no mixin named transition which comes from the line of: @include transition(.2s ease-out); What could be cause of this problem? 回答1: @include expects a mixin. In this case it is expecting a mixin named 'transition' and I think you are trying to apply 'transition' as a css property. Check this page out: http://sass-lang.com/guide 来源: https://stackoverflow.com/questions/35482388/scss

grunt usemin doesnt affect the html file(index.html)

眉间皱痕 提交于 2019-12-19 17:37:51
问题 i have a grunt script that uses usemin but the weird thing is is that the index.html file is not affected by usemin at all! it means that my file still has all the <!-- build:css styles/main.css --> <link rel="stylesheet" href="styles/style.css"> <link rel="stylesheet" href="styles/bs-growl-notifications.css"> <!-- endbuild --> the weirdest part in the log is this(it does nothing although it found the blocks-see full log): Processing as HTML - dist/index.html Update the HTML to reference our

How to resolve bower issue: “ENORESTARGET Tag/branch master does not exist”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 06:02:13
问题 I cannot seem to get bower working on my current project. The project began as a yeoman 'angular' app a couple weeks ago, and now cannot remember exactly what I did, nor can I determine how to fix it. I do not have a bower_components directory, and have deleted and re-created bower.js several times. bower.json { "name": "my_name", "version": "0.0.0", "main": "app/index.html", "license": "MIT", "private": true } $ bower install jquery bower jquery#* cached git://github.com/jquery/jquery.git#2

Bower error tunneling socket could not be established, cause=Parse Error

放肆的年华 提交于 2019-12-18 22:32:41
问题 I'm behind a corporate proxy, I've set my HTTP_PROXY and HTTPS_PROXY env var to http://username:password@proxyname:port/ doing console.log(process.env) output these var correctly. npm is working, I got bower with it and it(bower) was working fine but since I restarted windows XP I'm always getting : bower error tunneling socket could not be established, cause=Parse Error I don't think there's anything new on the proxy side. I've already tried reseting those vars, restarting everything... Any