Skip to content

Commit b2ba32c

Browse files
authored
Merge branch 'main' into main
2 parents a2c73fd + 4f19e72 commit b2ba32c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+640
-854
lines changed

.github/workflows/deploy-ahlava.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/deploy-kleobis.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/deploy-kyzikos.yml renamed to .github/workflows/deploy-prod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: deploy-kyzikos
1+
name: deploy-prod
22
on:
33
push:
44
branches:
5-
- 'dev-kyzikos'
5+
- 'prod'
66
jobs:
7-
deploy-kyzikos:
7+
deploy-prod:
88
runs-on: ubuntu-latest
99
steps:
1010
- run: mkdir src
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
cd src &&
2121
npm install &&
22-
npm run build.kyzikos &&
22+
npm run build.prod &&
2323
cd dist/web-frontend-angular/cs/ &&
2424
cp -r ../cgi-bin cgi-bin &&
2525
tar -cvf ../../dist.tar *
@@ -48,7 +48,7 @@ jobs:
4848
shell: bash
4949
run: |
5050
echo "Asset URL: ${{ steps.upload_tar.outputs.browser_download_url }}"
51-
status="$(curl -X POST -u '${{ secrets.KYZIKOS_DEPLOY_USER }}:${{ secrets.KYZIKOS_DEPLOY_PASSWORD }}' -d '${{ steps.upload_tar.outputs.browser_download_url }}' '${{ secrets.KYZIKOS_DEPLOY_URL }}')"
51+
status="$(curl -X POST -u '${{ secrets.PROD_DEPLOY_USER }}:${{ secrets.PROD_DEPLOY_PASSWORD }}' -d '${{ steps.upload_tar.outputs.browser_download_url }}' '${{ secrets.PROD_DEPLOY_URL }}')"
5252
if [ "$status" = "OK" ]; then
5353
echo "Notified OK!"
5454
else

angular.json

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,6 @@
4848
"ngswConfigPath": "ngsw-config.json"
4949
},
5050
"configurations": {
51-
"production": {
52-
"budgets": [
53-
{
54-
"type": "initial",
55-
"maximumWarning": "500kb",
56-
"maximumError": "1mb"
57-
},
58-
{
59-
"type": "anyComponentStyle",
60-
"maximumWarning": "2kb",
61-
"maximumError": "4kb"
62-
}
63-
],
64-
"fileReplacements": [
65-
{
66-
"replace": "src/environments/environment.ts",
67-
"with": "src/environments/environment.prod.ts"
68-
},
69-
{
70-
"replace": "src/routes/routes.ts",
71-
"with": "src/routes/routes.cs.ts"
72-
}
73-
],
74-
"outputHashing": "all"
75-
},
7651
"pubdev": {
7752
"buildOptimizer": false,
7853
"optimization": false,
@@ -91,26 +66,7 @@
9166
}
9267
]
9368
},
94-
"kyzikos": {
95-
"buildOptimizer": true,
96-
"optimization": true,
97-
"vendorChunk": true,
98-
"extractLicenses": false,
99-
"sourceMap": false,
100-
"namedChunks": true,
101-
"baseHref": "/",
102-
"fileReplacements": [
103-
{
104-
"replace": "src/environments/environment.ts",
105-
"with": "src/environments/environment.kyzikos.ts"
106-
},
107-
{
108-
"replace": "src/routes/routes.ts",
109-
"with": "src/routes/routes.cs.ts"
110-
}
111-
]
112-
},
113-
"kleobis": {
69+
"production": {
11470
"buildOptimizer": true,
11571
"optimization": true,
11672
"vendorChunk": true,
@@ -121,7 +77,7 @@
12177
"fileReplacements": [
12278
{
12379
"replace": "src/environments/environment.ts",
124-
"with": "src/environments/environment.kleobis.ts"
80+
"with": "src/environments/environment.prod.ts"
12581
},
12682
{
12783
"replace": "src/routes/routes.ts",

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"start": "ng serve",
99
"build": "npm run gen.changelog && ng build",
1010
"build.pubdev": "npm run gen.changelog && ng build --configuration pubdev",
11-
"build.kyzikos": "npm run gen.changelog && ng build --configuration kyzikos && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",
12-
"build.kleobis": "npm run gen.changelog && ng build --configuration kleobis && cp src/matomo/kleobis.js dist/web-frontend-angular/*/assets/scripts/matomo.js && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",
11+
"build.prod": "npm run gen.changelog && ng build --configuration production && cp src/matomo/prod.js dist/web-frontend-angular/*/assets/scripts/matomo.js && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",
1312
"watch": "ng build --watch --configuration development",
1413
"test": "ng test",
1514
"gen.theme": "util/gen-scss-theme.sh",

0 commit comments

Comments
 (0)