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
|
package(default_visibility = ["//visibility:public"])
load("/tools/build_defs/jsonnet/jsonnet", "jsonnet_library", "jsonnet_to_json")
jsonnet_library(
name = "workflow",
srcs = ["workflow.jsonnet"],
)
jsonnet_to_json(
name = "wordcount",
src = "wordcount.jsonnet",
outs = ["wordcount.json"],
deps = [":workflow"],
)
jsonnet_to_json(
name = "intersection",
src = "intersection.jsonnet",
outs = ["intersection.json"],
deps = [":workflow"],
)
jsonnet_library(
name = "shell-workflows-lib",
srcs = [
"intersection.jsonnet",
"wordcount.jsonnet",
],
deps = [":workflow"],
)
jsonnet_to_json(
name = "shell-workflows",
src = "shell-workflows.jsonnet",
outs = [
"intersection-workflow.json",
"wordcount-workflow.json",
],
deps = [":shell-workflows-lib"],
)
|