Pre and Post hooks for npm scripting
August 21, 2015
npm is at the core of developing in Node. Most of us use it to get packages, set up the package.json etc.
But when you put it together with the vast possibilities in package.json you get another gear. Then npm can actually become a build tool - driving every aspect of your development. Without getting unwieldy and out of control.
In this post I wanted to examine one of the lesser known features of scripting with npm and package.json; pre
- and post
hooks. In doing so I will most likely brush on a lot of other subjects too. We’ll see how it goes.
[UPDATED] This, and other posts on npm scripting, has drawn a lot of attention. I wanted you to know that I have created a PluralSight course on this topic, published in late October 2015. You can find...