mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Exposes code needed by the Angular CLI. Previously the CLI used deep imports for most of these things, but now with bundling the CLI, we no longer support deep imports. We will expose the necessary dependencies for the linker as part of the primary entry-point (I think that is more maintable than re-exporting them as part of the linker). We also expose the ngcc entry-point for the CLI with a new constant that will point to the ngcc command line entry-point (which the CLI relies on). PR Close #43431 |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| main-ngcc.ts | ||
| README.md | ||
Angular Compatibility Compiler (ngcc)
This compiler will convert node_modules compiled with ngc, into node_modules which
appear to have been compiled with ngtsc.
This conversion will allow such "legacy" packages to be used by the Ivy rendering engine.
Building
The project is built using Bazel:
yarn bazel build //packages/compiler-cli/ngcc
Unit Testing
The unit tests are built and run using Bazel:
yarn bazel test //packages/compiler-cli/ngcc/test
Integration Testing
There are tests that check the behavior of the overall executable:
yarn bazel test //packages/compiler-cli/ngcc/test:integration