Skip to content

Commit

Permalink
update frontend build param
Browse files Browse the repository at this point in the history
  • Loading branch information
gaulzhw committed Aug 26, 2019
1 parent a09cb18 commit c75f5b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ FROM 360cloud/wayne-ui-builder:v1.0.2 as frontend
COPY src/frontend /workspace

RUN cd /workspace && \
npm config set registry https://registry.npm.taobao.org && \
npm install && \
npm run build

# build server
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAKEFLAGS += --warn-undefined-variables
# Build variables
REGISTRY_URI :=360cloud
RELEASE_VERSION :=$(shell git describe --always --tags)
UI_BUILD_VERSION :=v1.0.1
UI_BUILD_VERSION :=v1.0.2
SERVER_BUILD_VERSION :=v1.0.1

release: build-backend-image build-frontend-image push-image
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0 --disable-host-check --configuration hmr",
"build": "node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng build --aot --prod --build-optimizer",
"build": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --output-hashing=bundles",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
Expand All @@ -23,4 +23,4 @@
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
}

0 comments on commit c75f5b5

Please sign in to comment.