frontend: rename build script from build:prod to build; update prepare script accordingly

This commit is contained in:
Carlos Santos 2025-06-06 12:19:35 +02:00
parent c3dfe6cb24
commit 53a86d43e9
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"scripts": {
"start:dev": "npx ng serve --configuration development --port=5080 --host=0.0.0.0",
"build:dev": "npx ng build --configuration development --watch",
"build:prod": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func",
"build": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func",
"typings:sync": "npm run sync-ce --prefix ../typings",
"sync:backend": "npx ng build --configuration production --output-path ../backend/dist/public/",
"e2e:run-all": "npx mocha --recursive --timeout 30000 ./tests/e2e/**/*.test.ts",

View File

@ -94,7 +94,7 @@ if [ "$BUILD_FRONTEND" = true ]; then
echo -e "${GREEN}Building frontend...${NC}"
cd frontend
npm install
npm run build:prod
npm run build
cd ..
fi