参考
npm scripts 使用指南
实战
"scripts": {
"dev": "webpack serve --config build/webpack.dev.conf.js --color --progress",
"start": "npm run dev & NODE_ENV=development nodemon ./server/index.js",
"server": " NODE_ENV=development nodemon ./server/index.js",
"build": "node --max_old_space_size=8192 build/build.js",
"build:test": "NODE_BUILD=test node --max_old_space_size=8192 build/build.js",
"build:online": "NODE_BUILD=online node build/build.js",
"eslint": "sh eslint.sh",
"pm2": "node ./server/nginx-health/pm2.js"
}