Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

How to Use npm Scripts as Your Build Tool

via egghead.io

Overview

Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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.

Syllabus

  • Create a basic package.json file
  • Create a basic package.json file
  • 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
  • Run the basic npm scripts
  • Run the basic npm scripts
  • Create a custom npm script
  • Create a custom npm script
  • Run npm scripts in series
  • Run npm scripts in series
  • Run npm scripts in parallel
  • Run npm scripts in parallel
  • Use a shorthand syntax for running multiple npm scripts with npm-run-all
  • Use a shorthand syntax for running multiple npm scripts with npm-run-all
  • Run a set of similar npm scripts with a wildcard
  • Run a set of similar npm scripts with a wildcard
  • Use pre and post npm script lifecycle hooks
  • Use pre and post npm script lifecycle hooks
  • Pass arguments to npm scripts
  • Pass arguments to npm scripts
  • Pipe data from one npm script to another
  • Pipe data from one npm script to another
  • Run npm scripts when files change with onchange
  • Run npm scripts when files change with onchange
  • Use package.json variables in npm scripts
  • Use package.json variables in npm scripts
  • Use custom config settings in your npm scripts
  • Use custom config settings in your npm scripts
  • Run npm scripts with git hooks
  • Run npm scripts with git hooks
  • Change the level of console output when running npm scripts
  • Change the level of console output when running npm scripts
  • Make npm scripts cross-environment friendly
  • Make npm scripts cross-environment friendly
  • List available npm scripts and support tab completion
  • List available npm scripts and support tab completion
  • Add comments to your npm scripts
  • Add comments to your npm scripts
  • Pull out npm scripts into another file with p-s
  • Pull out npm scripts into another file with p-s
  • Create a bash script to replace a complex npm script
  • Create a bash script to replace a complex npm script
  • Create a node script to replace a complex npm script
  • Create a node script to replace a complex npm script

Taught by

Elijah Manor

Reviews

Start your review of How to Use npm Scripts as Your Build Tool

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.