How to Use npm Scripts as Your Build Tool
Course on egghead by Elijah Manor
- 53 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 21
- Lessons
- 4.6
- Rating out of 52 ratings on egghead
- Feb 2017
- Published2 Feb 2017
About this course
Description from egghead
In this course we will introduce the topic of using npm scripts as a build tool. We will start simple and then continue to build a small website as we introduce new topics. By the end of the course, you'll know how to get started and what tools and techniques are needed for you to create your own set of build scripts.
What it covers
21 lessons
- 1Create a basic package.json file
- 2Run the basic npm scripts
- 3Create a custom npm script
- 4Run npm scripts in series
- 5Run npm scripts in parallel
- 6Use a shorthand syntax for running multiple npm scripts with npm-run-all
- 7Run a set of similar npm scripts with a wildcard
- 8Use pre and post npm script lifecycle hooks
- 9Pass arguments to npm scripts
- 10Pipe data from one npm script to another
- 11Run npm scripts when files change with onchange
- 12Use package.json variables in npm scripts
- 13Use custom config settings in your npm scripts
- 14Run npm scripts with git hooks
- 15Change the level of console output when running npm scripts
- 16Make npm scripts cross-environment friendly
- 17List available npm scripts and support tab completion
- 18Add comments to your npm scripts
- 19Pull out npm scripts into another file with p-s
- 20Create a bash script to replace a complex npm script
- 21Create a node script to replace a complex npm script
Similar JavaScript build tool courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.