2020-07-15 16:58:03 -04:00
|
|
|
load("//dev-infra/benchmark/ng_rollup_bundle:ng_rollup_bundle.bzl", "ng_rollup_bundle")
|
2018-04-03 19:12:25 -04:00
|
|
|
|
2020-07-15 16:58:03 -04:00
|
|
|
ng_rollup_bundle(
|
2018-04-03 19:12:25 -04:00
|
|
|
name = "language-service",
|
2020-07-15 16:58:03 -04:00
|
|
|
build_optimizer = False,
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = "//packages/language-service:index.ts",
|
2020-07-15 16:58:03 -04:00
|
|
|
format = "amd",
|
2018-04-03 19:12:25 -04:00
|
|
|
globals = {
|
|
|
|
"fs": "fs",
|
2019-01-16 04:19:01 -05:00
|
|
|
"path": "path",
|
|
|
|
"typescript": "ts",
|
2019-09-06 17:57:05 -04:00
|
|
|
"typescript/lib/tsserverlibrary": "tss",
|
2018-04-03 19:12:25 -04:00
|
|
|
},
|
2019-12-05 20:54:36 -05:00
|
|
|
license_banner = ":banner",
|
2018-04-03 19:12:25 -04:00
|
|
|
visibility = ["//packages/language-service:__pkg__"],
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"//packages/language-service",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//rxjs",
|
|
|
|
"@npm//tslib",
|
2018-10-04 16:14:14 -04:00
|
|
|
],
|
2018-04-03 19:12:25 -04:00
|
|
|
)
|
2019-12-05 20:54:36 -05:00
|
|
|
|
2020-07-15 16:58:03 -04:00
|
|
|
ng_rollup_bundle(
|
2020-04-29 18:08:22 -04:00
|
|
|
name = "ivy",
|
2020-07-15 16:58:03 -04:00
|
|
|
build_optimizer = False,
|
2020-04-29 18:08:22 -04:00
|
|
|
entry_point = "//packages/language-service/ivy:ts_plugin.ts",
|
2020-07-15 16:58:03 -04:00
|
|
|
format = "amd",
|
2020-04-29 18:08:22 -04:00
|
|
|
globals = {
|
|
|
|
"fs": "fs",
|
|
|
|
"path": "path",
|
2020-07-15 18:52:12 -04:00
|
|
|
"typescript": "ts",
|
|
|
|
"typescript/lib/tsserverlibrary": "tss",
|
2020-04-29 18:08:22 -04:00
|
|
|
},
|
|
|
|
license_banner = ":banner",
|
|
|
|
visibility = ["//packages/language-service:__pkg__"],
|
|
|
|
deps = [
|
|
|
|
"//packages/language-service/ivy",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-12-05 20:54:36 -05:00
|
|
|
genrule(
|
|
|
|
name = "banner",
|
|
|
|
srcs = ["banner.js"],
|
|
|
|
outs = ["banner.txt"],
|
|
|
|
cmd = "cp $< $@",
|
|
|
|
)
|