The v21 and v22 event images were listed as separate asset entries
(`src/assets/images/v21-event` and `src/assets/images/v22-event`) next to
`src/assets`, which already contains them. They were added when the
images were moved into their own Bazel packages, but the Bazel targets in
`APPLICATION_FILES` are what place the files under `src/assets`; the
extra entries only copy the same files to the same output location
(`assets/images/v2x-event/`) a second time.
The unit-test builder reuses these assets and copies them into the test
output. Since the first copy is read-only in the Bazel sandbox, the
duplicate copy fails with `EACCES: permission denied, copyfile`, which
breaks running `//adev:test` locally.
Remove the redundant entries. The production build output is unchanged
(all non-HTML files, including the event images, are byte-identical) and
`//adev:test` runs again without errors.
adev is cross-origin isolated (COOP same-origin + COEP require-corp) so the
embedded WebContainer editor can use SharedArrayBuffer. Under require-corp the
cross-origin YouTube iframe in `<docs-video>` only loaded in Chromium, leaving
the player blank in Safari.
Switch COEP from `require-corp` to `credentialless`. The page stays cross-origin
isolated, so the editor keeps working, but cross-origin frames are now allowed
to load, which restores the inline player in Safari as well.
- Deletes the old Karma configuration and test entry point.
- Updates `angular.json` to use the `@angular/build` builders.
- Adjusts test files to align with the new setup.
This commit attempts to finally fix the long-standing first-party
package linking issue with the rather tricky `rules_nodejs` toolchain.
I've verified that no version of e.g. `@angular/core` ends up in the
Bazel sandbox. This is achieved by also filtering transitive Angular
deps for first-party linked packages. e.g. `@angular/docs`.
In addition, `@angular/docs` accidentally ended up bundling parts of
Angular core because it relied on an entry-point that was not part of
the "well known externals". As part of the ongoing `ng_package`
update/rewrite, we should look into disabling bundling of ANY external
dependency/module. This is possible because we use relative imports
inside APF packages as of recently!
This commit should allow us to develop and continue new compiler
features, without having to temporarily (or longer) disable all
`angular.dev` unit tests!
Fixes#54858.
PR Close#60825
Previously, the `@angular/docs` package had `xterm` as dependency but wasn't referencing it. It only had dedicated styles. This commit moves back the styles to the FW repo as it is only used here.
PR Close#55642
Creates a "fast mode" for building the adev site, currently only disabling prerender during fast build.
This is intended to be used for local development.
PR Close#54364