npm-package.json

npm-package.json 

Specifics of npm's package.json handling

DESCRIPTION§

This document is all you need to know about what’s required in your package.json file. It must be actual JSON, not just a JavaScript object literal.

A lot of the behavior described in this document is affected by the config settings described in npm-config.

scripts§

The “scripts” property is a dictionary containing script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.

See npm-scripts to find out more about writing package scripts.

原文地址:https://www.cnblogs.com/chucklu/p/12911513.html