We are now at the point where we can link to npm globally. In the root of
If all goes well you should see a symlink get added to your computer and now you should be able to run
You can use the
jarvis command as is, it will prompt you for which generator (assuming you have more than one) OR you can pass args to
jarvis in order to execute the generator instantly.
ts-component generator, the pseudo syntax would be:
<cli-name> <generator-name> <component-name>
A real world usage:
jarvis ts-component Button
? Component name Button
✔ +! 2 files added
Tada! Button is ready to go!
jarvis is working, think about the other file types you write daily. You don't just have to write Typescript files...Are you a blogger? Make a markdown template for your posts. Are you a Python dev? Have
jarvis make you a script template.
The possibilities are limitless!