This commit updates the docs examples to Angular v11.0.1. In addition to updating the dependencies versions, it also updates the project's structure and config to more closely match what a new v11 CLI app would look like. See, also, the [diff][1] between a basic v10.1.3 CLI app and a v11.0.2 one. NOTE: I refrained from disabling the Selenium Promise Manager (as seen [here][2]) and switching all e2e tests to `async/await`, because that is a big change and should be done in a separate commit/PR. [1]: https://github.com/cexbrayat/angular-cli-diff/compare/10.1.3..11.0.2 [2]: https://github.com/cexbrayat/angular-cli-diff/compare/10.1.3...11.0.2#diff-dbd675d74087d57cd084d6dd6ae24ae2eeff2ff0122680e12916052f8a843a29 PR Close #39818
		
			
				
	
	
		
			164 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			164 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
 | |
|   "version": 1,
 | |
|   "newProjectRoot": "projects",
 | |
|   "projects": {
 | |
|     "angular.io-example": {
 | |
|       "projectType": "application",
 | |
|       "schematics": {
 | |
|         "@schematics/angular:application": {
 | |
|           "strict": true
 | |
|         }
 | |
|       },
 | |
|       "root": "",
 | |
|       "sourceRoot": "src",
 | |
|       "prefix": "app",
 | |
|       "architect": {
 | |
|         "build": {
 | |
|           "builder": "@angular-devkit/build-angular:browser",
 | |
|           "options": {
 | |
|             "outputPath": "dist",
 | |
|             "index": "src/index.html",
 | |
|             "main": "src/main.ts",
 | |
|             "polyfills": "src/polyfills.ts",
 | |
|             "tsConfig": "tsconfig.app.json",
 | |
|             "aot": true,
 | |
|             "assets": [
 | |
|               "src/favicon.ico",
 | |
|               "src/assets"
 | |
|             ],
 | |
|             "styles": [
 | |
|               "src/styles.css"
 | |
|             ],
 | |
|             "scripts": []
 | |
|           },
 | |
|           "configurations": {
 | |
|             "production": {
 | |
|               "fileReplacements": [
 | |
|                 {
 | |
|                   "replace": "src/environments/environment.ts",
 | |
|                   "with": "src/environments/environment.prod.ts"
 | |
|                 }
 | |
|               ],
 | |
|               "optimization": true,
 | |
|               "outputHashing": "all",
 | |
|               "sourceMap": false,
 | |
|               "namedChunks": false,
 | |
|               "extractLicenses": true,
 | |
|               "vendorChunk": false,
 | |
|               "buildOptimizer": true,
 | |
|               "budgets": [
 | |
|                 {
 | |
|                   "type": "initial",
 | |
|                   "maximumWarning": "500kb",
 | |
|                   "maximumError": "1mb"
 | |
|                 },
 | |
|                 {
 | |
|                   "type": "anyComponentStyle",
 | |
|                   "maximumWarning": "2kb",
 | |
|                   "maximumError": "4kb"
 | |
|                 }
 | |
|               ]
 | |
|             }
 | |
|           }
 | |
|         },
 | |
|         "serve": {
 | |
|           "builder": "@angular-devkit/build-angular:dev-server",
 | |
|           "options": {
 | |
|             "browserTarget": "angular.io-example:build"
 | |
|           },
 | |
|           "configurations": {
 | |
|             "production": {
 | |
|               "browserTarget": "angular.io-example:build:production"
 | |
|             }
 | |
|           }
 | |
|         },
 | |
|         "extract-i18n": {
 | |
|           "builder": "@angular-devkit/build-angular:extract-i18n",
 | |
|           "options": {
 | |
|             "browserTarget": "angular.io-example:build"
 | |
|           }
 | |
|         },
 | |
|         "test": {
 | |
|           "builder": "@angular-devkit/build-angular:karma",
 | |
|           "options": {
 | |
|             "main": "src/test.ts",
 | |
|             "polyfills": "src/polyfills.ts",
 | |
|             "tsConfig": "tsconfig.spec.json",
 | |
|             "karmaConfig": "karma.conf.js",
 | |
|             "assets": [
 | |
|               "src/favicon.ico",
 | |
|               "src/assets"
 | |
|             ],
 | |
|             "styles": [
 | |
|               "src/styles.css"
 | |
|             ],
 | |
|             "scripts": []
 | |
|           }
 | |
|         },
 | |
|         "lint": {
 | |
|           "builder": "@angular-devkit/build-angular:tslint",
 | |
|           "options": {
 | |
|             "tsConfig": [
 | |
|               "tsconfig.app.json",
 | |
|               "tsconfig.spec.json",
 | |
|               "e2e/tsconfig.json"
 | |
|             ],
 | |
|             "exclude": [
 | |
|               "**/node_modules/**"
 | |
|             ]
 | |
|           }
 | |
|         },
 | |
|         "e2e": {
 | |
|           "builder": "@angular-devkit/build-angular:protractor",
 | |
|           "options": {
 | |
|             "protractorConfig": "e2e/protractor.conf.js",
 | |
|             "devServerTarget": "angular.io-example:serve"
 | |
|           },
 | |
|           "configurations": {
 | |
|             "production": {
 | |
|               "devServerTarget": "angular.io-example:serve:production"
 | |
|             }
 | |
|           }
 | |
|         }
 | |
|       }
 | |
|     },
 | |
|     "my-lib": {
 | |
|       "root": "projects/my-lib",
 | |
|       "sourceRoot": "projects/my-lib/src",
 | |
|       "projectType": "library",
 | |
|       "prefix": "lib",
 | |
|       "architect": {
 | |
|         "build": {
 | |
|           "builder": "@angular-devkit/build-ng-packagr:build",
 | |
|           "options": {
 | |
|             "tsConfig": "projects/my-lib/tsconfig.lib.json",
 | |
|             "project": "projects/my-lib/ng-package.json"
 | |
|           }
 | |
|         },
 | |
|         "test": {
 | |
|           "builder": "@angular-devkit/build-angular:karma",
 | |
|           "options": {
 | |
|             "main": "projects/my-lib/src/test.ts",
 | |
|             "tsConfig": "projects/my-lib/tsconfig.spec.json",
 | |
|             "karmaConfig": "projects/my-lib/karma.conf.js"
 | |
|           }
 | |
|         },
 | |
|         "lint": {
 | |
|           "builder": "@angular-devkit/build-angular:tslint",
 | |
|           "options": {
 | |
|             "tsConfig": [
 | |
|               "projects/my-lib/tsconfig.lib.json",
 | |
|               "projects/my-lib/tsconfig.spec.json"
 | |
|             ],
 | |
|             "exclude": [
 | |
|               "**/node_modules/**"
 | |
|             ]
 | |
|           }
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   },
 | |
|   "defaultProject": "angular.io-example"
 | |
| }
 |