66licenses (["notice" ]) # MIT
77
88load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_library" )
9+ load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
910
1011package (default_visibility = ["//visibility:public" ])
1112
@@ -21,6 +22,7 @@ ts_library(
2122 data = glob (["**/*.json" ]),
2223 module_name = "@angular/cli" ,
2324 deps = [
25+ ":command_schemas" ,
2426 "//packages/angular_devkit/architect" ,
2527 "//packages/angular_devkit/core" ,
2628 "//packages/angular_devkit/core:node" ,
@@ -34,3 +36,172 @@ ts_library(
3436 # @typings: semver
3537 ],
3638)
39+
40+ ts_library (
41+ name = "command_schemas" ,
42+ srcs = [],
43+ deps = [
44+ ":add_schema" ,
45+ ":build_schema" ,
46+ ":config_schema" ,
47+ ":deprecated_schema" ,
48+ ":doc_schema" ,
49+ ":e2e_schema" ,
50+ ":easter_egg_schema" ,
51+ ":eject_schema" ,
52+ ":generate_schema" ,
53+ ":help_schema" ,
54+ ":lint_schema" ,
55+ ":new_schema" ,
56+ ":run_schema" ,
57+ ":serve_schema" ,
58+ ":test_schema" ,
59+ ":update_schema" ,
60+ ":version_schema" ,
61+ ":xi18n_schema" ,
62+ ],
63+ )
64+
65+ ts_json_schema (
66+ name = "add_schema" ,
67+ src = "commands/add.json" ,
68+ data = [
69+ "commands/definitions.json" ,
70+ ],
71+ )
72+
73+ ts_json_schema (
74+ name = "build_schema" ,
75+ src = "commands/build.json" ,
76+ data = [
77+ "commands/definitions.json" ,
78+ ],
79+ )
80+
81+ ts_json_schema (
82+ name = "config_schema" ,
83+ src = "commands/config.json" ,
84+ data = [
85+ "commands/definitions.json" ,
86+ ],
87+ )
88+
89+ ts_json_schema (
90+ name = "deprecated_schema" ,
91+ src = "commands/deprecated.json" ,
92+ data = [
93+ "commands/definitions.json" ,
94+ ],
95+ )
96+
97+ ts_json_schema (
98+ name = "doc_schema" ,
99+ src = "commands/doc.json" ,
100+ data = [
101+ "commands/definitions.json" ,
102+ ],
103+ )
104+
105+ ts_json_schema (
106+ name = "e2e_schema" ,
107+ src = "commands/e2e.json" ,
108+ data = [
109+ "commands/definitions.json" ,
110+ ],
111+ )
112+
113+ ts_json_schema (
114+ name = "easter_egg_schema" ,
115+ src = "commands/easter-egg.json" ,
116+ data = [
117+ "commands/definitions.json" ,
118+ ],
119+ )
120+
121+ ts_json_schema (
122+ name = "eject_schema" ,
123+ src = "commands/eject.json" ,
124+ data = [
125+ "commands/definitions.json" ,
126+ ],
127+ )
128+
129+ ts_json_schema (
130+ name = "generate_schema" ,
131+ src = "commands/generate.json" ,
132+ data = [
133+ "commands/definitions.json" ,
134+ ],
135+ )
136+
137+ ts_json_schema (
138+ name = "help_schema" ,
139+ src = "commands/help.json" ,
140+ data = [
141+ "commands/definitions.json" ,
142+ ],
143+ )
144+
145+ ts_json_schema (
146+ name = "lint_schema" ,
147+ src = "commands/lint.json" ,
148+ data = [
149+ "commands/definitions.json" ,
150+ ],
151+ )
152+
153+ ts_json_schema (
154+ name = "new_schema" ,
155+ src = "commands/new.json" ,
156+ data = [
157+ "commands/definitions.json" ,
158+ ],
159+ )
160+
161+ ts_json_schema (
162+ name = "run_schema" ,
163+ src = "commands/run.json" ,
164+ data = [
165+ "commands/definitions.json" ,
166+ ],
167+ )
168+
169+ ts_json_schema (
170+ name = "serve_schema" ,
171+ src = "commands/serve.json" ,
172+ data = [
173+ "commands/definitions.json" ,
174+ ],
175+ )
176+
177+ ts_json_schema (
178+ name = "test_schema" ,
179+ src = "commands/test.json" ,
180+ data = [
181+ "commands/definitions.json" ,
182+ ],
183+ )
184+
185+ ts_json_schema (
186+ name = "update_schema" ,
187+ src = "commands/update.json" ,
188+ data = [
189+ "commands/definitions.json" ,
190+ ],
191+ )
192+
193+ ts_json_schema (
194+ name = "version_schema" ,
195+ src = "commands/version.json" ,
196+ data = [
197+ "commands/definitions.json" ,
198+ ],
199+ )
200+
201+ ts_json_schema (
202+ name = "xi18n_schema" ,
203+ src = "commands/xi18n.json" ,
204+ data = [
205+ "commands/definitions.json" ,
206+ ],
207+ )
0 commit comments