Everything awesome for using npm as a build tool.
You might also like awesome-npm.
Notice: I'm currently too busy to actively expand this list; therefore, I've decided to make this an OPEN Open Source Project. Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit.
Tools for running multiple commands or npm scripts in parallel or sequentially.
Tools to watch your source files and run a build command whenever any of the files change.
Utilities to perform common command-line tasks without worrying about cross-platform compatibility.
cp -rfor Nodejs
rsync-like directory syncing with watch mode.
echowith JS escape sequence support.
shx rm somefile.
A quick reference of the shell operators & commands that work the same on Unix and Windows.
&&runs commands in sequence. If a command fails, the script exits.
|pipes the stdout of one command into the stdin of the next. (
do-something | something else)
>writes the stdout of a command to a file. (
do-something > file)
<sends the contents of a file to a command's stdin. (
command < file)
cd <dir>changes the current working directory to
<dir>. Note that
cdalone prints the current working directory on windows, but changes the working directory to
You can use
npm run-script or
npm run; they both do the same thing, but
npm run is shorter.
npm runto print a list of scripts.
npm run script(where
scriptis the name of your script) will run
postscript; in that order.
npm run, followed by the arguments. Example: Given the script
"mocha": "mocha", you can run
npm run mocha -- --reporter xunit. This effectively runs
mocha --reporter xunit.
npm testis the same as running
npm run test. The same applies to
npm run <script> -sto silence the default npm output (useful for calling a script within another script).