This commit updates the docs examples to Angular v12.1.3. In addition to updating the dependencies versions, it also updates the projects' structure and configs to more closely match what a new v12 CLI app would look like. See, also, the [diff][1] between a basic v11.2.11 CLI app and a v12.1.3 one. [1]: https://github.com/cexbrayat/angular-cli-diff/compare/11.2.11..12.1.3 PR Close #42949
69 lines
2.4 KiB
JSON
69 lines
2.4 KiB
JSON
{
|
|
"name": "angular.io-example",
|
|
"version": "0.0.0",
|
|
"description": "Example project from an angular.io guide.",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"build:watch": "tsc -w",
|
|
"serve": "lite-server -c=bs-config.json",
|
|
"serve:e2e": "lite-server -c=bs-config.e2e.json",
|
|
"prestart": "npm run build",
|
|
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
|
|
"pree2e": "webdriver-manager update",
|
|
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
|
|
"protractor": "protractor protractor.config.js --specs=e2e-spec.ts",
|
|
"pretest": "npm run build",
|
|
"test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"",
|
|
"pretest:once": "npm run build",
|
|
"test:once": "karma start karma.conf.js --single-run",
|
|
"lint": "tslint ./src/**/*.ts -t verbose",
|
|
"build:upgrade": "tsc",
|
|
"serve:upgrade": "http-server",
|
|
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
|
|
"serve:aot": "lite-server -c bs-config.aot.json",
|
|
"copy-dist-files": "node ./copy-dist-files.js"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "~12.1.0-",
|
|
"@angular/common": "~12.1.0-",
|
|
"@angular/compiler": "~12.1.0-",
|
|
"@angular/core": "~12.1.0-",
|
|
"@angular/forms": "~12.1.0-",
|
|
"@angular/platform-browser": "~12.1.0-",
|
|
"@angular/platform-browser-dynamic": "~12.1.0-",
|
|
"@angular/router": "~12.1.0-",
|
|
"@angular/upgrade": "~12.1.0-",
|
|
"core-js": "^2.5.4",
|
|
"rxjs": "~6.6.0",
|
|
"tslib": "^2.2.0",
|
|
"zone.js": "~0.11.4"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/compiler-cli": "~12.1.0-",
|
|
"@types/angular": "1.7.3",
|
|
"@types/angular-animate": "1.5.10",
|
|
"@types/angular-mocks": "1.7.0",
|
|
"@types/angular-resource": "1.5.16",
|
|
"@types/angular-route": "1.7.1",
|
|
"@types/jasmine": "~3.8.0",
|
|
"@types/node": "^12.11.1",
|
|
"concurrently": "^5.0.1",
|
|
"http-server": "^0.12.0",
|
|
"jasmine-core": "~3.8.0",
|
|
"karma": "~6.3.0",
|
|
"karma-chrome-launcher": "~3.1.0",
|
|
"karma-jasmine": "~4.0.0",
|
|
"karma-jasmine-html-reporter": "~1.7.0",
|
|
"lite-server": "^2.6.1",
|
|
"protractor": "~7.0.0",
|
|
"rollup": "^1.1.0",
|
|
"rollup-plugin-commonjs": "^9.2.1",
|
|
"rollup-plugin-node-resolve": "^4.0.0",
|
|
"rollup-plugin-terser": "^5.3.0",
|
|
"tslint": "~6.1.0",
|
|
"typescript": "~4.3.2"
|
|
}
|
|
}
|