yeoman

HTML comments causing an issue exporting CSS files with Grunt-usemin

倾然丶 夕夏残阳落幕 提交于 2019-12-22 22:19:04
问题 I'm using yeoman/grunt to for my build process and I'm running into an issue. I'm trying to build two .css files, one for IE8 and one for everything else. If I place the IE conditional on the outside of the build block, an error is thrown because of the comment within a comment. If I put the IE conditional on the inside it gets stripped out. <!--[if lte IE 8]> <!-- build:css({.tmp,app}) styles/main-old-ie.css --> <link rel="stylesheet" href="styles/main-old-ie.css"> <!-- endbuild --> <![endif

How do you modify the generator-angular-fullstack favicon?

非 Y 不嫁゛ 提交于 2019-12-22 13:02:10
问题 How do you modify the generator-angular-fullstack favicon? I'm deploying the starter project https://github.com/DaftMonk/generator-angular-fullstack (the most popular yeoman generator). This is a fullstack angularjs express framework. By default it uses the yeoman guy as the favicon. Is there a way to change it? Anything helps. Thanks! 回答1: Either put your own favicon.ico in the root of your domain (accessible via e.g. http://example.com/favicon.ico ) or link it in your HTML head: <link rel=

yeoman error peerinvalid Peer generator-webapp@0.5.0 wants yo@>=1.2.0

荒凉一梦 提交于 2019-12-22 10:22:28
问题 Running npm install -g generator-webapp gives this at the end of the npm-debug.log file: 18875 error peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements! 18875 error peerinvalid Peer generator-mocha@0.1.6 wants yo@>=1.0.0 18875 error peerinvalid Peer generator-webapp@0.5.0 wants yo@>=1.2.0 18876 error System Windows_NT 6.1.7601 18877 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"

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

Yeoman, How to reference a bower package (font-awesome)?

廉价感情. 提交于 2019-12-21 19:47:36
问题 I'm totally new to Yeoman and I'm facing an issue with it after setting up my project I decided that I want to use font-awesome so I installed it using bower and it works fine the issue is that font-awesome is not in the dist/bower_components folder but when I reference the css file of font-awesome in the html page like this <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css"> it works in the localhost but still no files in dist/bower_components except for

How to organize sass files, so compass includes them in the right order

给你一囗甜甜゛ 提交于 2019-12-21 19:45:54
问题 I'm building a single page app using the most recent yeoman build 1.0.0beta3 and compass 0.12.2 When starting compass:server I get lots of errors, but during dev time all seems to be ok in my browser. grunt build then does not fail, but builds improper CSS output, so that the layout in the browser is borken. Maybe that's all my fault, caused by a misunderstanding. What I have is a main.sass file with all my includes: // compass @import 'compass' @import 'compass/reset' @import 'compass/css3'

grunt serve from a fresh Yeoman install returns - Warning: Task “serve” not found

[亡魂溺海] 提交于 2019-12-21 11:34:11
问题 After running yo angular and then cd 'ing into the application's root folder (at same level as the app folder, gruntfile , package.json etc) I try grunt serve and I get the above error. Grunt won't start a server for me. I have searched all over but couldn't find say to run npm install and bower install within the application's root directory, which I have tried but still the same error. I've updated and checked bower/grunt/npm and they're all good. Any suggestions please? 回答1: I think I have

grunt-bower-install: exclude certain components

我的梦境 提交于 2019-12-21 08:05:18
问题 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

Build yeoman project from git checkout

吃可爱长大的小学妹 提交于 2019-12-21 02:42:09
问题 Am facing issue in building the yeoman project checkout from git. Am trying to take git checkout of yeoman project and run grunt serve . Following is the scenario followed by error description Scenario description : Person1 created the yeoman angularjs project using yo angular . grunt serve is working fine in Person1 's computer. Person1 pushes the code to git so other team members can work on it. Problem occurs when Person2 takes a checkout of the git ( git clone < URL> ). The grunt serve

GruntJS - wrong image paths after grunt build

孤街醉人 提交于 2019-12-21 02:15:12
问题 Grunt is messing my minified CSS and I cannot figure out why and how to avoid it. To be brief, before the minification I have some background images like this: .head-image { height: 380px; background: url("../images/head1_bg.png") repeat-x; -webkit-background-size: cover; background-size: cover; } Then, after the whole process, I have a minified CSS that goes like this (snippet): [...]background:url(/home/domo/projects/lp/.tmp/images/head1_bg.png) repeat-x;background-size:cover}[...] The