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', +};