Skip to content

Commit 1f4b613

Browse files
committed
migrate to angular 22
1 parent 29f2ecb commit 1f4b613

Some content is hidden

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

51 files changed

+7926
-12354
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: actions/checkout@v4
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: '18.x'
13+
node-version: '22.x'
1414
- name: Run install
1515
run: npm ci
1616
- name: Run build
@@ -20,4 +20,4 @@ jobs:
2020
with:
2121
name: developer
2222
include-hidden-files: true
23-
path: dist/developer
23+
path: dist/developer/browser

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#stage 1
2-
FROM node:18-alpine as node
2+
FROM node:22-alpine AS node
33
ENV NODE_OPTIONS=--openssl-legacy-provider
44
WORKDIR /app
55
COPY . .
@@ -14,5 +14,4 @@ ENV RECAPTCHA_KEY=""
1414
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
1515
COPY nginx/replace_env.sh /docker-entrypoint.d/replace_env.sh
1616
RUN chmod +x /docker-entrypoint.d/replace_env.sh
17-
COPY --from=node /app/dist/developer /usr/share/nginx/html
18-
COPY --from=node /app/dist/developer/index.html /usr/share/index.html
17+
COPY --from=node /app/dist/developer/browser /usr/share/nginx/html

angular.json

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,97 +3,95 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"developer": {
6+
"fusio": {
77
"projectType": "application",
88
"schematics": {},
99
"root": "",
1010
"sourceRoot": "src",
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular/build:application",
1515
"options": {
16-
"outputPath": "dist/developer",
17-
"index": "src/index.html",
18-
"main": "src/main.ts",
19-
"polyfills": [
20-
"zone.js"
21-
],
16+
"browser": "src/main.ts",
2217
"tsConfig": "tsconfig.app.json",
2318
"assets": [
24-
"src/.htaccess",
25-
"src/app.yaml",
26-
"src/favicon.ico",
27-
"src/assets"
19+
{
20+
"glob": "**/*",
21+
"input": "public"
22+
}
2823
],
2924
"styles": [
25+
"node_modules/bootstrap/dist/css/bootstrap.min.css",
26+
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
27+
"node_modules/@vscode/codicons/dist/codicon.css",
3028
"src/styles.css"
3129
],
32-
"scripts": []
30+
"polyfills": [
31+
"@angular/localize/init"
32+
]
3333
},
3434
"configurations": {
3535
"production": {
3636
"budgets": [
3737
{
3838
"type": "initial",
3939
"maximumWarning": "1mb",
40-
"maximumError": "2mb"
40+
"maximumError": "3mb"
4141
},
4242
{
4343
"type": "anyComponentStyle",
4444
"maximumWarning": "2kb",
4545
"maximumError": "4kb"
4646
}
4747
],
48+
"fileReplacements": [
49+
{
50+
"replace": "src/environments/environment.ts",
51+
"with": "src/environments/environment.prod.ts"
52+
}
53+
],
4854
"outputHashing": "all"
4955
},
5056
"development": {
51-
"buildOptimizer": false,
5257
"optimization": false,
53-
"vendorChunk": true,
5458
"extractLicenses": false,
55-
"sourceMap": true,
56-
"namedChunks": true
59+
"sourceMap": true
5760
}
5861
},
5962
"defaultConfiguration": "production"
6063
},
6164
"serve": {
62-
"builder": "@angular-devkit/build-angular:dev-server",
65+
"builder": "@angular/build:dev-server",
6366
"configurations": {
6467
"production": {
65-
"browserTarget": "developer:build:production"
68+
"buildTarget": "fusio:build:production"
6669
},
6770
"development": {
68-
"browserTarget": "developer:build:development"
71+
"buildTarget": "fusio:build:development"
6972
}
7073
},
7174
"defaultConfiguration": "development"
7275
},
7376
"extract-i18n": {
74-
"builder": "@angular-devkit/build-angular:extract-i18n",
75-
"options": {
76-
"browserTarget": "developer:build"
77-
}
77+
"builder": "@angular/build:extract-i18n"
7878
},
7979
"test": {
80-
"builder": "@angular-devkit/build-angular:karma",
80+
"builder": "@angular/build:karma",
8181
"options": {
82-
"polyfills": [
83-
"zone.js",
84-
"zone.js/testing"
85-
],
8682
"tsConfig": "tsconfig.spec.json",
8783
"assets": [
88-
"src/.htaccess",
89-
"src/app.yaml",
90-
"src/favicon.ico",
91-
"src/assets"
84+
{
85+
"glob": "**/*",
86+
"input": "public"
87+
}
9288
],
9389
"styles": [
9490
"src/styles.css"
9591
],
96-
"scripts": []
92+
"polyfills": [
93+
"@angular/localize/init"
94+
]
9795
}
9896
}
9997
}

0 commit comments

Comments
 (0)