added qa profile

This commit is contained in:
Gansner Pascal committed 2020-05-13 10:31:20 +02:00
1 parent e935c3520f
commit 8443f3af03
3 files changed
+61 -2

No files matched your search

+34 -1
View File
@@ -84,6 +84,35 @@
],
"serviceWorker": true
},
"qa": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.qa.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"serviceWorker": true
},
"ci": {
"budgets": [
{
@@ -98,7 +127,8 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
"browserTarget": "app:build",
"proxyConfig": "proxy.config.json"
},
"configurations": {
"production": {
@@ -165,6 +195,9 @@
"configurations": {
"production": {
"browserTarget": "app:build:production"
},
"qa": {
"browserTarget": "app:build:qa"
}
}
},
+2 -1
View File
@@ -14,8 +14,9 @@
"homepage": "https://pocket.psi.ch",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.config.json",
"start": "ng serve",
"build:prod": "ionic build --prod --service-worker -- --base-href /",
"build:qa": "ionic build --configuration=qa --service-worker -- --base-href /",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
+25
View File
@@ -0,0 +1,25 @@
export const environment = {
production: true,
// assets path
assets: '/assets',
// phonebook api
phone_api: 'https://appeng-win-webservices.psi.ch/api/Phonebook',
// oase menu api
oase_api: 'https://devhost1.web.psi.ch/base/data/mealplannerproxy/receive/mealplan/active',
holiday_api: 'https://devhost1.web.psi.ch/base/data/mealplannerproxy/receive/holidays',
// gfa-status image urls
slsstatus: 'https://gfa-status.web.psi.ch/sls-display-01.png?',
sls_api: 'https://gfa-status.web.psi.ch/machine_status.json',
hipainfo: 'https://gfa-status.web.psi.ch/hipa-info-72.png?',
hipastatus: 'https://gfa-status.web.psi.ch/hipa-status.png?',
proscanstatus: 'https://gfa-status.web.psi.ch/pro-display-01.png?',
swissfelstatus: 'https://gfa-status.web.psi.ch/sf-display-01.png?',
// zpt image and calendar urls
zptforecast: 'http://spotscan.ch/forecast/forecast-snapshot.png?',
zptshifts: 'http://spotscan.ch/1715/shifts-1715-2019.PNG?',
zptcalendar: 'http://spotscan.ch/CPTcalendar/',
// corona
corona_bus_api: 'https://corona-api-dmz-qa.psi.ch/bus.asmx',
corona_catering_api: 'https://corona-api-dmz-qa.psi.ch/catering.asmx',
corona_employee_api: 'https://corona-api-dmz-qa.psi.ch/employee.asmx',
};