mirror of
https://github.com/Raghu-Ch/angular-accessibility.git
synced 2026-02-10 04:43:02 -05:00
fix: upgrade to Angular v12
add README details
This commit is contained in:
@@ -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
|
||||
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
11
angular.json
11
angular.json
@@ -28,7 +28,6 @@
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"aot": true,
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
@@ -36,7 +35,15 @@
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
"inlineStyleLanguage": "scss",
|
||||
"scripts": [],
|
||||
"vendorChunk": true,
|
||||
"extractLicenses": false,
|
||||
"buildOptimizer": false,
|
||||
"sourceMap": true,
|
||||
"optimization": false,
|
||||
"namedChunks": true,
|
||||
"aot": false
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
||||
2048
package-lock.json
generated
2048
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
40
package.json
40
package.json
@@ -11,25 +11,25 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "~12.0.0-next.9",
|
||||
"@angular/cdk": "^12.0.0-next.7",
|
||||
"@angular/common": "^12.0.0-next.9",
|
||||
"@angular/compiler": "^12.0.0-next.9",
|
||||
"@angular/core": "^12.0.0-next.9",
|
||||
"@angular/forms": "^12.0.0-next.9",
|
||||
"@angular/google-maps": "^11.2.6",
|
||||
"@angular/material": "^12.0.0-next.7",
|
||||
"@angular/platform-browser": "^12.0.0-next.9",
|
||||
"@angular/platform-browser-dynamic": "^12.0.0-next.9",
|
||||
"@angular/router": "~12.0.0-next.9",
|
||||
"@angular/animations": "~12.0.0",
|
||||
"@angular/cdk": "^12.0.0",
|
||||
"@angular/common": "^12.0.0",
|
||||
"@angular/compiler": "^12.0.0",
|
||||
"@angular/core": "^12.0.0",
|
||||
"@angular/forms": "^12.0.0",
|
||||
"@angular/google-maps": "^12.0.0",
|
||||
"@angular/material": "^12.0.0",
|
||||
"@angular/platform-browser": "^12.0.0",
|
||||
"@angular/platform-browser-dynamic": "^12.0.0",
|
||||
"@angular/router": "~12.0.0",
|
||||
"rxjs": "~6.6.0",
|
||||
"tslib": "^2.0.0",
|
||||
"zone.js": "~0.11.3"
|
||||
"zone.js": "~0.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "~12.0.0-next.9",
|
||||
"@angular/cli": "~12.0.0-next.9",
|
||||
"@angular/compiler-cli": "~12.0.0-next.9",
|
||||
"@angular-devkit/build-angular": "~12.0.0",
|
||||
"@angular/cli": "~12.0.0",
|
||||
"@angular/compiler-cli": "~12.0.0",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/node": "^12.11.1",
|
||||
"@typescript-eslint/eslint-plugin": "4.16.1",
|
||||
@@ -49,10 +49,10 @@
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jsdoc": "30.7.6",
|
||||
"eslint-plugin-prefer-arrow": "1.2.2",
|
||||
"@angular-eslint/builder": "2.0.2",
|
||||
"@angular-eslint/eslint-plugin": "2.0.2",
|
||||
"@angular-eslint/eslint-plugin-template": "2.0.2",
|
||||
"@angular-eslint/schematics": "2.0.2",
|
||||
"@angular-eslint/template-parser": "2.0.2"
|
||||
"@angular-eslint/builder": "^4.0.0",
|
||||
"@angular-eslint/eslint-plugin": "^4.0.0",
|
||||
"@angular-eslint/eslint-plugin-template": "^4.0.0",
|
||||
"@angular-eslint/schematics": "12.0.0",
|
||||
"@angular-eslint/template-parser": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
BIN
src/assets/blue-demo-screenshot.png
Normal file
BIN
src/assets/blue-demo-screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
BIN
src/assets/pink-demo-screenshot.png
Normal file
BIN
src/assets/pink-demo-screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
@@ -28,4 +28,4 @@ export const environment = {
|
||||
* This import should be commented out in production mode because it will have a negative impact
|
||||
* 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.
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
/***************************************************************************************************
|
||||
* 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.
|
||||
|
||||
|
||||
/***************************************************************************************************
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
// 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 {
|
||||
BrowserDynamicTestingModule,
|
||||
|
||||
Reference in New Issue
Block a user