angular-docs-cn/modules/playground
Paul Gschwendtner 3c7fdc6a9e build: fix routing playground example using external resource (#28490)
Currently the "routing" playground example fails the e2e tests
because it tries to load the OpenSans font using an external
HTTP request. External http requests are not allowed (unless
explicitly enabled) within Bazel in order to ensure that
all targets are built and tested in a hermetic way.

In order to work around this issue in a Bazel idiomatic way,
we just vendor the fonts in the "third_party" folder. Note
that we can technically also enable internet for the RBE
host platform, but it's not a best practice for hermeticity.

The following syntax would allow us to enable internet for
RBE (stated here for tracking)

```
properties: {
  name: "dockerNetwork"
  value: "standard"
}
```

PR Close #28490
2019-02-04 16:51:11 -05:00
..
e2e_test build: disable failing ivy playground example e2e tests (#28490) 2019-02-04 16:51:11 -05:00
src build: fix routing playground example using external resource (#28490) 2019-02-04 16:51:11 -05:00
BUILD.bazel build: switch playground examples to bazel (#28490) 2019-02-04 16:51:11 -05:00
README.md build: switch playground examples to bazel (#28490) 2019-02-04 16:51:11 -05:00
favicon.ico build: adding basic e2e testing infrastructure 2016-05-02 08:15:10 -07:00
systemjs-config.js build: switch playground examples to bazel (#28490) 2019-02-04 16:51:11 -05:00
systemjs-rxjs-operators.js 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

README.md

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