Files
Paul Gschwendtner 5579d96c60 refactor(docs-infra): update boilerplate to have proper angular.js types (#46840)
With the recent lock file maintenance, the `@types/angular` dependency
ended up being duplicated. This seems to happen because we locked our
type dependency, but other Angular deps like `angular-route` had a
looser dependency, resulting in e.g. `1.7` types and `1.8` types to be
loaded.

This ultimately ended up breaking TypeScript's auto-discovering
of types and broke some example compilations e.g.

```
app/app.animations.ts(3,3): error TS2339: Property 'animation' does not exist on type 'IModule'.
app/app.config.ts(5,45): error TS2694: Namespace 'angular' has no exported member 'route'.
app/phone-detail/phone-detail.component.ajs.ts(10,37): error TS2694: Namespace 'angular' has no exported member 'route'.
```

We fix this by loosening the type dependency ranges, updating all of
these. Also we update AngularJS itself to the final version.

PR Close #46840
2022-07-14 15:55:01 +00:00

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",
"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": "^14.1.0-next",
"@angular/common": "^14.1.0-next",
"@angular/compiler": "^14.1.0-next",
"@angular/core": "^14.1.0-next",
"@angular/forms": "^14.1.0-next",
"@angular/platform-browser": "^14.1.0-next",
"@angular/platform-browser-dynamic": "^14.1.0-next",
"@angular/router": "^14.1.0-next",
"@angular/upgrade": "^14.1.0-next",
"core-js": "^2.5.4",
"rxjs": "~7.5.0",
"systemjs": "~0.19.39",
"systemjs-plugin-babel": "~0.0.25",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular/compiler-cli": "^14.1.0-next",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.2.0",
"@types/angular": "^1.8.4",
"@types/angular-animate": "^1.5.11",
"@types/angular-mocks": "^1.7.1",
"@types/angular-resource": "^1.5.17",
"@types/angular-route": "^1.7.2",
"@types/jasmine": "~4.0.0",
"@types/node": "^16.11.35",
"concurrently": "^7.0.0",
"http-server": "^14.0.0",
"jasmine-core": "~4.1.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-jasmine": "~5.0.0",
"karma-jasmine-html-reporter": "~2.0.0",
"lite-server": "^2.6.1",
"protractor": "~7.0.0",
"rollup": "^2.70.1",
"rollup-plugin-terser": "^7.0.2",
"typescript": "~4.7.2"
}
}