Paul Gschwendtner
13d3039c7d
refactor: convert AIO tooling scripts used in Bazel to ESM ( #48521 )
...
Since the Bazel setup in this repo will now always use ESM,
the tooling scripts/binaries in AIO need to be switched to ESM
too. Most of the scripts are already ESM, but a few had to be converted.
Note that the Dgeni generation does not use ESM because it's unaffected
and the Dgeni CLI is used. In the future we could also update the Dgeni
setup to ESM but there is no need currently.
PR Close #48521
2022-12-19 19:50:44 +00:00
Paul Gschwendtner
ccff7dcb28
build: fix unnecessary large runfiles in AIO when composing boilerplate ( #48329 )
...
The `example-boilerplate` NodeJS binary always depends on all files from
the individual examples. This is not needed as for composition w/ the
boilerplate, only the target example content + boilerplate is needed
in the runfiles. This reduces the runfiles and therefore speeds up
boilerplate creation (which can happen for all examples concurrently).
PR Close #48329
2022-12-02 09:47:43 -08:00
Derek Cormier
903917b13d
build(bazel): remaining AIO Bazel migration fixes
2022-11-22 13:51:16 -07:00
Derek Cormier
60058d2882
build(bazel): support ibazel for AIO example playgrounds
...
Also uses more fine-grained deps to make an ibazel rebuild fast.
2022-11-22 13:51:16 -07:00
Derek Cormier
f37dd0fc96
build(bazel): create AIO example playgrounds for manual testing
...
After the bazel migration, AIO examples are no longer fully formed in
the source tree.
2022-11-22 13:51:16 -07:00
Derek Cormier
e4b82cea26
build(bazel): clean up pathing in aio build tooling
...
Make use of process.env.RUNFILES.
2022-11-22 13:51:16 -07:00
Derek Cormier
b4c40c5d55
build(bazel): merge aio/tools/defaults.bzl and tools/defaults.bzl
...
Detect the correct workspace for the source maps dep.
2022-11-22 13:51:16 -07:00
Derek Cormier
7fd6f04df1
build(bazel): run aio systemjs example e2es concurrently
...
These had to be run with the 'exclusive' tag under bazel due to
hardcoded ports.
2022-11-22 13:51:16 -07:00
Derek Cormier
bc1e93d639
build(bazel): refactor aio example e2es to fix windows performance
...
Use the same config flag to enable local vs npm deps as aio.
2022-11-22 13:51:16 -07:00
Derek Cormier
7a134cf41a
build(bazel): incrementally run aio example e2e tests
...
Replaces the workflow where all example e2es are run at once
2022-11-22 13:51:16 -07:00
Derek Cormier
07126ae40f
build(bazel): fix race conditions in windows aio build
...
Disables the rules_nodejs linker and adds a custom esm module resolver
2022-11-22 13:51:16 -07:00
Derek Cormier
9a27c4cb50
build(bazel): incrementally build aio example zips and live examples
...
The existing scripts were amended to work on one example at a time
2022-11-22 13:51:16 -07:00
Derek Cormier
20ff128103
build(bazel): create targets for aio example tooling tests
...
This replaces the boilerplate:test npm script
2022-11-22 13:51:16 -07:00
Derek Cormier
9cb9161876
build(bazel): generate aio stackblitz and example zips
...
Can be served by running bazel run //aio:serve
2022-11-22 13:51:16 -07:00