egghead
Search
Search
Log In
Search
Search
How to Use npm Scripts as Your Build Tool by Elijah Manor
Create a basic package.json file
Run the basic npm scripts
Create a custom npm script
Run npm scripts in series
Run npm scripts in parallel
Use a shorthand syntax for running multiple npm scripts with npm-run-all
Run a set of similar npm scripts with a wildcard
Use pre and post npm script lifecycle hooks
Pass arguments to npm scripts
Pipe data from one npm script to another
Run npm scripts when files change with onchange
Use package.json variables in npm scripts
Use custom config settings in your npm scripts
Run npm scripts with git hooks
Change the level of console output when running npm scripts
Make npm scripts cross-environment friendly
List available npm scripts and support tab completion
Add comments to your npm scripts
Pull out npm scripts into another file with p-s
Create a bash script to replace a complex npm script
Create a node script to replace a complex npm script
egghead
Light