angular/modules/playground
Paul Gschwendtner 90c2088679 build: make devmode a noop and ensure it never runs (#48521)
This is basically a pre-step for combining devmode and prodmode into a
single compilation. We are already achieving this now, and can claim
with confidence that we reduced possible actions by half. This is
especially important now that prodmode is used more often, but rules
potentially still using the devmode ESM sources. We can avoid double
compilations (which existed before the whole ESM migration too!).

We will measure this more when we have more concrete documentation
of the changes & a better planning document.

Changes:

  * ts_library will no longer generate devmode `d.ts`. Definitions are
    generated as part of prodmode. That way only prodmode can be exposed
    via providers.
  * applied the same to `ng_module`.
  * updates migrations to bundle because *everything* using `ts_library`
    is now ESM. This is actually also useful in the future if
    schematics rely on e.g. the compiler.
  * updates schematics for localize to also bundle. similar reason as
    above.

PR Close #48521
2022-12-19 19:50:45 +00:00
..
e2e_test refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521) 2022-12-19 19:50:44 +00:00
src build: make devmode a noop and ensure it never runs (#48521) 2022-12-19 19:50:45 +00:00
BUILD.bazel refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521) 2022-12-19 19:50:44 +00:00
favicon.ico build: adding basic e2e testing infrastructure 2016-05-02 08:15:10 -07:00
README.md build: switch playground examples to bazel (#28490) 2019-02-04 16:51:11 -05:00
tsconfig-build.json build: switch playground examples to bazel (#28490) 2019-02-04 16:51:11 -05:00
tsconfig-e2e.json build: run playground e2e examples with bazel (#28490) 2019-02-04 16:51:11 -05:00

How to serve the examples

All playground examples are built and served with Bazel. Below is an example that demonstrates how a specific example can be built and served with Bazel:

# e.g. src/zippy_component
yarn bazel run modules/playground/src/zippy_component:devserver

# e.g. src/upgrade
yarn bazel run modules/playground/src/upgrade:devserver