yeoman

Errors using Yeoman

主宰稳场 提交于 2019-12-11 19:43:01
问题 I am trying to set up an AngularJS site using Yeoman: $ yo angular The installation is partly successful. The directory is being populated with all those files, but there are also several errors that left me wondering if the init was complete: npm ERR! Error: EACCES, symlink '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer' npm ERR! { [Error: EACCES, symlink '../grunt-autoprefixer/node_modules/autoprefixer/bin/autoprefixer'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR

Configure grunt-contrib-sass in Yeoman

a 夏天 提交于 2019-12-11 14:52:51
问题 As I want to use Bourbon, I'm looking forward to remove compass grunt task and use plain sass task, however for some reason it doesn't seems to compile my scss files. I have the following directory structure: yeomanApp/ app/ styles/ css/ scss/ My Gruntfile.js looks something like this: ... grunt.initConfig({ ... sass: { dist: { files: [{ expand: true, cwd: '<%= yeoman.app %>/styles', src: ['scss/{,*/}*.scss'], dest: 'css', ext: '.css' }] } }, ... }); grunt.loadNpmTasks('grunt-contrib-sass');

Silencing JSLint warnings in brackets

∥☆過路亽.° 提交于 2019-12-11 10:16:01
问题 I just started a gulp-angular Yeoman project and opened it in brackets, and nearly everywhere I'm getting 'something' was used before it was defined , specifically 'angular' was used before it was defined . I've messed around with extensions and other fixes, but I honestly don't know what I'm doing and I haven't been able to find any good documentation. What can I do to silence these warnings across the entire project? In other words, how can I avoid using /*global angular*/ in pretty much

Avoid conflicts in Yeoman generator

我怕爱的太早我们不能终老 提交于 2019-12-11 09:59:26
问题 I'd like to replace a partial in my app with a template when scaffolding with Yeoman. Everything seems to work out fine, but I get this conflict error during the scaffold. this.template( 'conditional-files/html/_signup.email.html', 'app/html/partials/_main.signup.html' ); conflict app/html/partials/_main.signup.html [?] Overwrite app/html/partials/_main.signup.html? (Ynaxdh) Is there a way to avoid this? I looked into passing a {status: 'force'} but that didn't seem to work. 回答1: A couple of

“404 (Not Found)” for “polymer.min.js”

僤鯓⒐⒋嵵緔 提交于 2019-12-11 09:49:47
问题 I still got the same error as described here: "Uncaught Reference Error: Polymer is not defined" caused by IP-change? But after I uninstalled and reinstalled yeoman, grunt, bower and polymer-generator, fresh initialized Polymer-projects work fine now. My old Polymer-projects still have the same Error. I am using the newest versions for all tools mentioned above. (Grunt: 0.4.5, Bower: 1.3.9) 回答1: After all it seems like the problem was somehow caused by Polymer. I switched to the newest

Yeoman prompt: how generate a valid filename from a string?

邮差的信 提交于 2019-12-11 06:15:59
问题 Is there a method implemented in Yeoman or in Node to generate a valid filename from a string? My aim is to replace accented letters by normal letters, spaces by dashes, etc. 回答1: Basically, all you need is a function that removes special characters and perhaps replaces them using an arbitrary system. One option was already named by passy, which is to make use of: this._.dasherize(str) Nevertheless, there are some additional options you might use. E.g., you might check out the underscore

WebStorm 7 - Yeoman Angular missing sourcemaps `Failed to load resource: the server responded with a status of 404 (Not Found)`

孤街浪徒 提交于 2019-12-11 05:46:24
问题 Running the yeoman angular generator grunt server with WebStorm 7.0.1 throws: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/jquery/jquery.js.map:0 Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/angular/angular.js.map:0 Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js

ComposeWith in yeoman generator not emitting an end event and thus not driving 'on' method

落爺英雄遲暮 提交于 2019-12-11 04:06:28
问题 Background I am creating a scaffolding generator for an Angular SPA (single page application). It will rely on the environment set up by the standard angular generator ('yo angular'), and also rely on the standard angular subgenerators to generate a few extra services and controllers necessary to the app. In other words, I'm "decorating" a basic angular app. The generator will work fine if the user has previously installed an angular app (I look for marker files and set a booleon

grunt task to determine files needed by web app

时光毁灭记忆、已成空白 提交于 2019-12-11 03:53:58
问题 i'am a newbie and started to build a webapp with yeomans webapp generator and a static html 5 template. The template is able to use over 40 plugins. The template directoy structure is like: index.html --assets --css --js --img --plugins --bootstrap --cs --fonts --js ... ... My project only uses a quite little part of it. Is it possible to determine which files are used(referenced) within the project, and copy them automatically with a grunt task to the .tmp and .dist folder? Currently i used