appkit
Install
$ npm install -g @fengshangwuqi/appkit
Usage
package.json
{
"appkit": {
"dev": "gatsby develop -o",
"build": "npm run clean && gatsby build --prefix-paths",
"release": "gh-pages -d public -b master"
},
"scripts": {
"start": "appkit dev appName"
}
}
-
use
.env
or.env.${appName}
-
run
dev | build | release
script
$ appkit dev
$ appkit dev appName