From 5ced1f3cddf15fa1ce474f95004e30a8ebf4d1e2 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 3 Mar 2020 06:02:54 +0100 Subject: [PATCH] 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 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c65d91459..df7350054 100644 --- a/package.json +++ b/package.json @@ -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",