build: Add entry point for Ivy language service (#36864)

This commit adds a new entry point for the Ivy version of language
service. The entry point is just a shell for now, implementation will be
added in subsequent PRs.

The Ivy version of language service could be loaded from the NPM package
via `require(@angular/language-service/bundles/ivy.umd.js)`

PR Close #36864
This commit is contained in:
Keen Yee Liau
2020-04-29 15:08:22 -07:00
committed by Alex Rickabaugh
parent e9300c979e
commit 95a407d9dd
5 changed files with 75 additions and 0 deletions

View File

@ -18,6 +18,21 @@ ls_rollup_bundle(
],
)
ls_rollup_bundle(
name = "ivy",
entry_point = "//packages/language-service/ivy:ts_plugin.ts",
globals = {
"fs": "fs",
"path": "path",
"typescript/lib/tsserverlibrary": "ts",
},
license_banner = ":banner",
visibility = ["//packages/language-service:__pkg__"],
deps = [
"//packages/language-service/ivy",
],
)
genrule(
name = "banner",
srcs = ["banner.js"],