-
Notifications
You must be signed in to change notification settings - Fork 51
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.
- Ensure that you have removed the
generators-csharp
package. To do this you can executenpm uninstall generator-csharp
. If you installed it globally then you should also add the-g
option (which in some cases will requiresudo
). - In the
generator-csharp
directory execute the commandnpm link
. In some cases you'll have to usesudo npm link
depending on configuration.
After that you should be able to try out your changes by running yo csharp
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-csharp -g