yeoman

bower add Jquery UI theme in style

亡梦爱人 提交于 2020-01-02 10:03:52
问题 In my project I have included to jQuery UI.I am using Bower, Yeoman and Grunt. I added jQuery UI: bower install jquery-ui --save . but the jQuery UI theme was not included in Bower style components. <!-- build:css(.) styles/vendor.css --> <!-- bower:css --> <link rel="stylesheet" href="bower_components/components-font-awesome/css/font-awesome.css" /> <!-- endbower --> <!-- endbuild --> <!-- build:css(.tmp) styles/main.css -> Help me with this problem . 回答1: This is not issue with library .

Angular build not working on server

放肆的年华 提交于 2020-01-02 04:57:05
问题 I am trying to run my AngularJS front-end on server. I am using Yeoman to build the app. I upload the very basic hello world app and I get plain HTML text withou JavaScript loaded. Console in Chrome says this: Error: Unknown provider: aProvider <- a at Error (<anonymous>) at http://../scripts/vendor/d10639ae.angular.js:2627:15 at Object.getService [as get] (http://../scripts/vendor/d10639ae.angular.js:2755:39) at http://../scripts/vendor/d10639ae.angular.js:2632:45 at getService (http://..

Ionic framework - command 'grunt serve' returns 'multiple addresses available' and freezes

蹲街弑〆低调 提交于 2020-01-02 04:49:05
问题 Used Yeoman ionic-generator https://github.com/diegonetto/generator-ionic Where I ran it without sass, default plugin list and blank. And when running grunt serve I get the following: Multiple addresses available. Please select which address to use by entering its number from the list below: 1) 192.168.1.69 (en0) 2) localhost Address Selection: When I type 2 in terminal and return it just hangs there without going further or launching a browser. I have tried also typing localhost or

Yeaoman Grunt imagemin Fatal error: Cannot read property 'contents' of undefined

試著忘記壹切 提交于 2020-01-02 04:16:09
问题 I keep on getting when running grunt build even with a clean Yeoman angular build: yo angular whatever . Warning: Running "imagemin:dist" (imagemin) task Fatal error: Cannot read property 'contents' of undefined 回答1: just update your grunt-contrib-imagemin version. Ex: "grunt-contrib-imagemin": "^0.9.2" to "grunt-contrib-imagemin": "^1.0.0" it's work for me. 回答2: I had to downgrade imagemin and it now all works. npm cache clean && npm install grunt-contrib-imagemin@0.9.1 回答3: I changed in

Yeoman generator always get some error

跟風遠走 提交于 2020-01-02 03:09:10
问题 When I'm trying using yeoman web generator, although it's working, but looking through the whole generate progress, it always gives me some errors below, no matter what generator I used, they are always there. npm ERR! phantomjs@1.9.7-6 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs@1.9.7-6 install script. npm ERR! This is most likely a problem with the phantomjs package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on

Yeoman angular generator install runs but generator doesn't appear in generator list

天涯浪子 提交于 2019-12-31 19:51:19
问题 I've tried to install the yeoman angular generator with the following: npm install -g generator-angular It all looks like it's installed properly... ... npm http GET https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/string_decoder npm http GET https://registry.npmjs.org/event-emitter npm http GET https://registry.npmjs.org/next-tick npm http 304 https://registry.npmjs.org/event-emitter npm http 304 https://registry.npmjs.org/next-tick generator-angular@0.7.1

Yeoman angular generator install runs but generator doesn't appear in generator list

烂漫一生 提交于 2019-12-31 19:51:18
问题 I've tried to install the yeoman angular generator with the following: npm install -g generator-angular It all looks like it's installed properly... ... npm http GET https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/string_decoder npm http GET https://registry.npmjs.org/event-emitter npm http GET https://registry.npmjs.org/next-tick npm http 304 https://registry.npmjs.org/event-emitter npm http 304 https://registry.npmjs.org/next-tick generator-angular@0.7.1

How to update and include Twitter Bootstrap 3 on webapp or yo angular?

三世轮回 提交于 2019-12-30 04:04:31
问题 I used yo webapp or yo angular to create new a project, and I received Bootstrap include is version 2.3.2, but I want use the latest version of Bootstrap. How can I update the Bootstrap package with command prompt and later update when create new webapp or yo angular, choose include Twitter Bootstrap is last version? 回答1: Yeoman's webapp & angular generators grab Sass for Bootstrap, which is based on the 2.3.2 build of Twitter Bootstrap. After you run yo webapp or yo angular , you can add

Yeoman composeWith only calling constructor in subgenerator

北城以北 提交于 2019-12-25 14:12:02
问题 I'm trying to use composeWith , to call a subgenerator within the same generator package. Yet for some reason, only the constructor of the called generator is invoked. My generator-package generator-test looks like this: package.json generators -- app -- index.js -- base -- index.js My main generator in app looks like this: 'use strict'; var yeoman = require('yeoman-generator'); var yosay = require('yosay'); module.exports = yeoman.generators.Base.extend({ constructor: function () { console

Yeoman composeWith only calling constructor in subgenerator

若如初见. 提交于 2019-12-25 14:11:50
问题 I'm trying to use composeWith , to call a subgenerator within the same generator package. Yet for some reason, only the constructor of the called generator is invoked. My generator-package generator-test looks like this: package.json generators -- app -- index.js -- base -- index.js My main generator in app looks like this: 'use strict'; var yeoman = require('yeoman-generator'); var yosay = require('yosay'); module.exports = yeoman.generators.Base.extend({ constructor: function () { console