fix: upgrade to Angular v12

add README details
This commit is contained in:
twerske
2021-05-17 14:40:49 -07:00
parent 499aeaceaf
commit 79032a7ece
10 changed files with 1192 additions and 923 deletions

View File

@@ -1,15 +1,17 @@
# A11y in Angular demo : A Dumpling Shop # Build more accessible Angular apps : Dumpling Shop demo
Demo for the [Build more accessible Angular apps](codelabs.developers.google.com/angular-a11y) codelab. Demo for the [Build more accessible Angular apps](https://codelabs.developers.google.com/angular-a11y) codelab.
## Get set up ## Get set up
Run `npm install` to install the dependencies required to run the server. Run `npm install` to install the dependencies required to run the server.
Run `git checkout get-started` to use the `get-started` branch for the codelab. All solutions can be found in the `main` branch.
Run `ng serve --hmr` to run the server. Run `ng serve --hmr` to run the server.
Open a browser tab to [http://localhost:4200](). The app will automatically reload if you change any of the source files. Open a browser tab to [http://localhost:4200](http://localhost:4200). The app will automatically reload if you change any of the source files.
## Disclaimer ## Disclaimer

View File

@@ -28,7 +28,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@@ -36,7 +35,15 @@
"styles": [ "styles": [
"src/styles.scss" "src/styles.scss"
], ],
"scripts": [] "inlineStyleLanguage": "scss",
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true,
"aot": false
}, },
"configurations": { "configurations": {
"production": { "production": {

2048
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,25 +11,25 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.0.0-next.9", "@angular/animations": "~12.0.0",
"@angular/cdk": "^12.0.0-next.7", "@angular/cdk": "^12.0.0",
"@angular/common": "^12.0.0-next.9", "@angular/common": "^12.0.0",
"@angular/compiler": "^12.0.0-next.9", "@angular/compiler": "^12.0.0",
"@angular/core": "^12.0.0-next.9", "@angular/core": "^12.0.0",
"@angular/forms": "^12.0.0-next.9", "@angular/forms": "^12.0.0",
"@angular/google-maps": "^11.2.6", "@angular/google-maps": "^12.0.0",
"@angular/material": "^12.0.0-next.7", "@angular/material": "^12.0.0",
"@angular/platform-browser": "^12.0.0-next.9", "@angular/platform-browser": "^12.0.0",
"@angular/platform-browser-dynamic": "^12.0.0-next.9", "@angular/platform-browser-dynamic": "^12.0.0",
"@angular/router": "~12.0.0-next.9", "@angular/router": "~12.0.0",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.11.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.0.0-next.9", "@angular-devkit/build-angular": "~12.0.0",
"@angular/cli": "~12.0.0-next.9", "@angular/cli": "~12.0.0",
"@angular/compiler-cli": "~12.0.0-next.9", "@angular/compiler-cli": "~12.0.0",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/eslint-plugin": "4.16.1",
@@ -49,10 +49,10 @@
"eslint-plugin-import": "2.22.1", "eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6", "eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2", "eslint-plugin-prefer-arrow": "1.2.2",
"@angular-eslint/builder": "2.0.2", "@angular-eslint/builder": "^4.0.0",
"@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin": "^4.0.0",
"@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/eslint-plugin-template": "^4.0.0",
"@angular-eslint/schematics": "2.0.2", "@angular-eslint/schematics": "12.0.0",
"@angular-eslint/template-parser": "2.0.2" "@angular-eslint/template-parser": "^4.0.0"
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View File

@@ -28,4 +28,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * on performance if an error is thrown.
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@@ -72,7 +72,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@@ -15,7 +15,7 @@
*/ */
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,