angular/aio/tools/examples/shared/boilerplate/cli
George Kalpakas 88d4b269b5 build(docs-infra): simplify ExampleZipper by removing PackageJsonCustomizer (#38192)
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
2020-07-23 11:08:11 -07:00
..
e2e build(docs-infra): update project structure to cli@9 7/12 (.gitignore, protractor.conf.js) (#36015) 2020-03-18 10:00:01 -07:00
src build(docs-infra): remove obsolete typings.d.ts files from angular.io and docs examples (#38173) 2020-07-22 10:15:09 -07:00
.editorconfig build(docs-infra): upgrade docs examples to latest Angular CLI and framework (#36145) 2020-05-05 11:50:30 -07:00
.gitignore build(docs-infra): update project structure to cli@9 7/12 (.gitignore, protractor.conf.js) (#36015) 2020-03-18 10:00:01 -07:00
angular.json build(docs-infra): update project structure to cli@9 11/12 (angular.json) (#36015) 2020-03-18 10:00:02 -07:00
browserslist docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
karma.conf.js docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
package.json build(docs-infra): simplify ExampleZipper by removing PackageJsonCustomizer (#38192) 2020-07-23 11:08:11 -07:00
tsconfig.app.json build(docs-infra): update project structure to cli@9 10/12 (tsconfig.json) (#36015) 2020-03-18 10:00:01 -07:00
tsconfig.json build(docs-infra): switch docs examples to Ivy (#36143) 2020-04-06 15:31:07 -07:00
tsconfig.spec.json docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
tslint.json build(docs-infra): update project structure to cli@9 9/12 (tslint.json) (#36015) 2020-03-18 10:00:01 -07:00