Skip to content
JS

How to Use npm Scripts as Your Build Tool

Course on egghead by Elijah Manor

View on egghead (opens in a new tab)
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
  1. 1Create a basic package.json file
  2. 2Run the basic npm scripts
  3. 3Create a custom npm script
  4. 4Run npm scripts in series
  5. 5Run npm scripts in parallel
  6. 6Use a shorthand syntax for running multiple npm scripts with npm-run-all
  7. 7Run a set of similar npm scripts with a wildcard
  8. 8Use pre and post npm script lifecycle hooks
  9. 9Pass arguments to npm scripts
  10. 10Pipe data from one npm script to another
  11. 11Run npm scripts when files change with onchange
  12. 12Use package.json variables in npm scripts
  13. 13Use custom config settings in your npm scripts
  14. 14Run npm scripts with git hooks
  15. 15Change the level of console output when running npm scripts
  16. 16Make npm scripts cross-environment friendly
  17. 17List available npm scripts and support tab completion
  18. 18Add comments to your npm scripts
  19. 19Pull out npm scripts into another file with p-s
  20. 20Create a bash script to replace a complex npm script
  21. 21Create a node script to replace a complex npm script

Similar JavaScript build tool courses

  1. Getting started with Webpack

    Coursera · Google Cloud Training · Aug 2023

    Beginner30 min
    CourseraAug 2023
  2. Execute npm Package Binaries with the npx Package Runner

    egghead · Elijah Manor · 8 lessons · 4.6 from 4 ratings · Nov 2018

    17 minFree
    egghead84.6 (4)Nov 2018
  3. Make Webpack Easy with Poi

    egghead · John Lindquist · 10 lessons · 3.9 from 2 ratings · Dec 2017

    15 minSubscription
    egghead103.9 (2)Dec 2017
  4. Webpack Plugins System

    Master.dev · Sean Larkin · 12 lessons · Jul 2018

    1 h 35 minSubscription
    Master.dev12Jul 2018
  5. Web Performance with Webpack

    Master.dev · Sean Larkin · 19 lessons · Jul 2018

    1 h 44 minSubscription
    Master.dev19Jul 2018
  6. JavaScript and TypeScript Monorepos

    Master.dev · Mike North · 28 lessons · Nov 2020

    3 h 46 minSubscription
    Master.dev28Nov 2020
  7. Intro to Vite

    Coursera · Shant Dashjian · May 2025

    Beginner
    CourseraMay 2025
  8. Webpack Mastery - Bundle, Optimize & Scale Web Sites

    Coursera · Packt - Course Instructors · Sept 2026

    Intermediate
    CourseraSept 2026

A hyphen means the provider's catalogue does not state the value.

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.

    Compare