angular-docs-cn/aio/tools/transforms/examples-package/services
Pete Bacon Darwin fb97e67fcb build(docs-infra): fail if there are unused example regions (#40479)
We can define regions in our examples that can be referenced
and rendered in guides as code snippets. It is quite hard to ensure
that these regions are maintained correctly. One reason for this is
it is hard to know whether a region is being used or not.

This commit adds a new processor that checks for unused named
regions in examples and fails if any are found.

Fixes #19761

PR Close #40479
2021-01-20 16:12:15 -08:00
..
region-matchers build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
example-map.js build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
getExampleRegion.js build(docs-infra): fail if there are unused example regions (#40479) 2021-01-20 16:12:15 -08:00
getExampleRegion.spec.js build(docs-infra): fail if there are unused example regions (#40479) 2021-01-20 16:12:15 -08:00
parseArgString.js build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
region-parser.js test(docs-infra): run tests in random order (and make them pass) (#31527) 2019-07-18 10:17:13 -07:00
region-parser.spec.js build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00