angular/modules/playground
Paul Gschwendtner 3c9b4b51e2 refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521)
* Switches away from the ESM-incompatible & unmaintained `ts_devserver`
  to `http_server`. This is the canonical server maintained by dev-infra
* Switches tests away from CommonJS specific logic. e.g. require.resolve
* Adjusts tests to work with Protractor spec bundling (Protractor does
  not support ESM execution, but we want to take ESM-written specs)
* Reworks playground and benchmarks to use `app_bundle` and `esbuild`
  instead of loading hundreds of files individually. This also makes
  tests more stable and more aligned with real applications.

PR Close #48521
2022-12-19 19:50:44 +00:00
..
e2e_test refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521) 2022-12-19 19:50:44 +00:00
src refactor: update modules/ benchmarks and playgrounds to work with ESM (#48521) 2022-12-19 19:50:44 +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