-
Notifications
You must be signed in to change notification settings - Fork 12k
/
Copy pathBUILD.bazel
51 lines (44 loc) · 1.08 KB
/
BUILD.bazel
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
43
44
45
46
47
48
49
50
51
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("//tools:defaults2.bzl", "js_binary")
package(default_visibility = ["//visibility:public"])
platform(
name = "windows_x64",
constraint_values = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
)
exports_files([
"package_json_release_filter.jq",
])
js_binary(
name = "ng_cli_schema",
data = [
"ng_cli_schema_generator.js",
],
entry_point = "ng_cli_schema_generator.js",
)
js_binary(
name = "quicktype_runner",
data = [
"quicktype_runner.js",
"//:node_modules/quicktype-core",
],
entry_point = "quicktype_runner.js",
)
# TODO(devversion): Improve this by potentially sharing this common block.
copy_file(
name = "copy_worker_js",
src = "@tsc_worker//file",
out = "ts_worker.mjs",
)
js_binary(
name = "vanilla_ts_worker",
data = [
":copy_worker_js",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/typescript",
],
entry_point = ":copy_worker_js",
fixed_args = ["--vanilla-ts"],
)