Skip to content

Commit c56feec

Browse files
AlexandraBuzilaeneufeld
authored andcommitted
Update to Angular 12
1 parent d944116 commit c56feec

File tree

7 files changed

+5325
-5586
lines changed

7 files changed

+5325
-5586
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run `npm start` for a dev server. Navigate to [http://localhost:4200/](http://lo
1212

1313
## Build
1414

15-
Run `npm 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 `npm build` to build the project. The build artifacts will be stored in the `dist` directory. Use the `--configuration production` flag for a production build.
1616

1717
## Running unit tests
1818

@@ -28,4 +28,4 @@ For this showcase we hardcoded the schemas (`schema.json`, `uischema.json`) and
2828

2929
We implemented three custom controls (`custom.autocomplete.ts`, `lang.control.ts` and `data.control.ts`). If you don't need them just remove them! See also `store.ts` where these custom renderers are registered.
3030

31-
In `app.module.ts` we customized the validation and executed a manual resolving step before handing the schemas over to JSON Forms. These steps are optional and can be skipped if needed.
31+
In `app.component.ts` we customized the validation. This step is optional and can be skipped if needed.

angular.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14-
"aot": true,
1514
"outputPath": "dist",
1615
"index": "src/index.html",
1716
"main": "src/main.ts",
@@ -25,7 +24,13 @@
2524
"src/styles.css"
2625
],
2726
"scripts": [],
28-
"preserveSymlinks": true
27+
"preserveSymlinks": true,
28+
"vendorChunk": true,
29+
"extractLicenses": false,
30+
"buildOptimizer": false,
31+
"sourceMap": true,
32+
"optimization": false,
33+
"namedChunks": true
2934
},
3035
"configurations": {
3136
"production": {
@@ -39,7 +44,6 @@
3944
"outputHashing": "all",
4045
"sourceMap": false,
4146
"namedChunks": false,
42-
"aot": true,
4347
"extractLicenses": true,
4448
"vendorChunk": false,
4549
"buildOptimizer": true,
@@ -50,7 +54,8 @@
5054
}
5155
]
5256
}
53-
}
57+
},
58+
"defaultConfiguration": ""
5459
},
5560
"serve": {
5661
"builder": "@angular-devkit/build-angular:dev-server",

0 commit comments

Comments
 (0)