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
});
});
Written by Kim Holland
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Yeoman
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#