Skip to content

Commit 832a573

Browse files
authored
Add Angular 16 (#123)
1 parent c0be24e commit 832a573

33 files changed

+368
-1163
lines changed

static/generated.go

+196-596
Large diffs are not rendered by default.

templates/angular.webapp/.browserslistrc

-12
This file was deleted.

templates/angular.webapp/.editorconfig

+3
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

templates/angular.webapp/.gitignore

+12-15
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,43 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
4-
/build
3+
# Compiled output
4+
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
8+
/build
99

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

1715
# IDEs and editors
18-
/.idea
16+
.idea/
1917
.project
2018
.classpath
2119
.c9/
2220
*.launch
2321
.settings/
2422
*.sublime-workspace
2523

26-
# IDE - VSCode
24+
# Visual Studio Code
2725
.vscode/*
2826
!.vscode/settings.json
2927
!.vscode/tasks.json
3028
!.vscode/launch.json
3129
!.vscode/extensions.json
3230
.history/*
3331

34-
# misc
35-
/.sass-cache
32+
# Miscellaneous
33+
/.angular/cache
34+
.sass-cache/
3635
/connect.lock
3736
/coverage
3837
/libpeerconnection.log
39-
npm-debug.log
40-
yarn-error.log
4138
testem.log
4239
/typings
4340

44-
# System Files
41+
# System files
4542
.DS_Store
4643
Thumbs.db
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

templates/angular.webapp/angular.json

+38-63
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
"projects": {
66
"project-name": {
77
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:component": {
10-
"style": "scss"
11-
}
12-
},
8+
"schematics": {},
139
"root": "",
1410
"sourceRoot": "src",
1511
"prefix": "app",
@@ -20,60 +16,63 @@
2016
"outputPath": "build",
2117
"index": "src/index.html",
2218
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
19+
"polyfills": [
20+
"zone.js"
21+
],
2422
"tsConfig": "tsconfig.app.json",
25-
"aot": false,
2623
"assets": [
2724
"src/favicon.ico",
28-
"src/robot.txt",
2925
"src/assets"
3026
],
3127
"styles": [
32-
"src/styles.scss"
28+
"src/styles.css"
3329
],
3430
"scripts": []
3531
},
3632
"configurations": {
3733
"production": {
38-
"fileReplacements": [
39-
{
40-
"replace": "src/environments/environment.ts",
41-
"with": "src/environments/environment.prod.ts"
42-
}
43-
],
44-
"optimization": true,
45-
"outputHashing": "all",
46-
"sourceMap": false,
47-
"namedChunks": false,
48-
"aot": true,
49-
"extractLicenses": true,
50-
"vendorChunk": false,
51-
"buildOptimizer": true,
5234
"budgets": [
5335
{
5436
"type": "initial",
55-
"maximumWarning": "2mb",
56-
"maximumError": "5mb"
37+
"maximumWarning": "500kb",
38+
"maximumError": "1mb"
5739
},
5840
{
5941
"type": "anyComponentStyle",
60-
"maximumWarning": "6kb",
61-
"maximumError": "10kb"
42+
"maximumWarning": "2kb",
43+
"maximumError": "4kb"
44+
}
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"buildOptimizer": false,
50+
"optimization": false,
51+
"vendorChunk": true,
52+
"extractLicenses": false,
53+
"sourceMap": true,
54+
"namedChunks": true,
55+
"fileReplacements": [
56+
{
57+
"replace": "src/environments/environment.ts",
58+
"with": "src/environments/environment.development.ts"
6259
}
6360
]
6461
}
65-
}
62+
},
63+
"defaultConfiguration": "production"
6664
},
6765
"serve": {
6866
"builder": "@angular-devkit/build-angular:dev-server",
69-
"options": {
70-
"browserTarget": "project-name:build"
71-
},
7267
"configurations": {
7368
"production": {
7469
"browserTarget": "project-name:build:production"
70+
},
71+
"development": {
72+
"browserTarget": "project-name:build:development"
7573
}
76-
}
74+
},
75+
"defaultConfiguration": "development"
7776
},
7877
"extract-i18n": {
7978
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -84,46 +83,22 @@
8483
"test": {
8584
"builder": "@angular-devkit/build-angular:karma",
8685
"options": {
87-
"main": "src/test.ts",
88-
"polyfills": "src/polyfills.ts",
86+
"polyfills": [
87+
"zone.js",
88+
"zone.js/testing"
89+
],
8990
"tsConfig": "tsconfig.spec.json",
90-
"karmaConfig": "karma.conf.js",
9191
"assets": [
9292
"src/favicon.ico",
9393
"src/assets"
9494
],
9595
"styles": [
96-
"src/styles.scss"
96+
"src/styles.css"
9797
],
9898
"scripts": []
9999
}
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": "project-name:serve"
119-
},
120-
"configurations": {
121-
"production": {
122-
"devServerTarget": "project-name:serve:production"
123-
}
124-
}
125100
}
126101
}
127-
}},
128-
"defaultProject": "project-name"
102+
}
103+
}
129104
}

templates/angular.webapp/e2e/protractor.conf.js

-32
This file was deleted.

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

-23
This file was deleted.

templates/angular.webapp/e2e/src/app.po.ts

-11
This file was deleted.

templates/angular.webapp/e2e/tsconfig.json

-13
This file was deleted.

0 commit comments

Comments
 (0)