From c75f5b59f517d0f0aaa3173985d90e3f94f1fa3c Mon Sep 17 00:00:00 2001 From: gaulzhw Date: Mon, 26 Aug 2019 18:09:24 +0800 Subject: [PATCH] update frontend build param --- Dockerfile.frontend | 2 -- Makefile | 2 +- src/frontend/package.json | 2 +- src/frontend/tsconfig.json | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index ead8f0955..729ce75c1 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -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 diff --git a/Makefile b/Makefile index 49be7cc3e..a04619baf 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/frontend/package.json b/src/frontend/package.json index 6f6319928..41a4724f5 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -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" diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index d76f5906b..d346cc0e2 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -10,7 +10,7 @@ "module": "esnext", "moduleResolution": "node", "importHelpers": true, - "target": "es2015", + "target": "es5", "typeRoots": [ "node_modules/@types" ], @@ -23,4 +23,4 @@ "fullTemplateTypeCheck": true, "strictInjectionParameters": true } -} \ No newline at end of file +}