What Are NPM Scripts?

Опубликовано: 27 Январь 2021
на канале: Hey Node
984
25

See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/what-are...

An npm script is a convenient way to bundle common shell commands for your project. They are typically commands, or a string of commands, which would normally be entered at the command line in order to do something with your application.

Common use cases for npm scripts include building your Node project, starting a development server, compiling CSS, linting, minifying, or anything else you find yourself typing into your terminal frequently that's related to your project.

In this tutorial we'll:

Learn what an npm script is in Node
Learn how to run scripts with npm
Explain the difference between custom and default scripts

Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.