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:
Sheogorath 2020-03-03 06:02:54 +01:00
parent d8265e4085
commit 5ced1f3cdd
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18

View file

@ -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",