Skip to content

Commit 666ee0b

Browse files
committed
Update to Angular 17
1 parent 1c8ecf8 commit 666ee0b

31 files changed

+18770
-12463
lines changed

angular-app/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false

angular-app/.gitignore

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
11
# See http://help.github.com/ignore-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
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
1222

13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
1630

17-
# misc
18-
/.sass-cache
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
1934
/connect.lock
2035
/coverage
2136
/libpeerconnection.log
22-
npm-debug.log
23-
yarn-error.log
2437
testem.log
2538
/typings
2639

27-
# System Files
40+
# System files
2841
.DS_Store
2942
Thumbs.db

angular-app/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# AngularApp
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.6.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.3.
44

55
## Development server
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
88

99
## Code scaffolding
1010

1111
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
1212

1313
## Build
1414

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
1616

1717
## Running unit tests
1818

1919
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
2020

2121
## Running end-to-end tests
2222

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

angular-app/angular.json

Lines changed: 42 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,31 @@
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"style": "scss"
10+
"style": "scss",
11+
"standalone": false
12+
},
13+
"@schematics/angular:directive": {
14+
"standalone": false
15+
},
16+
"@schematics/angular:pipe": {
17+
"standalone": false
1118
}
1219
},
1320
"root": "",
1421
"sourceRoot": "src",
1522
"prefix": "app",
1623
"architect": {
1724
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
25+
"builder": "@angular-devkit/build-angular:application",
1926
"options": {
2027
"outputPath": "dist/angular-app",
2128
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
29+
"browser": "src/main.ts",
30+
"polyfills": [
31+
"zone.js"
32+
],
2433
"tsConfig": "tsconfig.app.json",
25-
"aot": false,
34+
"inlineStyleLanguage": "scss",
2635
"assets": [
2736
"src/favicon.ico",
2837
"src/assets"
@@ -34,60 +43,55 @@
3443
},
3544
"configurations": {
3645
"production": {
37-
"fileReplacements": [
38-
{
39-
"replace": "src/environments/environment.ts",
40-
"with": "src/environments/environment.prod.ts"
41-
}
42-
],
43-
"optimization": true,
44-
"outputHashing": "all",
45-
"sourceMap": false,
46-
"extractCss": true,
47-
"namedChunks": false,
48-
"aot": true,
49-
"extractLicenses": true,
50-
"vendorChunk": false,
51-
"buildOptimizer": true,
5246
"budgets": [
5347
{
5448
"type": "initial",
55-
"maximumWarning": "2mb",
56-
"maximumError": "5mb"
49+
"maximumWarning": "500kb",
50+
"maximumError": "1mb"
5751
},
5852
{
5953
"type": "anyComponentStyle",
60-
"maximumWarning": "6kb",
61-
"maximumError": "10kb"
54+
"maximumWarning": "2kb",
55+
"maximumError": "4kb"
6256
}
63-
]
57+
],
58+
"outputHashing": "all"
59+
},
60+
"development": {
61+
"optimization": false,
62+
"extractLicenses": false,
63+
"sourceMap": true
6464
}
65-
}
65+
},
66+
"defaultConfiguration": "production"
6667
},
6768
"serve": {
6869
"builder": "@angular-devkit/build-angular:dev-server",
69-
"options": {
70-
"browserTarget": "angular-app:build"
71-
},
7270
"configurations": {
7371
"production": {
74-
"browserTarget": "angular-app:build:production"
72+
"buildTarget": "angular-app:build:production"
73+
},
74+
"development": {
75+
"buildTarget": "angular-app:build:development"
7576
}
76-
}
77+
},
78+
"defaultConfiguration": "development"
7779
},
7880
"extract-i18n": {
7981
"builder": "@angular-devkit/build-angular:extract-i18n",
8082
"options": {
81-
"browserTarget": "angular-app:build"
83+
"buildTarget": "angular-app:build"
8284
}
8385
},
8486
"test": {
8587
"builder": "@angular-devkit/build-angular:karma",
8688
"options": {
87-
"main": "src/test.ts",
88-
"polyfills": "src/polyfills.ts",
89+
"polyfills": [
90+
"zone.js",
91+
"zone.js/testing"
92+
],
8993
"tsConfig": "tsconfig.spec.json",
90-
"karmaConfig": "karma.conf.js",
94+
"inlineStyleLanguage": "scss",
9195
"assets": [
9296
"src/favicon.ico",
9397
"src/assets"
@@ -97,33 +101,8 @@
97101
],
98102
"scripts": []
99103
}
100-
},
101-
"lint": {
102-
"builder": "@angular-devkit/build-angular:tslint",
103-
"options": {
104-
"tsConfig": [
105-
"tsconfig.app.json",
106-
"tsconfig.spec.json",
107-
"e2e/tsconfig.json"
108-
],
109-
"exclude": [
110-
"**/node_modules/**"
111-
]
112-
}
113-
},
114-
"e2e": {
115-
"builder": "@angular-devkit/build-angular:protractor",
116-
"options": {
117-
"protractorConfig": "e2e/protractor.conf.js",
118-
"devServerTarget": "angular-app:serve"
119-
},
120-
"configurations": {
121-
"production": {
122-
"devServerTarget": "angular-app:serve:production"
123-
}
124-
}
125104
}
126105
}
127-
}},
128-
"defaultProject": "angular-app"
129-
}
106+
}
107+
}
108+
}

angular-app/browserslist

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

angular-app/e2e/protractor.conf.js

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

angular-app/e2e/src/app.e2e-spec.ts

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

angular-app/e2e/src/app.po.ts

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

angular-app/e2e/tsconfig.json

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

angular-app/karma.conf.js

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

0 commit comments

Comments
 (0)