angular/packages/examples
Paul Gschwendtner c9415e4d75 build: ensure bootstrap transitive runfiles are made available (#48521)
Since we generate a `.mjs` file as entry-point for jasmine tests,
a couple of issues prevented the transitive dependencies from
bootstrap targets to be brought in (causing resolution errors):

1. The `_files` (previously `_esm2015`) targets are no longer needed,
   and they also miss all the information on runfiles.
2. The aspect for computing linker mappings does not respect the
   `bootstrap` attribute from the `spec_entrypoint` so we manually
   add the extract ESM output targets (this rule works with the aspect
   and forwards linker mappings).

PR Close #48521
2022-12-19 19:50:41 +00:00
..
common build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
core build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
forms build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
http build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
platform-browser build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
router/activated-route build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
service-worker build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
test-utils build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
testing build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
upgrade build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
BUILD.bazel build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
index.html build: set default ts_devserver serving_path to /app_bundle.js to match g3 (#33996) 2019-11-26 16:09:32 -08:00
README.md build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
tsconfig-e2e.json build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00

API Examples

This folder contains small example apps that get in-lined into our API docs. Each example contains tests for application behavior (as opposed to testing Angular's behavior) just like an Angular application developer would write.

Running the examples

# Serving individual examples (e.g. common)
yarn bazel run //packages/examples/common:devserver

# "core" examples
yarn bazel run //packages/examples/core:devserver

Running the tests

yarn bazel test //packages/examples/...