执行 package.json scripts 对应指令
$ npm run start
package.json 对应目录下
"scripts": {
"start": "node_modules/.bin/electron .",
"pack": "node_modules/.bin/electron-builder --dir",
"dist": "node_modules/.bin/electron-builder",
"postinstall": "node_modules/.bin/electron-builder install-app-deps"
执行 目录下某个 JS
$ node start.js
http://www.ruanyifeng.com/blog/2016/10/npm_scripts.html
具体操作项目
https://github.com/chanshiyucx/eriri