Skip to content

Commit

Permalink
Update to Angular 12
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraBuzila authored and eneufeld committed Jul 14, 2021
1 parent d944116 commit c56feec
Show file tree
Hide file tree
Showing 7 changed files with 5,325 additions and 5,586 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Run `npm start` for a dev server. Navigate to [http://localhost:4200/](http://lo

## Build

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.
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.

## Running unit tests

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

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.

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.
In `app.component.ts` we customized the validation. This step is optional and can be skipped if needed.
13 changes: 9 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -25,7 +24,13 @@
"src/styles.css"
],
"scripts": [],
"preserveSymlinks": true
"preserveSymlinks": true,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -39,7 +44,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -50,7 +54,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
Loading

0 comments on commit c56feec

Please sign in to comment.