Skip to content

Commit 4598116

Browse files
committed
update to Angular v19
1 parent 15f4859 commit 4598116

Some content is hidden

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

59 files changed

+9239
-88147
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [23.x]
14+
15+
steps:
16+
- name: Checkout 🛎️
17+
uses: actions/checkout@v3
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies and build 🔧
25+
run: |
26+
npm ci
27+
npm run build:gh-pages
28+
29+
- name: Deploy 🚀
30+
uses: JamesIves/github-pages-deploy-action@v4
31+
with:
32+
folder: dist/angular-maze/browser

.gitignore

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
18-
/.idea
15+
.idea/
1916
.project
2017
.classpath
2118
.c9/
2219
*.launch
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
31+
# Miscellaneous
3532
/.angular/cache
36-
/.sass-cache
33+
.sass-cache/
3734
/connect.lock
3835
/coverage
3936
/libpeerconnection.log
40-
npm-debug.log
41-
yarn-error.log
4237
testem.log
4338
/typings
4439

45-
# System Files
40+
# System files
4641
.DS_Store
4742
Thumbs.db

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
}
12+
]
13+
}

.vscode/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
}
23+
]
24+
}

angular.json

Lines changed: 43 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,28 @@
66
"angular-maze": {
77
"projectType": "application",
88
"schematics": {
9-
"@schematics/angular:class": {
10-
"skipTests": true
11-
},
129
"@schematics/angular:component": {
10+
"skipTests": true,
11+
"standalone": false
12+
},
13+
"@schematics/angular:class": {
1314
"skipTests": true
1415
},
1516
"@schematics/angular:directive": {
16-
"skipTests": true
17+
"skipTests": true,
18+
"standalone": false
1719
},
1820
"@schematics/angular:guard": {
1921
"skipTests": true
2022
},
21-
"@schematics/angular:module": {
23+
"@schematics/angular:interceptor": {
24+
"skipTests": true
2225
},
2326
"@schematics/angular:pipe": {
27+
"skipTests": true,
28+
"standalone": false
29+
},
30+
"@schematics/angular:resolver": {
2431
"skipTests": true
2532
},
2633
"@schematics/angular:service": {
@@ -32,79 +39,66 @@
3239
"prefix": "app",
3340
"architect": {
3441
"build": {
35-
"builder": "@angular-devkit/build-angular:browser",
42+
"builder": "@angular-devkit/build-angular:application",
3643
"options": {
3744
"outputPath": "dist/angular-maze",
3845
"index": "src/index.html",
39-
"main": "src/main.ts",
40-
"polyfills": "src/polyfills.ts",
46+
"browser": "src/main.ts",
47+
"polyfills": [
48+
"zone.js"
49+
],
4150
"tsConfig": "tsconfig.app.json",
4251
"assets": [
43-
"src/favicon.ico",
44-
"src/assets"
52+
{
53+
"glob": "**/*",
54+
"input": "public"
55+
}
4556
],
4657
"styles": [
4758
"src/styles.css"
4859
],
49-
"scripts": [],
50-
"vendorChunk": true,
51-
"extractLicenses": false,
52-
"buildOptimizer": false,
53-
"sourceMap": true,
54-
"optimization": false,
55-
"namedChunks": true
60+
"scripts": []
5661
},
5762
"configurations": {
5863
"production": {
59-
"fileReplacements": [
60-
{
61-
"replace": "src/environments/environment.ts",
62-
"with": "src/environments/environment.prod.ts"
63-
}
64-
],
65-
"optimization": true,
66-
"outputHashing": "all",
67-
"sourceMap": false,
68-
"namedChunks": false,
69-
"extractLicenses": true,
70-
"vendorChunk": false,
71-
"buildOptimizer": true,
7264
"budgets": [
7365
{
7466
"type": "initial",
75-
"maximumWarning": "2mb",
76-
"maximumError": "5mb"
67+
"maximumWarning": "500kB",
68+
"maximumError": "1MB"
7769
},
7870
{
7971
"type": "anyComponentStyle",
80-
"maximumWarning": "6kb",
81-
"maximumError": "10kb"
72+
"maximumWarning": "4kB",
73+
"maximumError": "8kB"
8274
}
83-
]
75+
],
76+
"outputHashing": "all"
77+
},
78+
"development": {
79+
"optimization": false,
80+
"extractLicenses": false,
81+
"sourceMap": true
8482
}
85-
}
83+
},
84+
"defaultConfiguration": "production"
8685
},
8786
"serve": {
8887
"builder": "@angular-devkit/build-angular:dev-server",
89-
"options": {
90-
"browserTarget": "angular-maze:build"
91-
},
9288
"configurations": {
9389
"production": {
94-
"browserTarget": "angular-maze:build:production"
90+
"buildTarget": "angular-maze:build:production"
91+
},
92+
"development": {
93+
"buildTarget": "angular-maze:build:development"
9594
}
96-
}
95+
},
96+
"defaultConfiguration": "development"
9797
},
9898
"extract-i18n": {
99-
"builder": "@angular-devkit/build-angular:extract-i18n",
100-
"options": {
101-
"browserTarget": "angular-maze:build"
102-
}
99+
"builder": "@angular-devkit/build-angular:extract-i18n"
103100
}
104101
}
105102
}
106-
},
107-
"cli": {
108-
"analytics": "7739deb3-6b11-4882-b9ed-a88747c5be06"
109103
}
110-
}
104+
}

docs/404.html

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

docs/index.html

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

0 commit comments

Comments
 (0)