I\'m creating a yeoman generator for my web projects.
But I wonder how I can try and test my changes before publishing it?
Since I have installed it once, it wil
I finally found some information on how to accomplish this:
if you wish to develop on the generators code base, and debug locally, a common way to do so is to rely on npm link
npm link. It'll install required dependencies and install the package globally, using a symbolic link to your local version.npm link.https://github.com/yeoman/generator/wiki/Testing-generators
EDIT:
Updated link for info: https://yeoman.io/authoring/index.html
If by "running locally" you mean the ability to test your generator and its flow you can simply do this.
npm link. If this passes in flying colors, go to step 2.yo generator-theNameOfYourGenerator. This will run your generator.