yeoman

Yeoman: Triggering LiveReload on change of SCSS files

坚强是说给别人听的谎言 提交于 2019-12-20 14:45:13
问题 I've got the latest yeoman stack, and I just upgraded generator-webapp to master as per: https://github.com/yeoman/generator-webapp/pull/67 to get livereload working properly. HTML files and css files seem to be working with livereload just fine, but scss files don't trigger a reload. Here's a snippet of output: OK >> File "app/index.html" changed. Running "watch" task ... Reload app/index.html ... ... Reload app/index.html ... Completed in 0.005s at Wed Jun 05 2013 22:45:46 GMT+0100 (BST) -

generator-karma does not satisfy its siblings' peerDependencies requirements

我与影子孤独终老i 提交于 2019-12-20 10:23:22
问题 The same notorious error npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer generator-angular@0.7.1 wants generator-karma@~0.6.0 npm ERR! peerinvalid Peer generator-angular-ui-router@0.5.3 wants generator-karma@~0.5.0 npm ERR! System Darwin 12.5.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "generator-angular" npm ERR! cwd /Users/dmitrizaitsev/Dropbox/Priv/APP/my-yo-project npm ERR! node -v

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

Grunt livereload with node.js application

荒凉一梦 提交于 2019-12-20 09:37:51
问题 I have written an application in Node.js (with Express & socket.io) and I would like to use Grunt to compile my client-side stuff with livereload while developing and being connected to Node.js application. How can I do this? (Preferably without running Node.js app in another port and client in another port, because of pathing and cross-domain issues) I installed also Yeoman and it's using out of the box grunt-contrib-livereload package, but from what I understood it's using Node.js Connect

Yeoman: Call Sub-Generator With User-Supplied Arguments

狂风中的少年 提交于 2019-12-20 08:43:01
问题 I'm writing my first Yeoman generator, which prompts the user for various inputs and conditionally creates files based on their responses. I need to be able to call a subroutine (could be a Yeoman sub-generator) based on user input, and pass arguments to it. The reason I want to use named functions (which are not automatically run) is that sometimes the user's response should invoke a number of functions combined, and sometimes the function should be run alone. What I have tried: I figured

How should I configure grunt-usemin to work with relative path

百般思念 提交于 2019-12-20 08:38:52
问题 I have a grunt project backed by a yeoman-generator that I've built based on the generator-webapp, if it's of any help, you can find it on GitHub The grunt project makes us of the grunt-usemin task. My project involve building a multilingual website, and to keep things clean, I've decided to put all the pages written in a language in a folder name after the 2-letter shortcode of the said language. | project/ |--dist/ |----en/ |------index.html |------404.html |------... |----fr/ |------index

How should I configure grunt-usemin to work with relative path

眉间皱痕 提交于 2019-12-20 08:38:33
问题 I have a grunt project backed by a yeoman-generator that I've built based on the generator-webapp, if it's of any help, you can find it on GitHub The grunt project makes us of the grunt-usemin task. My project involve building a multilingual website, and to keep things clean, I've decided to put all the pages written in a language in a folder name after the 2-letter shortcode of the said language. | project/ |--dist/ |----en/ |------index.html |------404.html |------... |----fr/ |------index

Visual Studio Code complains that it “Cannot find namespace” for types defined in *.d.ts files

痴心易碎 提交于 2019-12-20 01:09:47
问题 I created a new project using the gulp-angular Yeoman generator with language set to TypeScript. Then ran the Gulp build process and also opened the page in a web browser, which all worked without any bigger problems. I only had to replace ref: "master" in the tsd.json with ref: "1.4.1" to make the build work. Basically I executed following commands: yo gulp-angular vim tsd.json gulp gulp serve code . Afterwards I opened the project in Visual Studio Code. Now, Visual Studio Code complains for

Grunt server does not use virtual host name for my app..vhost and httpd are set up but grunt is not using them

好久不见. 提交于 2019-12-19 03:17:17
问题 So I am trying to setup my app with a name rather than using 127 0 0 1. Every single time I run grunt, my address is http://127.0.0.1:9000/#/ ... I've tried many things and nothing is working...I always get redirected to that place. Here are my files: httpd.conf <VirtualHost *:80> DocumentRoot "/Users/myusername/Sites/MyApp/app" ServerName myapp.dev <Directory "/Users/myusername/Sites/MyApp/app"> Options FollowSymLinks MultiViews Indexes AllowOverride All Order allow,deny Deny from none Allow

Image address in ember templates grunt build

元气小坏坏 提交于 2019-12-18 13:35:55
问题 I used Yeoman to create a web app in EmberJS. Everything works ok, but after using the grunt build command, if I view the built app in the browser (from dist directory), I can see that some images are missing because the src path is wrong. Grunt is changing the names of all images in the "image" folder, but not updating the paths in my HTML. It updates the path only in css files; the images in the .hbs template files still have the old path (with the old image name)... Anyone know how to fix