@loopback/cli 4.0.0-alpha.9 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yo-rc.json +1719 -0
- package/{generators/project/templates/LICENSE → LICENSE} +2 -1
- package/README.md +44 -43
- package/bin/cli-main.js +61 -0
- package/generators/app/index.js +109 -15
- package/generators/app/templates/.dockerignore +5 -0
- package/generators/app/templates/Dockerfile +28 -0
- package/generators/app/templates/README.md.ejs +130 -0
- package/generators/app/templates/public/index.html.ejs +88 -0
- package/generators/app/templates/{test → src/__tests__}/README.md +0 -1
- package/generators/app/templates/src/__tests__/acceptance/home-page.acceptance.ts.ejs +31 -0
- package/generators/app/templates/src/__tests__/acceptance/ping.controller.acceptance.ts.ejs +21 -0
- package/generators/app/templates/src/__tests__/acceptance/test-helper.ts.ejs +32 -0
- package/generators/app/templates/src/application.ts.ejs +70 -0
- package/generators/app/templates/src/controllers/README.md +6 -0
- package/generators/app/templates/src/controllers/index.ts.ejs +1 -0
- package/generators/app/templates/src/controllers/ping.controller.ts.ejs +55 -0
- package/generators/app/templates/src/datasources/README.md +3 -0
- package/generators/app/templates/src/index.ts.ejs +39 -0
- package/generators/app/templates/src/migrate.ts.ejs +20 -0
- package/generators/app/templates/src/models/README.md +3 -0
- package/generators/app/templates/src/openapi-spec.ts.ejs +23 -0
- package/generators/app/templates/src/sequence.ts.ejs +3 -0
- package/generators/controller/index.js +240 -23
- package/generators/controller/templates/src/controllers/controller-rest-template.ts.ejs +150 -0
- package/generators/controller/templates/src/controllers/{controller-template.ts → controller-template.ts.ejs} +2 -2
- package/generators/copyright/fs.js +46 -0
- package/generators/copyright/git.js +78 -0
- package/generators/copyright/header.js +306 -0
- package/generators/copyright/index.js +230 -0
- package/generators/copyright/license.js +105 -0
- package/generators/datasource/index.js +341 -0
- package/generators/datasource/templates/datasource.ts.ejs +22 -0
- package/generators/discover/import-discovered-model.js +70 -0
- package/generators/discover/index.js +411 -0
- package/generators/example/downloader.js +16 -0
- package/generators/example/index.js +176 -0
- package/generators/extension/index.js +34 -5
- package/generators/extension/templates/README.md.ejs +32 -0
- package/generators/extension/templates/{test → src/__tests__}/acceptance/README.md +0 -0
- package/generators/extension/templates/{test → src/__tests__}/integration/README.md +0 -0
- package/generators/extension/templates/{test → src/__tests__}/unit/README.md +0 -0
- package/generators/extension/templates/src/component.ts.ejs +22 -0
- package/generators/extension/templates/src/controllers/README.md +3 -2
- package/generators/extension/templates/src/decorators/README.md +10 -4
- package/generators/extension/templates/src/index.ts.ejs +3 -0
- package/generators/extension/templates/src/keys.ts.ejs +11 -0
- package/generators/extension/templates/src/mixins/README.md +77 -21
- package/generators/extension/templates/src/providers/README.md +51 -25
- package/generators/extension/templates/src/repositories/README.md +1 -1
- package/generators/extension/templates/src/types.ts.ejs +15 -0
- package/generators/import-lb3-models/index.js +197 -0
- package/generators/import-lb3-models/lb3app-loader.js +31 -0
- package/generators/import-lb3-models/migrate-model.js +249 -0
- package/generators/import-lb3-models/model-names.js +32 -0
- package/generators/interceptor/index.js +178 -0
- package/generators/interceptor/templates/interceptor-template.ts.ejs +62 -0
- package/generators/model/index.js +536 -0
- package/generators/model/property-definition.js +85 -0
- package/generators/model/templates/model.ts.ejs +49 -0
- package/generators/observer/index.js +132 -0
- package/generators/observer/templates/observer-template.ts.ejs +40 -0
- package/generators/openapi/README.md +211 -0
- package/generators/openapi/index.js +535 -0
- package/generators/openapi/schema-helper.js +447 -0
- package/generators/openapi/spec-helper.js +484 -0
- package/generators/openapi/spec-loader.js +75 -0
- package/generators/openapi/templates/src/controllers/controller-template.ts.ejs +43 -0
- package/generators/openapi/templates/src/datasources/datasource.ts.ejs +42 -0
- package/generators/openapi/templates/src/models/model-template.ts.ejs +71 -0
- package/generators/openapi/templates/src/models/type-template.ts.ejs +13 -0
- package/generators/openapi/templates/src/services/service-proxy-template.ts.ejs +55 -0
- package/generators/openapi/utils.js +322 -0
- package/generators/project/templates/.eslintignore +4 -0
- package/generators/project/templates/.eslintrc.js.ejs +3 -0
- package/generators/project/templates/.mocharc.json +5 -0
- package/generators/project/templates/.prettierignore +0 -2
- package/generators/project/templates/.prettierrc +2 -1
- package/generators/project/templates/.vscode/launch.json +38 -0
- package/generators/project/templates/.vscode/settings.json +32 -0
- package/generators/project/templates/.vscode/tasks.json +29 -0
- package/generators/project/templates/DEVELOPING.md +36 -0
- package/generators/project/templates/_.gitignore +3 -5
- package/generators/project/templates/package.json.ejs +175 -0
- package/generators/project/templates/package.plain.json.ejs +176 -0
- package/generators/project/templates/tsconfig.json.ejs +39 -0
- package/generators/relation/base-relation.generator.js +220 -0
- package/generators/relation/belongs-to-relation.generator.js +196 -0
- package/generators/relation/has-many-relation.generator.js +200 -0
- package/generators/relation/has-many-through-relation.generator.js +331 -0
- package/generators/relation/has-one-relation.generator.js +200 -0
- package/generators/relation/index.js +795 -0
- package/generators/relation/references-many-relation.generator.js +142 -0
- package/generators/relation/templates/controller-relation-template-belongs-to.ts.ejs +38 -0
- package/generators/relation/templates/controller-relation-template-has-many-through.ts.ejs +110 -0
- package/generators/relation/templates/controller-relation-template-has-many.ts.ejs +110 -0
- package/generators/relation/templates/controller-relation-template-has-one.ts.ejs +110 -0
- package/generators/relation/utils.generator.js +260 -0
- package/generators/repository/index.js +576 -0
- package/generators/repository/templates/src/repositories/repository-crud-default-template.ts.ejs +21 -0
- package/generators/repository/templates/src/repositories/repository-kv-template.ts.ejs +19 -0
- package/generators/rest-crud/crud-rest-component.js +63 -0
- package/generators/rest-crud/index.js +423 -0
- package/generators/rest-crud/templates/src/model-endpoints/model.rest-config-template.ts.ejs +11 -0
- package/generators/service/index.js +351 -0
- package/generators/service/templates/local-service-class-template.ts.ejs +10 -0
- package/generators/service/templates/local-service-provider-template.ts.ejs +19 -0
- package/generators/service/templates/remote-service-proxy-template.ts.ejs +21 -0
- package/generators/update/index.js +55 -0
- package/intl/cs/messages.json +204 -0
- package/intl/de/messages.json +204 -0
- package/intl/en/messages.json +204 -0
- package/intl/es/messages.json +204 -0
- package/intl/fr/messages.json +204 -0
- package/intl/it/messages.json +204 -0
- package/intl/ja/messages.json +204 -0
- package/intl/ko/messages.json +204 -0
- package/intl/nl/messages.json +204 -0
- package/intl/pl/messages.json +204 -0
- package/intl/pt/messages.json +204 -0
- package/intl/ru/messages.json +204 -0
- package/intl/tr/messages.json +204 -0
- package/intl/zh-Hans/messages.json +204 -0
- package/intl/zh-Hant/messages.json +204 -0
- package/lib/artifact-generator.js +138 -39
- package/lib/ast-helper.js +214 -0
- package/lib/base-generator.js +509 -0
- package/lib/cli.js +233 -0
- package/lib/connectors.json +894 -0
- package/lib/debug.js +16 -0
- package/lib/globalize.js +12 -0
- package/lib/model-discoverer.js +118 -0
- package/lib/project-generator.js +154 -57
- package/lib/tab-completion.js +127 -0
- package/lib/update-index.js +44 -0
- package/lib/utils.js +689 -20
- package/lib/version-helper.js +299 -0
- package/package.json +183 -39
- package/CHANGELOG.md +0 -86
- package/bin/cli.js +0 -66
- package/generators/app/templates/index.js +0 -14
- package/generators/app/templates/src/application.ts +0 -27
- package/generators/app/templates/src/controllers/ping-controller.ts +0 -25
- package/generators/app/templates/src/index.ts +0 -25
- package/generators/app/templates/test/ping-controller.test.ts +0 -46
- package/generators/extension/templates/index.js +0 -8
- package/generators/extension/templates/src/component.ts +0 -14
- package/generators/extension/templates/src/index.ts +0 -6
- package/generators/project/templates/.npmrc +0 -1
- package/generators/project/templates/.yo-rc.json +0 -1
- package/generators/project/templates/README.md +0 -4
- package/generators/project/templates/index.d.ts +0 -6
- package/generators/project/templates/index.ts +0 -11
- package/generators/project/templates/package.json +0 -79
- package/generators/project/templates/package.plain.json +0 -82
- package/generators/project/templates/test/mocha.opts +0 -1
- package/generators/project/templates/tsconfig.json +0 -29
- package/generators/project/templates/tslint.build.json +0 -17
- package/generators/project/templates/tslint.json +0 -33
package/.yo-rc.json
ADDED
|
@@ -0,0 +1,1719 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"base": {
|
|
4
|
+
"help": {
|
|
5
|
+
"name": "help",
|
|
6
|
+
"type": "Boolean",
|
|
7
|
+
"alias": "h",
|
|
8
|
+
"description": "Print the generator's options and usage"
|
|
9
|
+
},
|
|
10
|
+
"skip-cache": {
|
|
11
|
+
"name": "skip-cache",
|
|
12
|
+
"type": "Boolean",
|
|
13
|
+
"description": "Do not remember prompt answers",
|
|
14
|
+
"default": false
|
|
15
|
+
},
|
|
16
|
+
"skip-install": {
|
|
17
|
+
"name": "skip-install",
|
|
18
|
+
"type": "Boolean",
|
|
19
|
+
"description": "Do not automatically install dependencies",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
"force-install": {
|
|
23
|
+
"name": "force-install",
|
|
24
|
+
"type": "Boolean",
|
|
25
|
+
"description": "Fail on install dependencies error",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
"ask-answered": {
|
|
29
|
+
"type": "Boolean",
|
|
30
|
+
"description": "Show prompts for already configured options",
|
|
31
|
+
"default": false,
|
|
32
|
+
"name": "ask-answered",
|
|
33
|
+
"hide": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"app": {
|
|
37
|
+
"options": {
|
|
38
|
+
"help": {
|
|
39
|
+
"name": "help",
|
|
40
|
+
"type": "Boolean",
|
|
41
|
+
"alias": "h",
|
|
42
|
+
"description": "Print the generator's options and usage"
|
|
43
|
+
},
|
|
44
|
+
"skip-cache": {
|
|
45
|
+
"name": "skip-cache",
|
|
46
|
+
"type": "Boolean",
|
|
47
|
+
"description": "Do not remember prompt answers",
|
|
48
|
+
"default": false
|
|
49
|
+
},
|
|
50
|
+
"skip-install": {
|
|
51
|
+
"name": "skip-install",
|
|
52
|
+
"type": "Boolean",
|
|
53
|
+
"description": "Do not automatically install dependencies",
|
|
54
|
+
"default": false
|
|
55
|
+
},
|
|
56
|
+
"force-install": {
|
|
57
|
+
"name": "force-install",
|
|
58
|
+
"type": "Boolean",
|
|
59
|
+
"description": "Fail on install dependencies error",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"ask-answered": {
|
|
63
|
+
"type": "Boolean",
|
|
64
|
+
"description": "Show prompts for already configured options",
|
|
65
|
+
"default": false,
|
|
66
|
+
"name": "ask-answered",
|
|
67
|
+
"hide": false
|
|
68
|
+
},
|
|
69
|
+
"applicationName": {
|
|
70
|
+
"type": "String",
|
|
71
|
+
"description": "Application class name",
|
|
72
|
+
"name": "applicationName",
|
|
73
|
+
"hide": false
|
|
74
|
+
},
|
|
75
|
+
"docker": {
|
|
76
|
+
"type": "Boolean",
|
|
77
|
+
"description": "Include Dockerfile and .dockerignore",
|
|
78
|
+
"name": "docker",
|
|
79
|
+
"hide": false
|
|
80
|
+
},
|
|
81
|
+
"repositories": {
|
|
82
|
+
"type": "Boolean",
|
|
83
|
+
"description": "Include repository imports and RepositoryMixin",
|
|
84
|
+
"name": "repositories",
|
|
85
|
+
"hide": false
|
|
86
|
+
},
|
|
87
|
+
"services": {
|
|
88
|
+
"type": "Boolean",
|
|
89
|
+
"description": "Include service-proxy imports and ServiceMixin",
|
|
90
|
+
"name": "services",
|
|
91
|
+
"hide": false
|
|
92
|
+
},
|
|
93
|
+
"apiconnect": {
|
|
94
|
+
"type": "Boolean",
|
|
95
|
+
"description": "Include ApiConnectComponent",
|
|
96
|
+
"name": "apiconnect",
|
|
97
|
+
"hide": false
|
|
98
|
+
},
|
|
99
|
+
"description": {
|
|
100
|
+
"type": "String",
|
|
101
|
+
"description": "Description for the application",
|
|
102
|
+
"name": "description",
|
|
103
|
+
"hide": false
|
|
104
|
+
},
|
|
105
|
+
"outdir": {
|
|
106
|
+
"type": "String",
|
|
107
|
+
"description": "Project root directory for the application",
|
|
108
|
+
"name": "outdir",
|
|
109
|
+
"hide": false
|
|
110
|
+
},
|
|
111
|
+
"eslint": {
|
|
112
|
+
"type": "Boolean",
|
|
113
|
+
"description": "Enable eslint",
|
|
114
|
+
"name": "eslint",
|
|
115
|
+
"hide": false
|
|
116
|
+
},
|
|
117
|
+
"prettier": {
|
|
118
|
+
"type": "Boolean",
|
|
119
|
+
"description": "Enable prettier",
|
|
120
|
+
"name": "prettier",
|
|
121
|
+
"hide": false
|
|
122
|
+
},
|
|
123
|
+
"mocha": {
|
|
124
|
+
"type": "Boolean",
|
|
125
|
+
"description": "Enable mocha",
|
|
126
|
+
"name": "mocha",
|
|
127
|
+
"hide": false
|
|
128
|
+
},
|
|
129
|
+
"loopbackBuild": {
|
|
130
|
+
"type": "Boolean",
|
|
131
|
+
"description": "Use @loopback/build",
|
|
132
|
+
"name": "loopbackBuild",
|
|
133
|
+
"hide": false
|
|
134
|
+
},
|
|
135
|
+
"vscode": {
|
|
136
|
+
"type": "Boolean",
|
|
137
|
+
"description": "Use preconfigured VSCode settings",
|
|
138
|
+
"name": "vscode",
|
|
139
|
+
"hide": false
|
|
140
|
+
},
|
|
141
|
+
"private": {
|
|
142
|
+
"type": "Boolean",
|
|
143
|
+
"description": "Mark the project private (excluded from npm publish)",
|
|
144
|
+
"name": "private",
|
|
145
|
+
"hide": false
|
|
146
|
+
},
|
|
147
|
+
"config": {
|
|
148
|
+
"type": "String",
|
|
149
|
+
"alias": "c",
|
|
150
|
+
"description": "JSON file name or value to configure options",
|
|
151
|
+
"name": "config",
|
|
152
|
+
"hide": false
|
|
153
|
+
},
|
|
154
|
+
"yes": {
|
|
155
|
+
"type": "Boolean",
|
|
156
|
+
"alias": "y",
|
|
157
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
158
|
+
"name": "yes",
|
|
159
|
+
"hide": false
|
|
160
|
+
},
|
|
161
|
+
"format": {
|
|
162
|
+
"type": "Boolean",
|
|
163
|
+
"description": "Format generated code using npm run lint:fix",
|
|
164
|
+
"name": "format",
|
|
165
|
+
"hide": false
|
|
166
|
+
},
|
|
167
|
+
"packageManager": {
|
|
168
|
+
"type": "String",
|
|
169
|
+
"description": "Change the default package manager",
|
|
170
|
+
"alias": "pm",
|
|
171
|
+
"name": "packageManager",
|
|
172
|
+
"hide": false
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"arguments": [
|
|
176
|
+
{
|
|
177
|
+
"type": "String",
|
|
178
|
+
"required": false,
|
|
179
|
+
"description": "Project name for the application",
|
|
180
|
+
"name": "name"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"name": "app"
|
|
184
|
+
},
|
|
185
|
+
"extension": {
|
|
186
|
+
"options": {
|
|
187
|
+
"help": {
|
|
188
|
+
"name": "help",
|
|
189
|
+
"type": "Boolean",
|
|
190
|
+
"alias": "h",
|
|
191
|
+
"description": "Print the generator's options and usage"
|
|
192
|
+
},
|
|
193
|
+
"skip-cache": {
|
|
194
|
+
"name": "skip-cache",
|
|
195
|
+
"type": "Boolean",
|
|
196
|
+
"description": "Do not remember prompt answers",
|
|
197
|
+
"default": false
|
|
198
|
+
},
|
|
199
|
+
"skip-install": {
|
|
200
|
+
"name": "skip-install",
|
|
201
|
+
"type": "Boolean",
|
|
202
|
+
"description": "Do not automatically install dependencies",
|
|
203
|
+
"default": false
|
|
204
|
+
},
|
|
205
|
+
"force-install": {
|
|
206
|
+
"name": "force-install",
|
|
207
|
+
"type": "Boolean",
|
|
208
|
+
"description": "Fail on install dependencies error",
|
|
209
|
+
"default": false
|
|
210
|
+
},
|
|
211
|
+
"ask-answered": {
|
|
212
|
+
"type": "Boolean",
|
|
213
|
+
"description": "Show prompts for already configured options",
|
|
214
|
+
"default": false,
|
|
215
|
+
"name": "ask-answered",
|
|
216
|
+
"hide": false
|
|
217
|
+
},
|
|
218
|
+
"componentName": {
|
|
219
|
+
"type": "String",
|
|
220
|
+
"description": "Component name",
|
|
221
|
+
"name": "componentName",
|
|
222
|
+
"hide": false
|
|
223
|
+
},
|
|
224
|
+
"description": {
|
|
225
|
+
"type": "String",
|
|
226
|
+
"description": "Description for the extension",
|
|
227
|
+
"name": "description",
|
|
228
|
+
"hide": false
|
|
229
|
+
},
|
|
230
|
+
"outdir": {
|
|
231
|
+
"type": "String",
|
|
232
|
+
"description": "Project root directory for the extension",
|
|
233
|
+
"name": "outdir",
|
|
234
|
+
"hide": false
|
|
235
|
+
},
|
|
236
|
+
"eslint": {
|
|
237
|
+
"type": "Boolean",
|
|
238
|
+
"description": "Enable eslint",
|
|
239
|
+
"name": "eslint",
|
|
240
|
+
"hide": false
|
|
241
|
+
},
|
|
242
|
+
"prettier": {
|
|
243
|
+
"type": "Boolean",
|
|
244
|
+
"description": "Enable prettier",
|
|
245
|
+
"name": "prettier",
|
|
246
|
+
"hide": false
|
|
247
|
+
},
|
|
248
|
+
"mocha": {
|
|
249
|
+
"type": "Boolean",
|
|
250
|
+
"description": "Enable mocha",
|
|
251
|
+
"name": "mocha",
|
|
252
|
+
"hide": false
|
|
253
|
+
},
|
|
254
|
+
"loopbackBuild": {
|
|
255
|
+
"type": "Boolean",
|
|
256
|
+
"description": "Use @loopback/build",
|
|
257
|
+
"name": "loopbackBuild",
|
|
258
|
+
"hide": false
|
|
259
|
+
},
|
|
260
|
+
"vscode": {
|
|
261
|
+
"type": "Boolean",
|
|
262
|
+
"description": "Use preconfigured VSCode settings",
|
|
263
|
+
"name": "vscode",
|
|
264
|
+
"hide": false
|
|
265
|
+
},
|
|
266
|
+
"private": {
|
|
267
|
+
"type": "Boolean",
|
|
268
|
+
"description": "Mark the project private (excluded from npm publish)",
|
|
269
|
+
"name": "private",
|
|
270
|
+
"hide": false
|
|
271
|
+
},
|
|
272
|
+
"config": {
|
|
273
|
+
"type": "String",
|
|
274
|
+
"alias": "c",
|
|
275
|
+
"description": "JSON file name or value to configure options",
|
|
276
|
+
"name": "config",
|
|
277
|
+
"hide": false
|
|
278
|
+
},
|
|
279
|
+
"yes": {
|
|
280
|
+
"type": "Boolean",
|
|
281
|
+
"alias": "y",
|
|
282
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
283
|
+
"name": "yes",
|
|
284
|
+
"hide": false
|
|
285
|
+
},
|
|
286
|
+
"format": {
|
|
287
|
+
"type": "Boolean",
|
|
288
|
+
"description": "Format generated code using npm run lint:fix",
|
|
289
|
+
"name": "format",
|
|
290
|
+
"hide": false
|
|
291
|
+
},
|
|
292
|
+
"packageManager": {
|
|
293
|
+
"type": "String",
|
|
294
|
+
"description": "Change the default package manager",
|
|
295
|
+
"alias": "pm",
|
|
296
|
+
"name": "packageManager",
|
|
297
|
+
"hide": false
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"arguments": [
|
|
301
|
+
{
|
|
302
|
+
"type": "String",
|
|
303
|
+
"required": false,
|
|
304
|
+
"description": "Project name for the extension",
|
|
305
|
+
"name": "name"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"name": "extension"
|
|
309
|
+
},
|
|
310
|
+
"controller": {
|
|
311
|
+
"options": {
|
|
312
|
+
"help": {
|
|
313
|
+
"name": "help",
|
|
314
|
+
"type": "Boolean",
|
|
315
|
+
"alias": "h",
|
|
316
|
+
"description": "Print the generator's options and usage"
|
|
317
|
+
},
|
|
318
|
+
"skip-cache": {
|
|
319
|
+
"name": "skip-cache",
|
|
320
|
+
"type": "Boolean",
|
|
321
|
+
"description": "Do not remember prompt answers",
|
|
322
|
+
"default": false
|
|
323
|
+
},
|
|
324
|
+
"skip-install": {
|
|
325
|
+
"name": "skip-install",
|
|
326
|
+
"type": "Boolean",
|
|
327
|
+
"description": "Do not automatically install dependencies",
|
|
328
|
+
"default": false
|
|
329
|
+
},
|
|
330
|
+
"force-install": {
|
|
331
|
+
"name": "force-install",
|
|
332
|
+
"type": "Boolean",
|
|
333
|
+
"description": "Fail on install dependencies error",
|
|
334
|
+
"default": false
|
|
335
|
+
},
|
|
336
|
+
"ask-answered": {
|
|
337
|
+
"type": "Boolean",
|
|
338
|
+
"description": "Show prompts for already configured options",
|
|
339
|
+
"default": false,
|
|
340
|
+
"name": "ask-answered",
|
|
341
|
+
"hide": false
|
|
342
|
+
},
|
|
343
|
+
"controllerType": {
|
|
344
|
+
"type": "String",
|
|
345
|
+
"required": false,
|
|
346
|
+
"description": "Type for the controller",
|
|
347
|
+
"name": "controllerType",
|
|
348
|
+
"hide": false
|
|
349
|
+
},
|
|
350
|
+
"config": {
|
|
351
|
+
"type": "String",
|
|
352
|
+
"alias": "c",
|
|
353
|
+
"description": "JSON file name or value to configure options",
|
|
354
|
+
"name": "config",
|
|
355
|
+
"hide": false
|
|
356
|
+
},
|
|
357
|
+
"yes": {
|
|
358
|
+
"type": "Boolean",
|
|
359
|
+
"alias": "y",
|
|
360
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
361
|
+
"name": "yes",
|
|
362
|
+
"hide": false
|
|
363
|
+
},
|
|
364
|
+
"format": {
|
|
365
|
+
"type": "Boolean",
|
|
366
|
+
"description": "Format generated code using npm run lint:fix",
|
|
367
|
+
"name": "format",
|
|
368
|
+
"hide": false
|
|
369
|
+
},
|
|
370
|
+
"packageManager": {
|
|
371
|
+
"type": "String",
|
|
372
|
+
"description": "Change the default package manager",
|
|
373
|
+
"alias": "pm",
|
|
374
|
+
"name": "packageManager",
|
|
375
|
+
"hide": false
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"arguments": [
|
|
379
|
+
{
|
|
380
|
+
"type": "String",
|
|
381
|
+
"required": false,
|
|
382
|
+
"description": "Name for the controller",
|
|
383
|
+
"name": "name"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"name": "controller"
|
|
387
|
+
},
|
|
388
|
+
"datasource": {
|
|
389
|
+
"options": {
|
|
390
|
+
"help": {
|
|
391
|
+
"name": "help",
|
|
392
|
+
"type": "Boolean",
|
|
393
|
+
"alias": "h",
|
|
394
|
+
"description": "Print the generator's options and usage"
|
|
395
|
+
},
|
|
396
|
+
"skip-cache": {
|
|
397
|
+
"name": "skip-cache",
|
|
398
|
+
"type": "Boolean",
|
|
399
|
+
"description": "Do not remember prompt answers",
|
|
400
|
+
"default": false
|
|
401
|
+
},
|
|
402
|
+
"skip-install": {
|
|
403
|
+
"name": "skip-install",
|
|
404
|
+
"type": "Boolean",
|
|
405
|
+
"description": "Do not automatically install dependencies",
|
|
406
|
+
"default": false
|
|
407
|
+
},
|
|
408
|
+
"force-install": {
|
|
409
|
+
"name": "force-install",
|
|
410
|
+
"type": "Boolean",
|
|
411
|
+
"description": "Fail on install dependencies error",
|
|
412
|
+
"default": false
|
|
413
|
+
},
|
|
414
|
+
"ask-answered": {
|
|
415
|
+
"type": "Boolean",
|
|
416
|
+
"description": "Show prompts for already configured options",
|
|
417
|
+
"default": false,
|
|
418
|
+
"name": "ask-answered",
|
|
419
|
+
"hide": false
|
|
420
|
+
},
|
|
421
|
+
"config": {
|
|
422
|
+
"type": "String",
|
|
423
|
+
"alias": "c",
|
|
424
|
+
"description": "JSON file name or value to configure options",
|
|
425
|
+
"name": "config",
|
|
426
|
+
"hide": false
|
|
427
|
+
},
|
|
428
|
+
"yes": {
|
|
429
|
+
"type": "Boolean",
|
|
430
|
+
"alias": "y",
|
|
431
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
432
|
+
"name": "yes",
|
|
433
|
+
"hide": false
|
|
434
|
+
},
|
|
435
|
+
"format": {
|
|
436
|
+
"type": "Boolean",
|
|
437
|
+
"description": "Format generated code using npm run lint:fix",
|
|
438
|
+
"name": "format",
|
|
439
|
+
"hide": false
|
|
440
|
+
},
|
|
441
|
+
"packageManager": {
|
|
442
|
+
"type": "String",
|
|
443
|
+
"description": "Change the default package manager",
|
|
444
|
+
"alias": "pm",
|
|
445
|
+
"name": "packageManager",
|
|
446
|
+
"hide": false
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"arguments": [
|
|
450
|
+
{
|
|
451
|
+
"type": "String",
|
|
452
|
+
"required": false,
|
|
453
|
+
"description": "Name for the datasource",
|
|
454
|
+
"name": "name"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"name": "datasource"
|
|
458
|
+
},
|
|
459
|
+
"import-lb3-models": {
|
|
460
|
+
"options": {
|
|
461
|
+
"help": {
|
|
462
|
+
"name": "help",
|
|
463
|
+
"type": "Boolean",
|
|
464
|
+
"alias": "h",
|
|
465
|
+
"description": "Print the generator's options and usage"
|
|
466
|
+
},
|
|
467
|
+
"skip-cache": {
|
|
468
|
+
"name": "skip-cache",
|
|
469
|
+
"type": "Boolean",
|
|
470
|
+
"description": "Do not remember prompt answers",
|
|
471
|
+
"default": false
|
|
472
|
+
},
|
|
473
|
+
"skip-install": {
|
|
474
|
+
"name": "skip-install",
|
|
475
|
+
"type": "Boolean",
|
|
476
|
+
"description": "Do not automatically install dependencies",
|
|
477
|
+
"default": false
|
|
478
|
+
},
|
|
479
|
+
"force-install": {
|
|
480
|
+
"name": "force-install",
|
|
481
|
+
"type": "Boolean",
|
|
482
|
+
"description": "Fail on install dependencies error",
|
|
483
|
+
"default": false
|
|
484
|
+
},
|
|
485
|
+
"ask-answered": {
|
|
486
|
+
"type": "Boolean",
|
|
487
|
+
"description": "Show prompts for already configured options",
|
|
488
|
+
"default": false,
|
|
489
|
+
"name": "ask-answered",
|
|
490
|
+
"hide": false
|
|
491
|
+
},
|
|
492
|
+
"config": {
|
|
493
|
+
"type": "String",
|
|
494
|
+
"alias": "c",
|
|
495
|
+
"description": "JSON file name or value to configure options",
|
|
496
|
+
"name": "config",
|
|
497
|
+
"hide": false
|
|
498
|
+
},
|
|
499
|
+
"yes": {
|
|
500
|
+
"type": "Boolean",
|
|
501
|
+
"alias": "y",
|
|
502
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
503
|
+
"name": "yes",
|
|
504
|
+
"hide": false
|
|
505
|
+
},
|
|
506
|
+
"format": {
|
|
507
|
+
"type": "Boolean",
|
|
508
|
+
"description": "Format generated code using npm run lint:fix",
|
|
509
|
+
"name": "format",
|
|
510
|
+
"hide": false
|
|
511
|
+
},
|
|
512
|
+
"packageManager": {
|
|
513
|
+
"type": "String",
|
|
514
|
+
"description": "Change the default package manager",
|
|
515
|
+
"alias": "pm",
|
|
516
|
+
"name": "packageManager",
|
|
517
|
+
"hide": false
|
|
518
|
+
},
|
|
519
|
+
"outDir": {
|
|
520
|
+
"type": "String",
|
|
521
|
+
"description": "Directory where to write the generated source file",
|
|
522
|
+
"default": "src/models",
|
|
523
|
+
"name": "outDir",
|
|
524
|
+
"hide": false
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"arguments": [
|
|
528
|
+
{
|
|
529
|
+
"type": "String",
|
|
530
|
+
"required": true,
|
|
531
|
+
"description": "Path to your LoopBack 3.x application. This can be a project directory (e.g. \"my-lb3-app\") or the server file (e.g. \"my-lb3-app/server/server.js\").",
|
|
532
|
+
"name": "lb3app"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"name": "import-lb3-models"
|
|
536
|
+
},
|
|
537
|
+
"model": {
|
|
538
|
+
"options": {
|
|
539
|
+
"help": {
|
|
540
|
+
"name": "help",
|
|
541
|
+
"type": "Boolean",
|
|
542
|
+
"alias": "h",
|
|
543
|
+
"description": "Print the generator's options and usage"
|
|
544
|
+
},
|
|
545
|
+
"skip-cache": {
|
|
546
|
+
"name": "skip-cache",
|
|
547
|
+
"type": "Boolean",
|
|
548
|
+
"description": "Do not remember prompt answers",
|
|
549
|
+
"default": false
|
|
550
|
+
},
|
|
551
|
+
"skip-install": {
|
|
552
|
+
"name": "skip-install",
|
|
553
|
+
"type": "Boolean",
|
|
554
|
+
"description": "Do not automatically install dependencies",
|
|
555
|
+
"default": false
|
|
556
|
+
},
|
|
557
|
+
"force-install": {
|
|
558
|
+
"name": "force-install",
|
|
559
|
+
"type": "Boolean",
|
|
560
|
+
"description": "Fail on install dependencies error",
|
|
561
|
+
"default": false
|
|
562
|
+
},
|
|
563
|
+
"ask-answered": {
|
|
564
|
+
"type": "Boolean",
|
|
565
|
+
"description": "Show prompts for already configured options",
|
|
566
|
+
"default": false,
|
|
567
|
+
"name": "ask-answered",
|
|
568
|
+
"hide": false
|
|
569
|
+
},
|
|
570
|
+
"base": {
|
|
571
|
+
"type": "String",
|
|
572
|
+
"required": false,
|
|
573
|
+
"description": "A valid based model",
|
|
574
|
+
"name": "base",
|
|
575
|
+
"hide": false
|
|
576
|
+
},
|
|
577
|
+
"dataSource": {
|
|
578
|
+
"type": "String",
|
|
579
|
+
"required": false,
|
|
580
|
+
"description": "The name of the dataSource which contains this model and suppots model discovery",
|
|
581
|
+
"name": "dataSource",
|
|
582
|
+
"hide": false
|
|
583
|
+
},
|
|
584
|
+
"table": {
|
|
585
|
+
"type": "String",
|
|
586
|
+
"required": false,
|
|
587
|
+
"description": "If discovering a model from a dataSource, specify the name of its table/view",
|
|
588
|
+
"name": "table",
|
|
589
|
+
"hide": false
|
|
590
|
+
},
|
|
591
|
+
"schema": {
|
|
592
|
+
"type": "String",
|
|
593
|
+
"required": false,
|
|
594
|
+
"description": "If discovering a model from a dataSource, specify the schema which contains it",
|
|
595
|
+
"name": "schema",
|
|
596
|
+
"hide": false
|
|
597
|
+
},
|
|
598
|
+
"config": {
|
|
599
|
+
"type": "String",
|
|
600
|
+
"alias": "c",
|
|
601
|
+
"description": "JSON file name or value to configure options",
|
|
602
|
+
"name": "config",
|
|
603
|
+
"hide": false
|
|
604
|
+
},
|
|
605
|
+
"yes": {
|
|
606
|
+
"type": "Boolean",
|
|
607
|
+
"alias": "y",
|
|
608
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
609
|
+
"name": "yes",
|
|
610
|
+
"hide": false
|
|
611
|
+
},
|
|
612
|
+
"format": {
|
|
613
|
+
"type": "Boolean",
|
|
614
|
+
"description": "Format generated code using npm run lint:fix",
|
|
615
|
+
"name": "format",
|
|
616
|
+
"hide": false
|
|
617
|
+
},
|
|
618
|
+
"packageManager": {
|
|
619
|
+
"type": "String",
|
|
620
|
+
"description": "Change the default package manager",
|
|
621
|
+
"alias": "pm",
|
|
622
|
+
"name": "packageManager",
|
|
623
|
+
"hide": false
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"arguments": [
|
|
627
|
+
{
|
|
628
|
+
"type": "String",
|
|
629
|
+
"required": false,
|
|
630
|
+
"description": "Name for the model",
|
|
631
|
+
"name": "name"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"name": "model"
|
|
635
|
+
},
|
|
636
|
+
"repository": {
|
|
637
|
+
"options": {
|
|
638
|
+
"help": {
|
|
639
|
+
"name": "help",
|
|
640
|
+
"type": "Boolean",
|
|
641
|
+
"alias": "h",
|
|
642
|
+
"description": "Print the generator's options and usage"
|
|
643
|
+
},
|
|
644
|
+
"skip-cache": {
|
|
645
|
+
"name": "skip-cache",
|
|
646
|
+
"type": "Boolean",
|
|
647
|
+
"description": "Do not remember prompt answers",
|
|
648
|
+
"default": false
|
|
649
|
+
},
|
|
650
|
+
"skip-install": {
|
|
651
|
+
"name": "skip-install",
|
|
652
|
+
"type": "Boolean",
|
|
653
|
+
"description": "Do not automatically install dependencies",
|
|
654
|
+
"default": false
|
|
655
|
+
},
|
|
656
|
+
"force-install": {
|
|
657
|
+
"name": "force-install",
|
|
658
|
+
"type": "Boolean",
|
|
659
|
+
"description": "Fail on install dependencies error",
|
|
660
|
+
"default": false
|
|
661
|
+
},
|
|
662
|
+
"ask-answered": {
|
|
663
|
+
"type": "Boolean",
|
|
664
|
+
"description": "Show prompts for already configured options",
|
|
665
|
+
"default": false,
|
|
666
|
+
"name": "ask-answered",
|
|
667
|
+
"hide": false
|
|
668
|
+
},
|
|
669
|
+
"model": {
|
|
670
|
+
"type": "String",
|
|
671
|
+
"required": false,
|
|
672
|
+
"description": "A valid model name",
|
|
673
|
+
"name": "model",
|
|
674
|
+
"hide": false
|
|
675
|
+
},
|
|
676
|
+
"id": {
|
|
677
|
+
"type": "String",
|
|
678
|
+
"required": false,
|
|
679
|
+
"description": "A valid ID property name for the specified model",
|
|
680
|
+
"name": "id",
|
|
681
|
+
"hide": false
|
|
682
|
+
},
|
|
683
|
+
"datasource": {
|
|
684
|
+
"type": "String",
|
|
685
|
+
"required": false,
|
|
686
|
+
"description": "A valid datasource name",
|
|
687
|
+
"name": "datasource",
|
|
688
|
+
"hide": false
|
|
689
|
+
},
|
|
690
|
+
"repositoryBaseClass": {
|
|
691
|
+
"type": "String",
|
|
692
|
+
"required": false,
|
|
693
|
+
"description": "A valid repository base class",
|
|
694
|
+
"default": "DefaultCrudRepository",
|
|
695
|
+
"name": "repositoryBaseClass",
|
|
696
|
+
"hide": false
|
|
697
|
+
},
|
|
698
|
+
"config": {
|
|
699
|
+
"type": "String",
|
|
700
|
+
"alias": "c",
|
|
701
|
+
"description": "JSON file name or value to configure options",
|
|
702
|
+
"name": "config",
|
|
703
|
+
"hide": false
|
|
704
|
+
},
|
|
705
|
+
"yes": {
|
|
706
|
+
"type": "Boolean",
|
|
707
|
+
"alias": "y",
|
|
708
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
709
|
+
"name": "yes",
|
|
710
|
+
"hide": false
|
|
711
|
+
},
|
|
712
|
+
"format": {
|
|
713
|
+
"type": "Boolean",
|
|
714
|
+
"description": "Format generated code using npm run lint:fix",
|
|
715
|
+
"name": "format",
|
|
716
|
+
"hide": false
|
|
717
|
+
},
|
|
718
|
+
"packageManager": {
|
|
719
|
+
"type": "String",
|
|
720
|
+
"description": "Change the default package manager",
|
|
721
|
+
"alias": "pm",
|
|
722
|
+
"name": "packageManager",
|
|
723
|
+
"hide": false
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"arguments": [
|
|
727
|
+
{
|
|
728
|
+
"type": "String",
|
|
729
|
+
"required": false,
|
|
730
|
+
"description": "Name for the repository ",
|
|
731
|
+
"name": "name"
|
|
732
|
+
}
|
|
733
|
+
],
|
|
734
|
+
"name": "repository"
|
|
735
|
+
},
|
|
736
|
+
"service": {
|
|
737
|
+
"options": {
|
|
738
|
+
"help": {
|
|
739
|
+
"name": "help",
|
|
740
|
+
"type": "Boolean",
|
|
741
|
+
"alias": "h",
|
|
742
|
+
"description": "Print the generator's options and usage"
|
|
743
|
+
},
|
|
744
|
+
"skip-cache": {
|
|
745
|
+
"name": "skip-cache",
|
|
746
|
+
"type": "Boolean",
|
|
747
|
+
"description": "Do not remember prompt answers",
|
|
748
|
+
"default": false
|
|
749
|
+
},
|
|
750
|
+
"skip-install": {
|
|
751
|
+
"name": "skip-install",
|
|
752
|
+
"type": "Boolean",
|
|
753
|
+
"description": "Do not automatically install dependencies",
|
|
754
|
+
"default": false
|
|
755
|
+
},
|
|
756
|
+
"force-install": {
|
|
757
|
+
"name": "force-install",
|
|
758
|
+
"type": "Boolean",
|
|
759
|
+
"description": "Fail on install dependencies error",
|
|
760
|
+
"default": false
|
|
761
|
+
},
|
|
762
|
+
"ask-answered": {
|
|
763
|
+
"type": "Boolean",
|
|
764
|
+
"description": "Show prompts for already configured options",
|
|
765
|
+
"default": false,
|
|
766
|
+
"name": "ask-answered",
|
|
767
|
+
"hide": false
|
|
768
|
+
},
|
|
769
|
+
"type": {
|
|
770
|
+
"type": "String",
|
|
771
|
+
"required": false,
|
|
772
|
+
"description": "Service type - proxy, class or provider",
|
|
773
|
+
"name": "type",
|
|
774
|
+
"hide": false
|
|
775
|
+
},
|
|
776
|
+
"datasource": {
|
|
777
|
+
"type": "String",
|
|
778
|
+
"required": false,
|
|
779
|
+
"description": "A valid datasource name",
|
|
780
|
+
"name": "datasource",
|
|
781
|
+
"hide": false
|
|
782
|
+
},
|
|
783
|
+
"config": {
|
|
784
|
+
"type": "String",
|
|
785
|
+
"alias": "c",
|
|
786
|
+
"description": "JSON file name or value to configure options",
|
|
787
|
+
"name": "config",
|
|
788
|
+
"hide": false
|
|
789
|
+
},
|
|
790
|
+
"yes": {
|
|
791
|
+
"type": "Boolean",
|
|
792
|
+
"alias": "y",
|
|
793
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
794
|
+
"name": "yes",
|
|
795
|
+
"hide": false
|
|
796
|
+
},
|
|
797
|
+
"format": {
|
|
798
|
+
"type": "Boolean",
|
|
799
|
+
"description": "Format generated code using npm run lint:fix",
|
|
800
|
+
"name": "format",
|
|
801
|
+
"hide": false
|
|
802
|
+
},
|
|
803
|
+
"packageManager": {
|
|
804
|
+
"type": "String",
|
|
805
|
+
"description": "Change the default package manager",
|
|
806
|
+
"alias": "pm",
|
|
807
|
+
"name": "packageManager",
|
|
808
|
+
"hide": false
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"arguments": [
|
|
812
|
+
{
|
|
813
|
+
"type": "String",
|
|
814
|
+
"required": false,
|
|
815
|
+
"description": "Name for the service",
|
|
816
|
+
"name": "name"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"name": "service"
|
|
820
|
+
},
|
|
821
|
+
"example": {
|
|
822
|
+
"options": {
|
|
823
|
+
"help": {
|
|
824
|
+
"name": "help",
|
|
825
|
+
"type": "Boolean",
|
|
826
|
+
"alias": "h",
|
|
827
|
+
"description": "Print the generator's options and usage"
|
|
828
|
+
},
|
|
829
|
+
"skip-cache": {
|
|
830
|
+
"name": "skip-cache",
|
|
831
|
+
"type": "Boolean",
|
|
832
|
+
"description": "Do not remember prompt answers",
|
|
833
|
+
"default": false
|
|
834
|
+
},
|
|
835
|
+
"skip-install": {
|
|
836
|
+
"name": "skip-install",
|
|
837
|
+
"type": "Boolean",
|
|
838
|
+
"description": "Do not automatically install dependencies",
|
|
839
|
+
"default": false
|
|
840
|
+
},
|
|
841
|
+
"force-install": {
|
|
842
|
+
"name": "force-install",
|
|
843
|
+
"type": "Boolean",
|
|
844
|
+
"description": "Fail on install dependencies error",
|
|
845
|
+
"default": false
|
|
846
|
+
},
|
|
847
|
+
"ask-answered": {
|
|
848
|
+
"type": "Boolean",
|
|
849
|
+
"description": "Show prompts for already configured options",
|
|
850
|
+
"default": false,
|
|
851
|
+
"name": "ask-answered",
|
|
852
|
+
"hide": false
|
|
853
|
+
},
|
|
854
|
+
"config": {
|
|
855
|
+
"type": "String",
|
|
856
|
+
"alias": "c",
|
|
857
|
+
"description": "JSON file name or value to configure options",
|
|
858
|
+
"name": "config",
|
|
859
|
+
"hide": false
|
|
860
|
+
},
|
|
861
|
+
"yes": {
|
|
862
|
+
"type": "Boolean",
|
|
863
|
+
"alias": "y",
|
|
864
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
865
|
+
"name": "yes",
|
|
866
|
+
"hide": false
|
|
867
|
+
},
|
|
868
|
+
"format": {
|
|
869
|
+
"type": "Boolean",
|
|
870
|
+
"description": "Format generated code using npm run lint:fix",
|
|
871
|
+
"name": "format",
|
|
872
|
+
"hide": false
|
|
873
|
+
},
|
|
874
|
+
"packageManager": {
|
|
875
|
+
"type": "String",
|
|
876
|
+
"description": "Change the default package manager",
|
|
877
|
+
"alias": "pm",
|
|
878
|
+
"name": "packageManager",
|
|
879
|
+
"hide": false
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"arguments": [
|
|
883
|
+
{
|
|
884
|
+
"type": "String",
|
|
885
|
+
"description": "Name of the example to clone",
|
|
886
|
+
"required": false,
|
|
887
|
+
"name": "example-name"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"name": "example"
|
|
891
|
+
},
|
|
892
|
+
"openapi": {
|
|
893
|
+
"options": {
|
|
894
|
+
"help": {
|
|
895
|
+
"name": "help",
|
|
896
|
+
"type": "Boolean",
|
|
897
|
+
"alias": "h",
|
|
898
|
+
"description": "Print the generator's options and usage"
|
|
899
|
+
},
|
|
900
|
+
"skip-cache": {
|
|
901
|
+
"name": "skip-cache",
|
|
902
|
+
"type": "Boolean",
|
|
903
|
+
"description": "Do not remember prompt answers",
|
|
904
|
+
"default": false
|
|
905
|
+
},
|
|
906
|
+
"skip-install": {
|
|
907
|
+
"name": "skip-install",
|
|
908
|
+
"type": "Boolean",
|
|
909
|
+
"description": "Do not automatically install dependencies",
|
|
910
|
+
"default": false
|
|
911
|
+
},
|
|
912
|
+
"force-install": {
|
|
913
|
+
"name": "force-install",
|
|
914
|
+
"type": "Boolean",
|
|
915
|
+
"description": "Fail on install dependencies error",
|
|
916
|
+
"default": false
|
|
917
|
+
},
|
|
918
|
+
"ask-answered": {
|
|
919
|
+
"type": "Boolean",
|
|
920
|
+
"description": "Show prompts for already configured options",
|
|
921
|
+
"default": false,
|
|
922
|
+
"name": "ask-answered",
|
|
923
|
+
"hide": false
|
|
924
|
+
},
|
|
925
|
+
"url": {
|
|
926
|
+
"description": "URL or file path of the OpenAPI spec",
|
|
927
|
+
"required": false,
|
|
928
|
+
"type": "String",
|
|
929
|
+
"name": "url",
|
|
930
|
+
"hide": false
|
|
931
|
+
},
|
|
932
|
+
"validate": {
|
|
933
|
+
"description": "Validate the OpenAPI spec",
|
|
934
|
+
"required": false,
|
|
935
|
+
"default": false,
|
|
936
|
+
"type": "Boolean",
|
|
937
|
+
"name": "validate",
|
|
938
|
+
"hide": false
|
|
939
|
+
},
|
|
940
|
+
"server": {
|
|
941
|
+
"description": "Generate server-side controllers for the OpenAPI spec",
|
|
942
|
+
"required": false,
|
|
943
|
+
"default": true,
|
|
944
|
+
"type": "Boolean",
|
|
945
|
+
"name": "server",
|
|
946
|
+
"hide": false
|
|
947
|
+
},
|
|
948
|
+
"client": {
|
|
949
|
+
"description": "Generate client-side service proxies for the OpenAPI spec",
|
|
950
|
+
"required": false,
|
|
951
|
+
"default": false,
|
|
952
|
+
"type": "Boolean",
|
|
953
|
+
"name": "client",
|
|
954
|
+
"hide": false
|
|
955
|
+
},
|
|
956
|
+
"datasource": {
|
|
957
|
+
"type": "String",
|
|
958
|
+
"required": false,
|
|
959
|
+
"description": "A valid datasource name for the OpenAPI endpoint",
|
|
960
|
+
"name": "datasource",
|
|
961
|
+
"hide": false
|
|
962
|
+
},
|
|
963
|
+
"baseModel": {
|
|
964
|
+
"description": "Base model class",
|
|
965
|
+
"required": false,
|
|
966
|
+
"default": "",
|
|
967
|
+
"type": "String",
|
|
968
|
+
"name": "baseModel",
|
|
969
|
+
"hide": false
|
|
970
|
+
},
|
|
971
|
+
"promote-anonymous-schemas": {
|
|
972
|
+
"description": "Promote anonymous schemas as models",
|
|
973
|
+
"required": false,
|
|
974
|
+
"default": false,
|
|
975
|
+
"type": "Boolean",
|
|
976
|
+
"name": "promote-anonymous-schemas",
|
|
977
|
+
"hide": false
|
|
978
|
+
},
|
|
979
|
+
"config": {
|
|
980
|
+
"type": "String",
|
|
981
|
+
"alias": "c",
|
|
982
|
+
"description": "JSON file name or value to configure options",
|
|
983
|
+
"name": "config",
|
|
984
|
+
"hide": false
|
|
985
|
+
},
|
|
986
|
+
"yes": {
|
|
987
|
+
"type": "Boolean",
|
|
988
|
+
"alias": "y",
|
|
989
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
990
|
+
"name": "yes",
|
|
991
|
+
"hide": false
|
|
992
|
+
},
|
|
993
|
+
"format": {
|
|
994
|
+
"type": "Boolean",
|
|
995
|
+
"description": "Format generated code using npm run lint:fix",
|
|
996
|
+
"name": "format",
|
|
997
|
+
"hide": false
|
|
998
|
+
},
|
|
999
|
+
"packageManager": {
|
|
1000
|
+
"type": "String",
|
|
1001
|
+
"description": "Change the default package manager",
|
|
1002
|
+
"alias": "pm",
|
|
1003
|
+
"name": "packageManager",
|
|
1004
|
+
"hide": false
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
"arguments": [
|
|
1008
|
+
{
|
|
1009
|
+
"description": "URL or file path of the OpenAPI spec",
|
|
1010
|
+
"required": false,
|
|
1011
|
+
"type": "String",
|
|
1012
|
+
"name": "url"
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
"name": "openapi"
|
|
1016
|
+
},
|
|
1017
|
+
"observer": {
|
|
1018
|
+
"options": {
|
|
1019
|
+
"help": {
|
|
1020
|
+
"name": "help",
|
|
1021
|
+
"type": "Boolean",
|
|
1022
|
+
"alias": "h",
|
|
1023
|
+
"description": "Print the generator's options and usage"
|
|
1024
|
+
},
|
|
1025
|
+
"skip-cache": {
|
|
1026
|
+
"name": "skip-cache",
|
|
1027
|
+
"type": "Boolean",
|
|
1028
|
+
"description": "Do not remember prompt answers",
|
|
1029
|
+
"default": false
|
|
1030
|
+
},
|
|
1031
|
+
"skip-install": {
|
|
1032
|
+
"name": "skip-install",
|
|
1033
|
+
"type": "Boolean",
|
|
1034
|
+
"description": "Do not automatically install dependencies",
|
|
1035
|
+
"default": false
|
|
1036
|
+
},
|
|
1037
|
+
"force-install": {
|
|
1038
|
+
"name": "force-install",
|
|
1039
|
+
"type": "Boolean",
|
|
1040
|
+
"description": "Fail on install dependencies error",
|
|
1041
|
+
"default": false
|
|
1042
|
+
},
|
|
1043
|
+
"ask-answered": {
|
|
1044
|
+
"type": "Boolean",
|
|
1045
|
+
"description": "Show prompts for already configured options",
|
|
1046
|
+
"default": false,
|
|
1047
|
+
"name": "ask-answered",
|
|
1048
|
+
"hide": false
|
|
1049
|
+
},
|
|
1050
|
+
"group": {
|
|
1051
|
+
"description": "Name of the observer group for ordering",
|
|
1052
|
+
"required": false,
|
|
1053
|
+
"type": "String",
|
|
1054
|
+
"name": "group",
|
|
1055
|
+
"hide": false
|
|
1056
|
+
},
|
|
1057
|
+
"config": {
|
|
1058
|
+
"type": "String",
|
|
1059
|
+
"alias": "c",
|
|
1060
|
+
"description": "JSON file name or value to configure options",
|
|
1061
|
+
"name": "config",
|
|
1062
|
+
"hide": false
|
|
1063
|
+
},
|
|
1064
|
+
"yes": {
|
|
1065
|
+
"type": "Boolean",
|
|
1066
|
+
"alias": "y",
|
|
1067
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1068
|
+
"name": "yes",
|
|
1069
|
+
"hide": false
|
|
1070
|
+
},
|
|
1071
|
+
"format": {
|
|
1072
|
+
"type": "Boolean",
|
|
1073
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1074
|
+
"name": "format",
|
|
1075
|
+
"hide": false
|
|
1076
|
+
},
|
|
1077
|
+
"packageManager": {
|
|
1078
|
+
"type": "String",
|
|
1079
|
+
"description": "Change the default package manager",
|
|
1080
|
+
"alias": "pm",
|
|
1081
|
+
"name": "packageManager",
|
|
1082
|
+
"hide": false
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"arguments": [
|
|
1086
|
+
{
|
|
1087
|
+
"type": "String",
|
|
1088
|
+
"required": false,
|
|
1089
|
+
"description": "Name for the observer",
|
|
1090
|
+
"name": "name"
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
"name": "observer"
|
|
1094
|
+
},
|
|
1095
|
+
"interceptor": {
|
|
1096
|
+
"options": {
|
|
1097
|
+
"help": {
|
|
1098
|
+
"name": "help",
|
|
1099
|
+
"type": "Boolean",
|
|
1100
|
+
"alias": "h",
|
|
1101
|
+
"description": "Print the generator's options and usage"
|
|
1102
|
+
},
|
|
1103
|
+
"skip-cache": {
|
|
1104
|
+
"name": "skip-cache",
|
|
1105
|
+
"type": "Boolean",
|
|
1106
|
+
"description": "Do not remember prompt answers",
|
|
1107
|
+
"default": false
|
|
1108
|
+
},
|
|
1109
|
+
"skip-install": {
|
|
1110
|
+
"name": "skip-install",
|
|
1111
|
+
"type": "Boolean",
|
|
1112
|
+
"description": "Do not automatically install dependencies",
|
|
1113
|
+
"default": false
|
|
1114
|
+
},
|
|
1115
|
+
"force-install": {
|
|
1116
|
+
"name": "force-install",
|
|
1117
|
+
"type": "Boolean",
|
|
1118
|
+
"description": "Fail on install dependencies error",
|
|
1119
|
+
"default": false
|
|
1120
|
+
},
|
|
1121
|
+
"ask-answered": {
|
|
1122
|
+
"type": "Boolean",
|
|
1123
|
+
"description": "Show prompts for already configured options",
|
|
1124
|
+
"default": false,
|
|
1125
|
+
"name": "ask-answered",
|
|
1126
|
+
"hide": false
|
|
1127
|
+
},
|
|
1128
|
+
"global": {
|
|
1129
|
+
"description": "Flag to indicate a global interceptor",
|
|
1130
|
+
"required": false,
|
|
1131
|
+
"type": "Boolean",
|
|
1132
|
+
"name": "global",
|
|
1133
|
+
"hide": false
|
|
1134
|
+
},
|
|
1135
|
+
"group": {
|
|
1136
|
+
"description": "Group name for ordering the global interceptor",
|
|
1137
|
+
"required": false,
|
|
1138
|
+
"type": "String",
|
|
1139
|
+
"name": "group",
|
|
1140
|
+
"hide": false
|
|
1141
|
+
},
|
|
1142
|
+
"config": {
|
|
1143
|
+
"type": "String",
|
|
1144
|
+
"alias": "c",
|
|
1145
|
+
"description": "JSON file name or value to configure options",
|
|
1146
|
+
"name": "config",
|
|
1147
|
+
"hide": false
|
|
1148
|
+
},
|
|
1149
|
+
"yes": {
|
|
1150
|
+
"type": "Boolean",
|
|
1151
|
+
"alias": "y",
|
|
1152
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1153
|
+
"name": "yes",
|
|
1154
|
+
"hide": false
|
|
1155
|
+
},
|
|
1156
|
+
"format": {
|
|
1157
|
+
"type": "Boolean",
|
|
1158
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1159
|
+
"name": "format",
|
|
1160
|
+
"hide": false
|
|
1161
|
+
},
|
|
1162
|
+
"packageManager": {
|
|
1163
|
+
"type": "String",
|
|
1164
|
+
"description": "Change the default package manager",
|
|
1165
|
+
"alias": "pm",
|
|
1166
|
+
"name": "packageManager",
|
|
1167
|
+
"hide": false
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"arguments": [
|
|
1171
|
+
{
|
|
1172
|
+
"type": "String",
|
|
1173
|
+
"required": false,
|
|
1174
|
+
"description": "Name for the interceptor",
|
|
1175
|
+
"name": "name"
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"name": "interceptor"
|
|
1179
|
+
},
|
|
1180
|
+
"discover": {
|
|
1181
|
+
"options": {
|
|
1182
|
+
"help": {
|
|
1183
|
+
"name": "help",
|
|
1184
|
+
"type": "Boolean",
|
|
1185
|
+
"alias": "h",
|
|
1186
|
+
"description": "Print the generator's options and usage"
|
|
1187
|
+
},
|
|
1188
|
+
"skip-cache": {
|
|
1189
|
+
"name": "skip-cache",
|
|
1190
|
+
"type": "Boolean",
|
|
1191
|
+
"description": "Do not remember prompt answers",
|
|
1192
|
+
"default": false
|
|
1193
|
+
},
|
|
1194
|
+
"skip-install": {
|
|
1195
|
+
"name": "skip-install",
|
|
1196
|
+
"type": "Boolean",
|
|
1197
|
+
"description": "Do not automatically install dependencies",
|
|
1198
|
+
"default": false
|
|
1199
|
+
},
|
|
1200
|
+
"force-install": {
|
|
1201
|
+
"name": "force-install",
|
|
1202
|
+
"type": "Boolean",
|
|
1203
|
+
"description": "Fail on install dependencies error",
|
|
1204
|
+
"default": false
|
|
1205
|
+
},
|
|
1206
|
+
"ask-answered": {
|
|
1207
|
+
"type": "Boolean",
|
|
1208
|
+
"description": "Show prompts for already configured options",
|
|
1209
|
+
"default": false,
|
|
1210
|
+
"name": "ask-answered",
|
|
1211
|
+
"hide": false
|
|
1212
|
+
},
|
|
1213
|
+
"config": {
|
|
1214
|
+
"type": "String",
|
|
1215
|
+
"alias": "c",
|
|
1216
|
+
"description": "JSON file name or value to configure options",
|
|
1217
|
+
"name": "config",
|
|
1218
|
+
"hide": false
|
|
1219
|
+
},
|
|
1220
|
+
"yes": {
|
|
1221
|
+
"type": "Boolean",
|
|
1222
|
+
"alias": "y",
|
|
1223
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1224
|
+
"name": "yes",
|
|
1225
|
+
"hide": false
|
|
1226
|
+
},
|
|
1227
|
+
"format": {
|
|
1228
|
+
"type": "Boolean",
|
|
1229
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1230
|
+
"name": "format",
|
|
1231
|
+
"hide": false
|
|
1232
|
+
},
|
|
1233
|
+
"packageManager": {
|
|
1234
|
+
"type": "String",
|
|
1235
|
+
"description": "Change the default package manager",
|
|
1236
|
+
"alias": "pm",
|
|
1237
|
+
"name": "packageManager",
|
|
1238
|
+
"hide": false
|
|
1239
|
+
},
|
|
1240
|
+
"dataSource": {
|
|
1241
|
+
"type": "String",
|
|
1242
|
+
"alias": "ds",
|
|
1243
|
+
"description": "The name of the datasource to discover",
|
|
1244
|
+
"name": "dataSource",
|
|
1245
|
+
"hide": false
|
|
1246
|
+
},
|
|
1247
|
+
"views": {
|
|
1248
|
+
"type": "Boolean",
|
|
1249
|
+
"description": "Boolean to discover views",
|
|
1250
|
+
"default": true,
|
|
1251
|
+
"name": "views",
|
|
1252
|
+
"hide": false
|
|
1253
|
+
},
|
|
1254
|
+
"relations": {
|
|
1255
|
+
"type": "Boolean",
|
|
1256
|
+
"description": "Discover and create relations",
|
|
1257
|
+
"default": false,
|
|
1258
|
+
"name": "relations",
|
|
1259
|
+
"hide": false
|
|
1260
|
+
},
|
|
1261
|
+
"schema": {
|
|
1262
|
+
"type": "String",
|
|
1263
|
+
"description": "Schema to discover",
|
|
1264
|
+
"default": "",
|
|
1265
|
+
"name": "schema",
|
|
1266
|
+
"hide": false
|
|
1267
|
+
},
|
|
1268
|
+
"all": {
|
|
1269
|
+
"type": "Boolean",
|
|
1270
|
+
"description": "Discover all models without prompting users to select",
|
|
1271
|
+
"default": false,
|
|
1272
|
+
"name": "all",
|
|
1273
|
+
"hide": false
|
|
1274
|
+
},
|
|
1275
|
+
"outDir": {
|
|
1276
|
+
"type": "String",
|
|
1277
|
+
"description": "Specify the directory into which the `model.model.ts` files will be placed",
|
|
1278
|
+
"name": "outDir",
|
|
1279
|
+
"hide": false
|
|
1280
|
+
},
|
|
1281
|
+
"optionalId": {
|
|
1282
|
+
"type": "Boolean",
|
|
1283
|
+
"description": "Boolean to mark id property as optional field",
|
|
1284
|
+
"default": false,
|
|
1285
|
+
"name": "optionalId",
|
|
1286
|
+
"hide": false
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
"arguments": [
|
|
1290
|
+
{
|
|
1291
|
+
"type": "String",
|
|
1292
|
+
"required": false,
|
|
1293
|
+
"description": "Name for the discover",
|
|
1294
|
+
"name": "name"
|
|
1295
|
+
}
|
|
1296
|
+
],
|
|
1297
|
+
"name": "discover"
|
|
1298
|
+
},
|
|
1299
|
+
"relation": {
|
|
1300
|
+
"options": {
|
|
1301
|
+
"help": {
|
|
1302
|
+
"name": "help",
|
|
1303
|
+
"type": "Boolean",
|
|
1304
|
+
"alias": "h",
|
|
1305
|
+
"description": "Print the generator's options and usage"
|
|
1306
|
+
},
|
|
1307
|
+
"skip-cache": {
|
|
1308
|
+
"name": "skip-cache",
|
|
1309
|
+
"type": "Boolean",
|
|
1310
|
+
"description": "Do not remember prompt answers",
|
|
1311
|
+
"default": false
|
|
1312
|
+
},
|
|
1313
|
+
"skip-install": {
|
|
1314
|
+
"name": "skip-install",
|
|
1315
|
+
"type": "Boolean",
|
|
1316
|
+
"description": "Do not automatically install dependencies",
|
|
1317
|
+
"default": false
|
|
1318
|
+
},
|
|
1319
|
+
"force-install": {
|
|
1320
|
+
"name": "force-install",
|
|
1321
|
+
"type": "Boolean",
|
|
1322
|
+
"description": "Fail on install dependencies error",
|
|
1323
|
+
"default": false
|
|
1324
|
+
},
|
|
1325
|
+
"ask-answered": {
|
|
1326
|
+
"type": "Boolean",
|
|
1327
|
+
"description": "Show prompts for already configured options",
|
|
1328
|
+
"default": false,
|
|
1329
|
+
"name": "ask-answered",
|
|
1330
|
+
"hide": false
|
|
1331
|
+
},
|
|
1332
|
+
"relationType": {
|
|
1333
|
+
"type": "String",
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"description": "Relation type",
|
|
1336
|
+
"name": "relationType",
|
|
1337
|
+
"hide": false
|
|
1338
|
+
},
|
|
1339
|
+
"sourceModel": {
|
|
1340
|
+
"type": "String",
|
|
1341
|
+
"required": false,
|
|
1342
|
+
"description": "Source model",
|
|
1343
|
+
"name": "sourceModel",
|
|
1344
|
+
"hide": false
|
|
1345
|
+
},
|
|
1346
|
+
"destinationModel": {
|
|
1347
|
+
"type": "String",
|
|
1348
|
+
"required": false,
|
|
1349
|
+
"description": "Destination model",
|
|
1350
|
+
"name": "destinationModel",
|
|
1351
|
+
"hide": false
|
|
1352
|
+
},
|
|
1353
|
+
"throughModel": {
|
|
1354
|
+
"type": "String",
|
|
1355
|
+
"required": false,
|
|
1356
|
+
"description": "Through model",
|
|
1357
|
+
"name": "throughModel",
|
|
1358
|
+
"hide": false
|
|
1359
|
+
},
|
|
1360
|
+
"sourceModelPrimaryKey": {
|
|
1361
|
+
"type": "String",
|
|
1362
|
+
"required": false,
|
|
1363
|
+
"description": "Primary key on source model",
|
|
1364
|
+
"name": "sourceModelPrimaryKey",
|
|
1365
|
+
"hide": false
|
|
1366
|
+
},
|
|
1367
|
+
"sourceModelPrimaryKeyType": {
|
|
1368
|
+
"type": "String",
|
|
1369
|
+
"required": false,
|
|
1370
|
+
"description": "Type of the primary key on source model",
|
|
1371
|
+
"name": "sourceModelPrimaryKeyType",
|
|
1372
|
+
"hide": false
|
|
1373
|
+
},
|
|
1374
|
+
"destinationModelPrimaryKey": {
|
|
1375
|
+
"type": "String",
|
|
1376
|
+
"required": false,
|
|
1377
|
+
"description": "Primary key on destination model",
|
|
1378
|
+
"name": "destinationModelPrimaryKey",
|
|
1379
|
+
"hide": false
|
|
1380
|
+
},
|
|
1381
|
+
"destinationModelPrimaryKeyType": {
|
|
1382
|
+
"type": "String",
|
|
1383
|
+
"required": false,
|
|
1384
|
+
"description": "Type of the primary key on destination model",
|
|
1385
|
+
"name": "destinationModelPrimaryKeyType",
|
|
1386
|
+
"hide": false
|
|
1387
|
+
},
|
|
1388
|
+
"sourceKeyOnThrough": {
|
|
1389
|
+
"type": "String",
|
|
1390
|
+
"required": false,
|
|
1391
|
+
"description": "Foreign key references source model on through model",
|
|
1392
|
+
"name": "sourceKeyOnThrough",
|
|
1393
|
+
"hide": false
|
|
1394
|
+
},
|
|
1395
|
+
"targetKeyOnThrough": {
|
|
1396
|
+
"type": "String",
|
|
1397
|
+
"required": false,
|
|
1398
|
+
"description": "Foreign key references target model on through model",
|
|
1399
|
+
"name": "targetKeyOnThrough",
|
|
1400
|
+
"hide": false
|
|
1401
|
+
},
|
|
1402
|
+
"defaultForeignKeyName": {
|
|
1403
|
+
"type": "String",
|
|
1404
|
+
"required": false,
|
|
1405
|
+
"description": "default foreign key name",
|
|
1406
|
+
"name": "defaultForeignKeyName",
|
|
1407
|
+
"hide": false
|
|
1408
|
+
},
|
|
1409
|
+
"foreignKeyName": {
|
|
1410
|
+
"type": "String",
|
|
1411
|
+
"required": false,
|
|
1412
|
+
"description": "Destination model foreign key name",
|
|
1413
|
+
"name": "foreignKeyName",
|
|
1414
|
+
"hide": false
|
|
1415
|
+
},
|
|
1416
|
+
"relationName": {
|
|
1417
|
+
"type": "String",
|
|
1418
|
+
"required": false,
|
|
1419
|
+
"description": "Relation name",
|
|
1420
|
+
"name": "relationName",
|
|
1421
|
+
"hide": false
|
|
1422
|
+
},
|
|
1423
|
+
"defaultRelationName": {
|
|
1424
|
+
"type": "String",
|
|
1425
|
+
"required": false,
|
|
1426
|
+
"description": "Default relation name",
|
|
1427
|
+
"name": "defaultRelationName",
|
|
1428
|
+
"hide": false
|
|
1429
|
+
},
|
|
1430
|
+
"registerInclusionResolver": {
|
|
1431
|
+
"type": "Boolean",
|
|
1432
|
+
"required": false,
|
|
1433
|
+
"description": "Allow <sourceModel> queries to include data from related <destinationModel>",
|
|
1434
|
+
"name": "registerInclusionResolver",
|
|
1435
|
+
"hide": false
|
|
1436
|
+
},
|
|
1437
|
+
"config": {
|
|
1438
|
+
"type": "String",
|
|
1439
|
+
"alias": "c",
|
|
1440
|
+
"description": "JSON file name or value to configure options",
|
|
1441
|
+
"name": "config",
|
|
1442
|
+
"hide": false
|
|
1443
|
+
},
|
|
1444
|
+
"yes": {
|
|
1445
|
+
"type": "Boolean",
|
|
1446
|
+
"alias": "y",
|
|
1447
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1448
|
+
"name": "yes",
|
|
1449
|
+
"hide": false
|
|
1450
|
+
},
|
|
1451
|
+
"format": {
|
|
1452
|
+
"type": "Boolean",
|
|
1453
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1454
|
+
"name": "format",
|
|
1455
|
+
"hide": false
|
|
1456
|
+
},
|
|
1457
|
+
"packageManager": {
|
|
1458
|
+
"type": "String",
|
|
1459
|
+
"description": "Change the default package manager",
|
|
1460
|
+
"alias": "pm",
|
|
1461
|
+
"name": "packageManager",
|
|
1462
|
+
"hide": false
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"arguments": [],
|
|
1466
|
+
"name": "relation"
|
|
1467
|
+
},
|
|
1468
|
+
"update": {
|
|
1469
|
+
"options": {
|
|
1470
|
+
"help": {
|
|
1471
|
+
"name": "help",
|
|
1472
|
+
"type": "Boolean",
|
|
1473
|
+
"alias": "h",
|
|
1474
|
+
"description": "Print the generator's options and usage"
|
|
1475
|
+
},
|
|
1476
|
+
"skip-cache": {
|
|
1477
|
+
"name": "skip-cache",
|
|
1478
|
+
"type": "Boolean",
|
|
1479
|
+
"description": "Do not remember prompt answers",
|
|
1480
|
+
"default": false
|
|
1481
|
+
},
|
|
1482
|
+
"skip-install": {
|
|
1483
|
+
"name": "skip-install",
|
|
1484
|
+
"type": "Boolean",
|
|
1485
|
+
"description": "Do not automatically install dependencies",
|
|
1486
|
+
"default": false
|
|
1487
|
+
},
|
|
1488
|
+
"force-install": {
|
|
1489
|
+
"name": "force-install",
|
|
1490
|
+
"type": "Boolean",
|
|
1491
|
+
"description": "Fail on install dependencies error",
|
|
1492
|
+
"default": false
|
|
1493
|
+
},
|
|
1494
|
+
"ask-answered": {
|
|
1495
|
+
"type": "Boolean",
|
|
1496
|
+
"description": "Show prompts for already configured options",
|
|
1497
|
+
"default": false,
|
|
1498
|
+
"name": "ask-answered",
|
|
1499
|
+
"hide": false
|
|
1500
|
+
},
|
|
1501
|
+
"semver": {
|
|
1502
|
+
"type": "Boolean",
|
|
1503
|
+
"required": false,
|
|
1504
|
+
"default": false,
|
|
1505
|
+
"description": "Check version compatibility using semver semantics",
|
|
1506
|
+
"name": "semver",
|
|
1507
|
+
"hide": false
|
|
1508
|
+
},
|
|
1509
|
+
"config": {
|
|
1510
|
+
"type": "String",
|
|
1511
|
+
"alias": "c",
|
|
1512
|
+
"description": "JSON file name or value to configure options",
|
|
1513
|
+
"name": "config",
|
|
1514
|
+
"hide": false
|
|
1515
|
+
},
|
|
1516
|
+
"yes": {
|
|
1517
|
+
"type": "Boolean",
|
|
1518
|
+
"alias": "y",
|
|
1519
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1520
|
+
"name": "yes",
|
|
1521
|
+
"hide": false
|
|
1522
|
+
},
|
|
1523
|
+
"format": {
|
|
1524
|
+
"type": "Boolean",
|
|
1525
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1526
|
+
"name": "format",
|
|
1527
|
+
"hide": false
|
|
1528
|
+
},
|
|
1529
|
+
"packageManager": {
|
|
1530
|
+
"type": "String",
|
|
1531
|
+
"description": "Change the default package manager",
|
|
1532
|
+
"alias": "pm",
|
|
1533
|
+
"name": "packageManager",
|
|
1534
|
+
"hide": false
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
"arguments": [],
|
|
1538
|
+
"name": "update"
|
|
1539
|
+
},
|
|
1540
|
+
"rest-crud": {
|
|
1541
|
+
"options": {
|
|
1542
|
+
"help": {
|
|
1543
|
+
"name": "help",
|
|
1544
|
+
"type": "Boolean",
|
|
1545
|
+
"alias": "h",
|
|
1546
|
+
"description": "Print the generator's options and usage"
|
|
1547
|
+
},
|
|
1548
|
+
"skip-cache": {
|
|
1549
|
+
"name": "skip-cache",
|
|
1550
|
+
"type": "Boolean",
|
|
1551
|
+
"description": "Do not remember prompt answers",
|
|
1552
|
+
"default": false
|
|
1553
|
+
},
|
|
1554
|
+
"skip-install": {
|
|
1555
|
+
"name": "skip-install",
|
|
1556
|
+
"type": "Boolean",
|
|
1557
|
+
"description": "Do not automatically install dependencies",
|
|
1558
|
+
"default": false
|
|
1559
|
+
},
|
|
1560
|
+
"force-install": {
|
|
1561
|
+
"name": "force-install",
|
|
1562
|
+
"type": "Boolean",
|
|
1563
|
+
"description": "Fail on install dependencies error",
|
|
1564
|
+
"default": false
|
|
1565
|
+
},
|
|
1566
|
+
"ask-answered": {
|
|
1567
|
+
"type": "Boolean",
|
|
1568
|
+
"description": "Show prompts for already configured options",
|
|
1569
|
+
"default": false,
|
|
1570
|
+
"name": "ask-answered",
|
|
1571
|
+
"hide": false
|
|
1572
|
+
},
|
|
1573
|
+
"model": {
|
|
1574
|
+
"type": "String",
|
|
1575
|
+
"required": false,
|
|
1576
|
+
"description": "A valid model name",
|
|
1577
|
+
"name": "model",
|
|
1578
|
+
"hide": false
|
|
1579
|
+
},
|
|
1580
|
+
"datasource": {
|
|
1581
|
+
"type": "String",
|
|
1582
|
+
"required": false,
|
|
1583
|
+
"description": "A valid datasource name",
|
|
1584
|
+
"name": "datasource",
|
|
1585
|
+
"hide": false
|
|
1586
|
+
},
|
|
1587
|
+
"basePath": {
|
|
1588
|
+
"type": "String",
|
|
1589
|
+
"required": false,
|
|
1590
|
+
"description": "A valid base path",
|
|
1591
|
+
"name": "basePath",
|
|
1592
|
+
"hide": false
|
|
1593
|
+
},
|
|
1594
|
+
"readonly": {
|
|
1595
|
+
"type": "Boolean",
|
|
1596
|
+
"required": false,
|
|
1597
|
+
"description": "Create readonly APIs",
|
|
1598
|
+
"default": false,
|
|
1599
|
+
"name": "readonly",
|
|
1600
|
+
"hide": false
|
|
1601
|
+
},
|
|
1602
|
+
"config": {
|
|
1603
|
+
"type": "String",
|
|
1604
|
+
"alias": "c",
|
|
1605
|
+
"description": "JSON file name or value to configure options",
|
|
1606
|
+
"name": "config",
|
|
1607
|
+
"hide": false
|
|
1608
|
+
},
|
|
1609
|
+
"yes": {
|
|
1610
|
+
"type": "Boolean",
|
|
1611
|
+
"alias": "y",
|
|
1612
|
+
"description": "Skip all confirmation prompts with default or provided value",
|
|
1613
|
+
"name": "yes",
|
|
1614
|
+
"hide": false
|
|
1615
|
+
},
|
|
1616
|
+
"format": {
|
|
1617
|
+
"type": "Boolean",
|
|
1618
|
+
"description": "Format generated code using npm run lint:fix",
|
|
1619
|
+
"name": "format",
|
|
1620
|
+
"hide": false
|
|
1621
|
+
},
|
|
1622
|
+
"packageManager": {
|
|
1623
|
+
"type": "String",
|
|
1624
|
+
"description": "Change the default package manager",
|
|
1625
|
+
"alias": "pm",
|
|
1626
|
+
"name": "packageManager",
|
|
1627
|
+
"hide": false
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"arguments": [
|
|
1631
|
+
{
|
|
1632
|
+
"type": "String",
|
|
1633
|
+
"required": false,
|
|
1634
|
+
"description": "Name for the rest-config",
|
|
1635
|
+
"name": "name"
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
"name": "rest-crud"
|
|
1639
|
+
},
|
|
1640
|
+
"copyright": {
|
|
1641
|
+
"options": {
|
|
1642
|
+
"help": {
|
|
1643
|
+
"type": "Boolean",
|
|
1644
|
+
"alias": "h",
|
|
1645
|
+
"description": "Print the generator's options and usage",
|
|
1646
|
+
"name": "help",
|
|
1647
|
+
"hide": false
|
|
1648
|
+
},
|
|
1649
|
+
"skip-cache": {
|
|
1650
|
+
"type": "Boolean",
|
|
1651
|
+
"description": "Do not remember prompt answers",
|
|
1652
|
+
"default": false,
|
|
1653
|
+
"name": "skip-cache",
|
|
1654
|
+
"hide": false
|
|
1655
|
+
},
|
|
1656
|
+
"skip-install": {
|
|
1657
|
+
"type": "Boolean",
|
|
1658
|
+
"description": "Do not automatically install dependencies",
|
|
1659
|
+
"default": false,
|
|
1660
|
+
"name": "skip-install",
|
|
1661
|
+
"hide": false
|
|
1662
|
+
},
|
|
1663
|
+
"force-install": {
|
|
1664
|
+
"type": "Boolean",
|
|
1665
|
+
"description": "Fail on install dependencies error",
|
|
1666
|
+
"default": false,
|
|
1667
|
+
"name": "force-install",
|
|
1668
|
+
"hide": false
|
|
1669
|
+
},
|
|
1670
|
+
"ask-answered": {
|
|
1671
|
+
"type": "Boolean",
|
|
1672
|
+
"description": "Show prompts for already configured options",
|
|
1673
|
+
"default": false,
|
|
1674
|
+
"name": "ask-answered",
|
|
1675
|
+
"hide": false
|
|
1676
|
+
},
|
|
1677
|
+
"owner": {
|
|
1678
|
+
"type": "String",
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"description": "Copyright owner",
|
|
1681
|
+
"name": "owner",
|
|
1682
|
+
"hide": false
|
|
1683
|
+
},
|
|
1684
|
+
"license": {
|
|
1685
|
+
"type": "String",
|
|
1686
|
+
"required": false,
|
|
1687
|
+
"description": "License",
|
|
1688
|
+
"name": "license",
|
|
1689
|
+
"hide": false
|
|
1690
|
+
},
|
|
1691
|
+
"updateLicense": {
|
|
1692
|
+
"type": "Boolean",
|
|
1693
|
+
"required": false,
|
|
1694
|
+
"description": "Update license in package.json and LICENSE",
|
|
1695
|
+
"name": "updateLicense",
|
|
1696
|
+
"hide": false
|
|
1697
|
+
},
|
|
1698
|
+
"gitOnly": {
|
|
1699
|
+
"type": "Boolean",
|
|
1700
|
+
"required": false,
|
|
1701
|
+
"default": true,
|
|
1702
|
+
"description": "Only update git tracked files",
|
|
1703
|
+
"name": "gitOnly",
|
|
1704
|
+
"hide": false
|
|
1705
|
+
},
|
|
1706
|
+
"exclude": {
|
|
1707
|
+
"type": "String",
|
|
1708
|
+
"required": false,
|
|
1709
|
+
"default": "",
|
|
1710
|
+
"description": "Exclude files that match the pattern",
|
|
1711
|
+
"name": "exclude",
|
|
1712
|
+
"hide": false
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
"arguments": [],
|
|
1716
|
+
"name": "copyright"
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
}
|