angular-cn/packages
Alex Rickabaugh e648a0c4ca refactor(compiler-cli): extract NgCompilerAdapter interface (#37118)
`NgCompiler` is the heart of ngtsc and can be used to analyze and compile
Angular programs in a variety of environments. Most of these integrations
rely on `NgProgram` and the creation of an `NgCompilerHost` in order to
create a `ts.Program` with the right shape for `NgCompiler`.

However, certain environments (such as the Angular Language Service) have
their own mechanisms for creating `ts.Program`s that don't make use of a
`ts.CompilerHost`. In such environments, an `NgCompilerHost` does not make
sense.

This commit breaks the dependency of `NgCompiler` on `NgCompilerHost` and
extracts the specific interface of the host on which `NgCompiler` depends
into a new interface, `NgCompilerAdapter`. This interface includes methods
from `ts.CompilerHost`, the `ExtendedTsCompilerHost`, as well as APIs from
`NgCompilerHost`.

A consumer such as the language service can implement this API without
needing to jump through hoops to create an `NgCompilerHost` implementation
that somehow wraps its specific environment.

PR Close #37118
2020-06-03 13:29:44 -07:00
..
animations build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
bazel build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
benchpress build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
common build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
compiler build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
compiler-cli refactor(compiler-cli): extract NgCompilerAdapter interface (#37118) 2020-06-03 13:29:44 -07:00
core fix(core): infinite loop if injectable using inheritance has a custom decorator (#37022) 2020-06-03 13:16:25 -07:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
examples build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
forms refactor(forms): use a type guard to get rid of casts (#32541) 2020-06-03 12:29:26 -07:00
language-service revert: "revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798)" (#36800) 2020-06-03 13:12:30 -07:00
localize build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-browser build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-browser-dynamic build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-server build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-webworker build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
platform-webworker-dynamic build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
private/testing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router docs(router): fix a typo in example code (#37309) 2020-06-01 17:19:45 -04:00
service-worker build: remove wombot proxy registry from package.jsons for release (#37378) 2020-06-01 12:41:19 -04:00
upgrade refactor(core): remove `looseIdentical` in favor of built-in `Object.is` (#37191) 2020-06-01 17:19:17 -04:00
zone.js refactor(dev-infra): small changes and fixes (#36800) 2020-06-03 13:12:30 -07:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json revert: "revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798)" (#36800) 2020-06-03 13:12:30 -07:00
types.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT