Skills Expanded

Automating Node.js with NPM Scripts

What you'll learn

Scripts are used to automate repetitive work and can improve developer productivity. When building Node.js applications, you can use npm to create scripts that you can use to automate tasks, such as transpiling with Babel, or starting the server in developer or production mode. In this project, you’ll create scripts to automate your build and development tasks using npm scripts.

Table of contents

Setup
15m
  • Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Creating scripts For The Build Process
15m
  • Create a set of scripts that'll be used to build the project.
Creating scripts to Find And Fix Lint Errors
15m
  • Create a set of scripts that'll be used to verify lint rules and automatically fix the lint errors if possible.
Creating scripts To Run The Application
15m
  • Create scripts that'll be used to run the application.

About the author

Peter is a software developer who codes in JavaScript and C#. He has experience working on the Microsoft stack of technologies and also building full-stack applications in JavaScript. He is a co-chair on NodeJS Nigeria, a Twilio Champion, and a contributor to the Hoodie open source project. He is the maker of Hamoni Sync, a real-time state synchronization as a service platform. He is a frequent writer for Code Magazine, Progress/Telerik, and other publications. He enjoys sharing his knowledge of... more

Ready to upskill? Get started