DEV Community

Rohov Dmytro
Rohov Dmytro

Posted on • Updated on

Friday Quick Tips — Use package.json As a Shortcut Holder

Really quick tip for today.

I've been programming using Node.js for quite a while now. Six, seven years? Damn. And only in recent projects I've started to «save» common scripts as a yarn «shortcuts». Damn++!

Alt Text

It's extremely simple. Simple as that:

Alt Text

Every morning it makes me a couple of presses away from a Carpal tunnel syndrome! Nice!

That's it. That simple tip.

Yours, truly, RG, on his way from consumer to creator.

Save the clicks for something more meaningful!

Top comments (1)

patarapolw profile image
Pacharapol Withayasakpunt

I migrated to robo, because YAML is superior the JSON, especially for multiline strings.