forked from GerritCodeReview/plugins_github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
42 lines (36 loc) · 934 Bytes
/
Copy pathBUILD
File metadata and controls
42 lines (36 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
load("//tools/js:eslint.bzl", "plugin_eslint")
load("//tools/bzl:js.bzl", "gerrit_js_bundle")
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
package_group(
name = "visibility",
packages = ["//plugins/github/github-plugin/..."],
)
package(default_visibility = [":visibility"])
ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//plugins:tsconfig-plugins-base.json",
],
)
ts_project(
name = "github-plugin-ts",
srcs = glob(
["**/*.ts"],
),
incremental = True,
out_dir = "_bazel_ts_out",
tsc = "//tools/node_tools:tsc-bin",
tsconfig = ":tsconfig",
deps = [
"@plugins_npm//@gerritcodereview/typescript-api",
"@plugins_npm//lit",
"@plugins_npm//rxjs",
],
)
gerrit_js_bundle(
name = "github-plugin",
srcs = [":github-plugin-ts"],
entry_point = "_bazel_ts_out/main.js",
)
plugin_eslint()