<

1. npm script #

1.1 快速创建项目 #

npm init
npm init -f
npm init -y
npm config set init.author.email "zhufengnodejs@126.com"
npm config set init.author.name "zhufengnodejs"
npm config set init.author.url "http://github.com/zhufengnodejs"
npm config set init.license "MIT"
npm config set init.version "0.0.1"

1.2 用 npm run 执行命令 #

  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "eslint": "eslint --version"
  }
npm run eslint