Questions tagged [yeoman-generator]

Yeoman generator is a scaffolding system built on top of Node.js

More information can be found here about how to write your own generator: http://yeoman.io/authoring

711 questions
64
votes
8 answers

Available yeoman generator for Angular 2

There is the official Angular generator, and many users provided ones for Angular 1. But I haven't found a generator for Angular 2. Does such a yeoman generator exist already?
Simon Hürlimann
  • 4,181
  • 3
  • 20
  • 23
36
votes
4 answers

npm install without symlinks option not working

I setup a development environment with Windows 8 and Ubuntu as a virtual machine. For that I use VirtualBox. I also manage to create a shared folder in VirtualBox. In this shared folder I try to start a project with ember-generator of Yeoman. yo…
Bastien D
  • 1,395
  • 2
  • 14
  • 26
32
votes
5 answers

Can Yeoman generators update existing files?

So just to give you some context, I'm trying to create a generator that will create some files (based on user input of course) as well as update some existing files in the project (like adding a new route for example). Creating the files using…
Remy
  • 1,414
  • 4
  • 20
  • 29
31
votes
3 answers

Yeoman: Call Sub-Generator With User-Supplied Arguments

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…
Fiona
  • 1,211
  • 3
  • 16
  • 20
29
votes
4 answers

What's the recommended way to copy multiple dotfiles with yeoman?

I am building a yeoman generator for a fairly typical node app: / |--package.json |--.gitignore |--.travis.yml |--README.md |--app/ |--index.js |--models |--views |--controllers In the templates folder of my yeoman generator, I have…
Raine Revere
  • 30,985
  • 5
  • 40
  • 52
25
votes
3 answers

How to run a Grunt task after my Yeoman generator finishes installing?

I'm building a custom Yeoman generator that installs a lot of pre-processed language compilers like CoffeeScript, LESS and Jade. In the Gruntfile that my generator creates I have a build task which compiles everything. However, until that build task…
Soviut
  • 88,194
  • 49
  • 192
  • 260
21
votes
6 answers

`yo angular` gives error: npm ERR! code ENOENT npm ERR! errno 34 (yes I have cleaned the cache and set .npmignore)

I tried to run yo angular in a new project directory, but it gave me the ENOENT error somewhere along the way. Yes I have looked at this similar question, but its solution doesn't work for me. I ran these things on the empty new project directory…
randwa1k
  • 1,502
  • 4
  • 19
  • 30
20
votes
7 answers

Error: Cannot find where you keep your Bower packages. Use --force to continue

I'm building an App using MEAN Stack and trying to scaffold my frontend using yeoman-generator, when I do yo angular it fails to build and ends up in the following Running "wiredep:app" (wiredep) task Warning: Error: Cannot find where you keep…
Naveen Vijayakumar
  • 219
  • 1
  • 2
  • 9
17
votes
7 answers

How to update the JHipster project after updating JHipster generator?

I updated my JHipster installation as per this page by running the command npm update -g generator-jhipster But to update my application I am not sure where should I run the next command yo jhipster. I tried running it from the root of existing…
Dhanush Gopinath
  • 5,652
  • 6
  • 37
  • 68
17
votes
4 answers

What does `{,*/}` mean in paths of Gruntfile.js?

In Gruntfile.js, I have got: watch: { styles: { files: [ '<%= yeoman.app %>/styles/{,*/}*.less' ], tasks: ['copy:styles', 'autoprefixer'] } } For the path, what does {,*/} mean indeed? How does it differ to using…
hllau
  • 9,879
  • 7
  • 30
  • 35
16
votes
0 answers

Yeoman - How to extract zipped files in generator?

I want to build a Yeoman generator that needs to unzip a file. From their documentation, it seems this process is done using this.registerTransformStream(...). It says it accept any gulp plugin, so I tried gulp-unzip (link) Here's my code: //…
hrsetyono
  • 4,474
  • 13
  • 46
  • 80
16
votes
3 answers

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

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…
Rich
  • 357
  • 4
  • 10
15
votes
1 answer

Updating Gulp plugins

When starting a project using a Yeoman generator, say, generator-gulp-webapp, you get a package.json file with all the dependencies. Is it recommended to update all or any of these dependencies (ex: gulp-useref, gulp-ruby-sass, gulp-bower-files,…
zok
  • 6,065
  • 10
  • 43
  • 65
14
votes
1 answer

Using two yeoman generators?

Is it possible to use two generators on one project with yeoman? For example: I want to use the angular-generator but also want to use another generator, whether it be custom or one of the bootstrap generators. I know you can add dependencies…
Kirill Fuchs
  • 13,446
  • 4
  • 42
  • 72
12
votes
3 answers

Pressing F5 is not working in VS code to open new window for debugging my custom theme

I have created a new custom theme using the Yoeman theme generated and now when I pressed on F5 to open a new Host Extension window of the custom theme it is actually showing me to select environment?
Subrato Pattanaik
  • 5,331
  • 6
  • 21
  • 52
1
2 3
47 48