Closed jacksarick closed 8 years ago
Not sure this is much better than simply doing rm -r ~/.trymodule
but I'll leave this here for a bit and will think about it.
Thanks for the contribution :)
Ok, I'm happy to merge this but there are some changes that has to be done.
--clear
instead of -clear
in true unix spiritlogGreen
for the messageTRYMODULE_PATH
so we can change it in one place in the future===
instead of ==
for strict equality'
(single quotes) instead of "
(double quotes) for stringsrm
is done instead of exiting while it's doing stuff() => {}
instead of function() {}
for functionserr
if err
is actually something (if (err) { console.log(err) }
) and don't print success message if err
is somethingThis may seem like a lot but it's tiny changes, some stylistic and some logical ones. It seems you would have to pull the latest changes before continuing as well.
Let me know if you need any help with any of the items :)
@jacksarick something that can help in development (after you updated your branch with git pull origin master
[if origin is this repository]), is running npm run lint
to figure out if you're following the style standards or not.
I went ahead and implemented this in commit 69c56d71772f352a505f7ecbf9da567cdb2e847d
Added a "clear" command.
trymodule -clear
removes$HOME/.trymodules/node_modules