frontend: rename build script from build:prod to build; update prepare script accordingly
This commit is contained in:
parent
c3dfe6cb24
commit
53a86d43e9
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user