angular-docs-cn/dev-infra
Paul Gschwendtner 53e95233c3 refactor(dev-infra): cleanup shared package dependencies (#37594)
Cleans up the dependencies used in the shared dev-infra package
configuration. With the recent benchmarking utilities that have
been added, a lot of peer dependencies have been added.

We decided that we don't want to list every used dependencies as
peer dependency as that could result in unnecessary churn/noise
for consumers of the dev-infra package. Additionally, not all parts
of the dev-infra package are necessarily used.

Due to this, we want to apply the following rules for the package
dependencies:

1. If a dependency is only used in a shipped Bazel macro/rule that can be
optionally consumed, omit it from `package.json`. Bazel reports the
missing dependency on its own, so we want to avoid adding it to the
package json file.

2. Otherwise, if the dependency is large and commonly used (like
buildifier), add it to the `peerDependencies`. If not, add it
to the dependencies that are always brought in. We consider it
as acceptable to bring in a few small dependencies that might not
be used or not. Making all of those option would complicate the
use of the dev-infra package.

ds

PR Close #37594
2020-06-18 16:03:14 -07:00
..
benchmark refactor(dev-infra): use shelljs instead of fs-extra for benchmark utils (#37594) 2020-06-18 16:03:14 -07:00
browsers build: update to latest stable Chromium 83.0.4103 in both rules_webtesting and puppeteer (#37427) 2020-06-08 09:16:40 -07:00
commit-message refactor(dev-infra): use the `exec()` helper from `utils/shelljs` whenever possible (#37444) 2020-06-05 09:21:18 -07:00
format build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
pr feat(dev-infra): support for caretaker note label in merge script (#37595) 2020-06-16 11:58:55 -07:00
pullapprove fix(dev-infra): allow for deep merging of pullapprove config aliases (#36915) 2020-06-15 14:29:32 -07:00
release refactor(dev-infra): use the `exec()` helper from `utils/shelljs` whenever possible (#37444) 2020-06-05 09:21:18 -07:00
ts-circular-dependencies style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00
utils fix(dev-infra): local changes check not working (#37489) 2020-06-09 08:27:32 -07:00
BUILD.bazel refactor(dev-infra): small changes and fixes (#36800) 2020-06-03 13:12:30 -07:00
cli.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng-dev build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tmpl-package.json refactor(dev-infra): cleanup shared package dependencies (#37594) 2020-06-18 16:03:14 -07:00