Previously, `ExampleZipper` (the tool used for creating ZIP archives from our docs examples) used the `PackageJsonCustomizer` to generate `package.json` files for each example type. This had the following drawbacks: - The generated files had to be kept up-to-date with the corresponding boilerplate files in `aio/tools/examples/shared/boilerplate/` and there was no easy way to find out when the files got out-of-sync. - The `PackageJsonCustomizer` logic was non-trivial and difficult to reason about. - The same information was duplicated in the boilerplate files and the customizer configuration files. This setup was useful when we used a single `package.json` file for all docs examples. Now, however, each example type can have its own boilerplate `package.json` file, including scripts and dependencies relevant to the example type. Therefore, it is no longer necessary to generate `package.json` files for ZIP archives. This commit eliminates the drawbacks mentioned above and simplifies the `ExampleZipper` tool by removing `PackageJsonCustomizer` and re-using the boilerplate `package.json` files for ZIP archives. The changes in this commit also fix some ZIP archives that were previously broken (for example due to missing dependencies). PR Close #38192
72 lines
2.5 KiB
JSON
72 lines
2.5 KiB
JSON
{
|
|
"name": "angular.io-example",
|
|
"version": "0.0.0",
|
|
"description": "Example project from an angular.io guide.",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "tsc -p src/",
|
|
"build:watch": "tsc -p src/ -w",
|
|
"build:e2e": "tsc -p e2e/",
|
|
"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 && npm run build:e2e",
|
|
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
|
|
"protractor": "protractor protractor.config.js",
|
|
"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": "~9.1.4",
|
|
"@angular/common": "~9.1.4",
|
|
"@angular/compiler": "~9.1.4",
|
|
"@angular/core": "~9.1.4",
|
|
"@angular/forms": "~9.1.4",
|
|
"@angular/platform-browser": "~9.1.4",
|
|
"@angular/platform-browser-dynamic": "~9.1.4",
|
|
"@angular/router": "~9.1.4",
|
|
"@angular/upgrade": "~9.1.4",
|
|
"core-js": "^2.5.4",
|
|
"rxjs": "~6.5.4",
|
|
"tslib": "^1.10.0",
|
|
"zone.js": "~0.10.3"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/compiler-cli": "~9.1.4",
|
|
"@angular/language-service": "~9.1.4",
|
|
"@types/angular": "1.6.47",
|
|
"@types/angular-animate": "1.5.10",
|
|
"@types/angular-mocks": "1.6.0",
|
|
"@types/angular-resource": "1.5.14",
|
|
"@types/angular-route": "1.3.5",
|
|
"@types/jasmine": "~3.5.0",
|
|
"@types/jasminewd2": "~2.0.3",
|
|
"@types/node": "^12.11.1",
|
|
"concurrently": "^5.0.1",
|
|
"http-server": "^0.12.0",
|
|
"jasmine-core": "~3.5.0",
|
|
"karma": "~4.3.0",
|
|
"karma-chrome-launcher": "~3.1.0",
|
|
"karma-jasmine": "~2.0.1",
|
|
"karma-jasmine-html-reporter": "^1.4.2",
|
|
"lite-server": "^2.2.2",
|
|
"protractor": "~5.4.3",
|
|
"rollup": "^1.1.0",
|
|
"rollup-plugin-commonjs": "^9.2.1",
|
|
"rollup-plugin-node-resolve": "^4.0.0",
|
|
"rollup-plugin-terser": "^5.3.0",
|
|
"tslint": "~5.18.0",
|
|
"typescript": "~3.7.5"
|
|
}
|
|
}
|