From 85b260b4cddbe6ea039f009b33ac4a6867c60da0 Mon Sep 17 00:00:00 2001 From: nikolay Date: Wed, 26 Jul 2023 11:44:25 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#14384=20=D0=9F=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20WPA=20?= =?UTF-8?q?=D0=9A=D0=BE=D1=84=D0=B5=D0=9B=D0=B0=D0=B9=D0=BA:=20add=20secon?= =?UTF-8?q?d=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 1 + angular/angular.json | 22 ++++++++++++++++ angular/package.json | 1 + angular/src/environments/environment2.prod.ts | 25 +++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 angular/src/environments/environment2.prod.ts diff --git a/Jenkinsfile b/Jenkinsfile index c33017b..98afcf5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,7 @@ node('Palladium'){ dir('angular'){ sh label: '', script: 'npm i' sh label: '', script: 'npm run build' + sh label: '', script: 'npm run build2' } } } diff --git a/angular/angular.json b/angular/angular.json index df4acc2..8706f68 100644 --- a/angular/angular.json +++ b/angular/angular.json @@ -69,6 +69,28 @@ ], "outputHashing": "all" }, + "production2": { + "outputPath": "/var/www/html/lk.crm4retail.ru/coffee-like2", + "budgets": [ + { + "type": "initial", + "maximumWarning": "4mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment2.prod.ts" + } + ], + "outputHashing": "all" + }, "development": { "buildOptimizer": false, "optimization": false, diff --git a/angular/package.json b/angular/package.json index de1b773..df4c9b1 100644 --- a/angular/package.json +++ b/angular/package.json @@ -6,6 +6,7 @@ "start": "ng serve --host 192.168.0.14", "build": "ng build --aot --configuration production --output-hashing none", "watch": "ng build --watch --configuration development", + "build2": "ng build --aot --configuration production2 --output-hashing none", "test": "ng test" }, "private": true, diff --git a/angular/src/environments/environment2.prod.ts b/angular/src/environments/environment2.prod.ts new file mode 100644 index 0000000..f7a6530 --- /dev/null +++ b/angular/src/environments/environment2.prod.ts @@ -0,0 +1,25 @@ +import packageJson from '../../package.json'; + +export const environment = { + production: true, + appAuthEndpoint: 'https://auth.crm4retail.ru/tnt', + appBonusEndpoint: 'https://customerapi2.mi.crm4retail.ru/json.rpc/', + appWPEndpoint: 'http://213.239.210.240:4500/wp-json/woofood/v1/', + hasBonusProgram: true, + systemId: 'tsQ2cu59Xz9qgGTm3z', + defaultUrl: 'https://coffee-like.lk.crm4retail.ru', + manifestUrl: 'https://club.coffee-like.com/manifest.webmanifest', + firebase: { + apiKey: 'AIzaSyDTb_xuMz2vDx8xGs34AJiltraKVlwmrtY', + authDomain: 'coffee-like-77bfe.firebaseapp.com', + projectId: 'coffee-like-77bfe', + storageBucket: 'coffee-like-77bfe.appspot.com', + messagingSenderId: '1094726277369', + appId: '1:1094726277369:web:8af560662da7700e7a2a28', + }, + version: packageJson.version, + appleWalletEndpoint: 'https://apple-wallet-iiko.it-retail.tech/apns/api', + icardProxy: 'https://coffee-like.lk.crm4retail.ru/api/icard-proxy/', + appleWalletSecret: 'Token F5mbzEERAznGKVbB6l', + clientName: 'coffeelike', +};