2018-07-16 03:49:56 -04:00
|
|
|
# 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:
|
|
|
|
|
|
|
|
```bash
|
2019-03-20 09:47:58 -04:00
|
|
|
yarn bazel build //packages/compiler-cli/ngcc
|
2018-07-16 03:49:56 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Unit Testing
|
|
|
|
|
|
|
|
The unit tests are built and run using Bazel:
|
|
|
|
|
|
|
|
```bash
|
2019-03-20 09:47:58 -04:00
|
|
|
yarn bazel test //packages/compiler-cli/ngcc/test
|
2018-07-16 03:49:56 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Integration Testing
|
|
|
|
|
2018-11-26 03:53:00 -05:00
|
|
|
There are tests that check the behavior of the overall executable:
|
2018-07-16 03:49:56 -04:00
|
|
|
|
|
|
|
```bash
|
2019-03-20 09:47:58 -04:00
|
|
|
yarn bazel test //packages/compiler-cli/ngcc/test:integration
|
2018-07-16 03:49:56 -04:00
|
|
|
```
|