How to Use npm as a Build Tool

npm is a fantastic tool that offers much more than meets the eye. Still, I find new features in npm every day (and of course, new ones are still being developed!). Most of these aim at making npm a great package manager, but npm has a great subset of functionality dedicated to running tasks to facilitate in a packages lifecycle – in other words, it is a great tool for build scripts.