Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

how to try local changes

Sayed Ibrahim Hashimi edited this page Apr 2, 2015 · 1 revision

While developing the generators it's always good to try out your changes before checking them in. Doing so is pretty simple.

  1. Ensure that you have removed the generators-aspnet package. To do this you can execute npm uninstall generator-aspnet. If you installed it globally then you should also add the -g option (which in some cases will require sudo).
  2. In the generator-aspnet directory execute the command npm link. In some cases you'll have to use sudo npm link depending on configuration.

After that you should be able to try out your changes by running yo aspnet

Once you are done testing local changes then to undo the configuration above you can execute npm unlink. In many cases npm unlink will not work so you should try the following command to ensure it's gone sudo npm r generator-aspnet -g

Clone this wiki locally