From 19fd1cc30e388a01666aeb713228e70be20209ab Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 14 May 2025 11:37:45 +0200 Subject: [PATCH] frontend: streamline frontend build process in prepare script --- frontend/angular.json | 6 ++++++ prepare.sh | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/angular.json b/frontend/angular.json index d9e7e7c..ce41746 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -42,6 +42,12 @@ "clearScreen": true }, "production": { + "outputPath": { + "base": "../backend/public", + "browser": "" + }, + "deleteOutputPath": true, + "clearScreen": true, "budgets": [ { "type": "initial", diff --git a/prepare.sh b/prepare.sh index 8419621..7d37447 100755 --- a/prepare.sh +++ b/prepare.sh @@ -14,14 +14,14 @@ npm install npm run build:prod cd .. +# Build frontend +cd frontend +npm install +npm run build:prod +cd .. + # Build webcomponent cd frontend/webcomponent npm install npm run build -cd ../.. - -# Build frontend -cd frontend -npm install -# npm run lib:build -cd .. \ No newline at end of file +cd ../.. \ No newline at end of file