Merge branch 'frontend-next' into 'frontend-next'
Revert "Rename npm script" See merge request !3
This commit is contained in:
commit
e2a19b3b0a
3 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ Get started
|
||||||
2. Enter the directory and type `bin/setup`, which will install npm dependencies and create configs. The setup script is written in Bash, you would need bash as a prerequisite.
|
2. Enter the directory and type `bin/setup`, which will install npm dependencies and create configs. The setup script is written in Bash, you would need bash as a prerequisite.
|
||||||
3. Setup the configs, see more below
|
3. Setup the configs, see more below
|
||||||
4. Setup environment variables which will overwrite the configs
|
4. Setup environment variables which will overwrite the configs
|
||||||
5. Build front-end bundle by `npm run build:prod` (use `npm run build:dev` if you are in development)
|
5. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
|
||||||
6. Run the server as you like (node, forever, pm2)
|
6. Run the server as you like (node, forever, pm2)
|
||||||
|
|
||||||
Upgrade guide
|
Upgrade guide
|
||||||
|
|
|
@ -31,5 +31,5 @@ EOF
|
||||||
cp public/js/config.js.example public/js/config.js
|
cp public/js/config.js.example public/js/config.js
|
||||||
|
|
||||||
# build app
|
# build app
|
||||||
npm run build:prod
|
npm run build
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:dev": "webpack --config webpack.config.js --progress --colors --watch",
|
"dev": "webpack --config webpack.config.js --progress --colors --watch",
|
||||||
"build:prod": "webpack --config webpack.production.js --progress --colors",
|
"build": "webpack --config webpack.production.js --progress --colors",
|
||||||
"postinstall": "bin/heroku",
|
"postinstall": "bin/heroku",
|
||||||
"start": "node app.js"
|
"start": "node app.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue