Last Updated: February 25, 2016
·
1.503K
· tripleaxis

Exclude Bower from your Yeoman Generators

If you don't require Bower dependencies in a Yeoman generator you can remove it by adding the bower: false flag to your index.js file.

This is useful if you don't want an empty bower_components folder in your generated project.

// inside your generator's constructor //
this.on('end', function () {
  this.installDependencies({
    skipInstall: options['skip-install'],
    bower: false
  });
});