Skip to content

Commit df5949f

Browse files
committed
feat: update to Angular 13
BREAKING CHANGE: Switch to Ivy and the new Angular Package Format.
1 parent 99313a3 commit df5949f

Some content is hidden

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

80 files changed

+11034
-13384
lines changed

.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# Editor configuration, see https://editorconfig.org
22
root = true
33

44
[*]
@@ -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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ typings/
6565
!rollup.config.js
6666
*.d.ts
6767

68+
# Angular
69+
.angular
70+
6871
# Others
6972
.vscode
7073
dist

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
coverage
22
dist
3-
ng-env.metadata.json

angular.json

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"cli": {
4+
"analytics": false
5+
},
6+
"version": 1,
7+
"newProjectRoot": "projects",
8+
"projects": {
9+
"angular-server-side-config-app": {
10+
"projectType": "application",
11+
"schematics": {
12+
"@schematics/angular:application": {
13+
"strict": true
14+
}
15+
},
16+
"root": "",
17+
"sourceRoot": "src",
18+
"prefix": "app",
19+
"architect": {
20+
"build": {
21+
"builder": "@angular-devkit/build-angular:browser",
22+
"options": {
23+
"outputPath": "dist/angular-server-side-config-app",
24+
"index": "src/index.html",
25+
"main": "src/main.ts",
26+
"polyfills": "src/polyfills.ts",
27+
"tsConfig": "tsconfig.app.json",
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
32+
"styles": [
33+
"src/styles.css"
34+
],
35+
"scripts": []
36+
},
37+
"configurations": {
38+
"production": {
39+
"budgets": [
40+
{
41+
"type": "initial",
42+
"maximumWarning": "500kb",
43+
"maximumError": "1mb"
44+
},
45+
{
46+
"type": "anyComponentStyle",
47+
"maximumWarning": "2kb",
48+
"maximumError": "4kb"
49+
}
50+
],
51+
"fileReplacements": [
52+
{
53+
"replace": "src/environments/environment.ts",
54+
"with": "src/environments/environment.prod.ts"
55+
}
56+
],
57+
"outputHashing": "all"
58+
},
59+
"development": {
60+
"buildOptimizer": false,
61+
"optimization": false,
62+
"vendorChunk": true,
63+
"extractLicenses": false,
64+
"sourceMap": true,
65+
"namedChunks": true
66+
}
67+
},
68+
"defaultConfiguration": "production"
69+
},
70+
"serve": {
71+
"builder": "@angular-devkit/build-angular:dev-server",
72+
"configurations": {
73+
"production": {
74+
"browserTarget": "angular-server-side-config-app:build:production"
75+
},
76+
"development": {
77+
"browserTarget": "angular-server-side-config-app:build:development"
78+
}
79+
},
80+
"defaultConfiguration": "development"
81+
},
82+
"extract-i18n": {
83+
"builder": "@angular-devkit/build-angular:extract-i18n",
84+
"options": {
85+
"browserTarget": "angular-server-side-config-app:build"
86+
}
87+
},
88+
"test": {
89+
"builder": "@angular-devkit/build-angular:karma",
90+
"options": {
91+
"main": "src/test.ts",
92+
"polyfills": "src/polyfills.ts",
93+
"tsConfig": "tsconfig.spec.json",
94+
"karmaConfig": "karma.conf.js",
95+
"assets": [
96+
"src/favicon.ico",
97+
"src/assets"
98+
],
99+
"styles": [
100+
"src/styles.css"
101+
],
102+
"scripts": []
103+
}
104+
}
105+
}
106+
},
107+
"angular-server-side-configuration": {
108+
"projectType": "library",
109+
"root": "projects/angular-server-side-configuration",
110+
"sourceRoot": "projects/angular-server-side-configuration/src",
111+
"prefix": "lib",
112+
"architect": {
113+
"build": {
114+
"builder": "@angular-devkit/build-angular:ng-packagr",
115+
"options": {
116+
"project": "projects/angular-server-side-configuration/ng-package.json"
117+
},
118+
"configurations": {
119+
"production": {
120+
"tsConfig": "projects/angular-server-side-configuration/tsconfig.lib.prod.json"
121+
},
122+
"development": {
123+
"tsConfig": "projects/angular-server-side-configuration/tsconfig.lib.json"
124+
}
125+
},
126+
"defaultConfiguration": "production"
127+
},
128+
"test": {
129+
"builder": "@angular-devkit/build-angular:karma",
130+
"options": {
131+
"main": "projects/angular-server-side-configuration/src/test.ts",
132+
"tsConfig": "projects/angular-server-side-configuration/tsconfig.spec.json",
133+
"karmaConfig": "projects/angular-server-side-configuration/karma.conf.js"
134+
}
135+
}
136+
}
137+
}
138+
},
139+
"defaultProject": "angular-server-side-configuration"
140+
}

azure-pipelines.yml

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

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ services:
1515
- "8080:80"
1616
environment:
1717
- VARIABLE=Variable
18+
nginx-bash:
19+
image: nginx
20+
stdin_open: true # docker run -i
21+
tty: true # docker run -t
22+
nginx-nr-bash:
23+
image: nginxinc/nginx-unprivileged
24+
stdin_open: true # docker run -i
25+
tty: true # docker run -t
26+

ng-env.d.ts

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

ng-env.js

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

ng-env.metadata.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)