mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 01:54:04 +08:00
Migrates the CLI schema generation to `rules_js`, also significantly simplifying the rule boilerplate.
13 lines
413 B
Python
13 lines
413 B
Python
load("@aspect_rules_js//js:defs.bzl", "js_run_binary")
|
|
|
|
def cli_json_schema(name, src, out, data = []):
|
|
js_run_binary(
|
|
name = name,
|
|
outs = [out],
|
|
srcs = [src] + data,
|
|
tool = "//tools:ng_cli_schema",
|
|
progress_message = "Generating CLI interface from %s" % src,
|
|
mnemonic = "NgCliJsonSchema",
|
|
args = ["$(rootpath %s)" % src, "$(rootpath %s)" % out],
|
|
)
|