2019-12-28 19:37:59 -05:00
|
|
|
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
|
2017-12-17 18:10:54 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2017-12-17 18:10:54 -05:00
|
|
|
ts_library(
|
|
|
|
name = "language-service",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
2020-05-07 11:55:33 -04:00
|
|
|
exclude = [
|
|
|
|
"src/ts_utils.ts",
|
|
|
|
],
|
2017-12-17 18:10:54 -05:00
|
|
|
),
|
|
|
|
deps = [
|
2020-05-07 11:55:33 -04:00
|
|
|
":ts_utils",
|
2017-12-17 18:10:54 -05:00
|
|
|
"//packages:types",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler-cli",
|
|
|
|
"//packages/core",
|
2020-10-01 16:30:03 -04:00
|
|
|
"//packages/language-service/common",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//@types/node",
|
|
|
|
"@npm//typescript",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
)
|
2018-03-13 14:00:53 -04:00
|
|
|
|
2020-05-07 11:55:33 -04:00
|
|
|
ts_library(
|
|
|
|
name = "ts_utils",
|
|
|
|
srcs = ["src/ts_utils.ts"],
|
|
|
|
deps = [
|
|
|
|
"@npm//typescript",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-12-28 19:37:59 -05:00
|
|
|
pkg_npm(
|
2018-03-13 14:00:53 -04:00
|
|
|
name = "npm_package",
|
|
|
|
srcs = ["package.json"],
|
2018-03-30 16:48:47 -04:00
|
|
|
tags = [
|
2018-04-03 19:12:25 -04:00
|
|
|
"release-with-framework",
|
|
|
|
],
|
2018-12-11 19:53:42 -05:00
|
|
|
# Do not add more to this list.
|
|
|
|
# Dependencies on the full npm_package cause long re-builds.
|
2020-02-04 14:45:40 -05:00
|
|
|
visibility = [
|
|
|
|
"//integration:__pkg__",
|
|
|
|
],
|
2018-04-03 19:12:25 -04:00
|
|
|
deps = [
|
|
|
|
":language-service",
|
2019-10-29 17:21:30 -04:00
|
|
|
# min bundle is not used at the moment; omit from package to speed up build
|
2020-07-15 16:58:03 -04:00
|
|
|
"//packages/language-service/bundles:language-service.js",
|
|
|
|
"//packages/language-service/bundles:ivy.js",
|
2018-03-30 16:48:47 -04:00
|
|
|
],
|
2018-03-13 14:00:53 -04:00
|
|
|
)
|