mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 18:51:50 +00:00
Split frontend and backend build
It should be possible to run a backend build without the need to start the application and without the need to fiddle around with PATH or fiddling with `node_modules`. Therefore this patch splits the build command into `build-frontend` and `build-backend`, which will allow those builds to be done independent and have a separate command `build` which will provide the combination of both of them. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
d8265e4085
commit
5ced1f3cdd
1 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@
|
|||
"standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1",
|
||||
"dev": "webpack --config webpack.dev.js --progress --colors --watch",
|
||||
"heroku-prebuild": "bin/heroku",
|
||||
"build": "webpack --config webpack.prod.js --progress --colors --bail",
|
||||
"start": "tsc && sequelize db:migrate && node built/lib/app.js"
|
||||
"build": "npm run-script build-backend && npm run-script build-frontend",
|
||||
"build-backend": "tsc",
|
||||
"build-frontend": "webpack --config webpack.prod.js --progress --colors --bail",
|
||||
"start": "sequelize db:migrate && node built/lib/app.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@passport-next/passport-openid": "^1.0.0",
|
||||
|
|
Loading…
Reference in a new issue