by ThePhysicist · 10y ago · 0 comments
https://github.com/adewes/gitboard/blob/master/Makefile
This one is rather simple but includes steps for building and optimizing JS and CSS. It also has support for different build environments (Gitboard has a Chrome version and a web version).
One great thing about npm scripts is that every time you run a command Node.js will export the binaries path to your $PATH so you don't have to manually add absolute paths.