Was writing a generator for a JS project build and wanted to exclude the Bower portion of the process as it creates superfluous files and folders in the end project that I just didn’t want to be there.

Had to hunt around in the source for this as I couldn’t find anything online – turns out that in the constructor of your generator (index.js) there’s a line that looks like this:

This line configures what is going to happen once your custom install script has completed. By default, it runs npm install and bower install in the target directory, but what’s not obvious is that it also takes an options object, in which you can turn these on or off: