@player-tools/cli 0.8.0-next.0 → 0.8.0
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/bin/dev +17 -0
- package/oclif.manifest.json +357 -0
- package/package.json +13 -13
package/bin/dev
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const oclif = require("@oclif/core");
|
|
4
|
+
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const project = path.join(__dirname, "..", "tsconfig.json");
|
|
7
|
+
|
|
8
|
+
// In dev mode -> use ts-node and dev plugins
|
|
9
|
+
process.env.NODE_ENV = "development";
|
|
10
|
+
|
|
11
|
+
require("ts-node").register({ project });
|
|
12
|
+
|
|
13
|
+
// In dev mode, always show stack traces
|
|
14
|
+
oclif.settings.debug = true;
|
|
15
|
+
|
|
16
|
+
// Start the CLI
|
|
17
|
+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"dependency-versions:check": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Consider the following:\n - The interpretation of TOP-LEVEL and NESTED dependencies is as follows:\n a. TOP-LEVEL dependencies only have one 'node_modules' in their path\n b. NESTED dependencies have more than one 'node_modules' in their path\n - @player-ui/@player-tools dependencies are fetched not only from inside the 'node_modules' at the top of the repository in which it is run but also from 'node_modules' in sub-directories.\n For example, if you have some 'node_modules' inside of a 'packages' folder that contains @player-ui/@player-tools dependencies, then these will also be fetched.\n The display of such dependencies also depends on the first bullet point.\n ",
|
|
7
|
+
"flags": {
|
|
8
|
+
"config": {
|
|
9
|
+
"char": "c",
|
|
10
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
11
|
+
"name": "config",
|
|
12
|
+
"hasDynamicHelp": false,
|
|
13
|
+
"multiple": false,
|
|
14
|
+
"type": "option"
|
|
15
|
+
},
|
|
16
|
+
"verbose": {
|
|
17
|
+
"char": "v",
|
|
18
|
+
"description": "Give verbose description",
|
|
19
|
+
"name": "verbose",
|
|
20
|
+
"allowNo": false,
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"path": {
|
|
24
|
+
"char": "p",
|
|
25
|
+
"description": "Outputs full path to dependency",
|
|
26
|
+
"name": "path",
|
|
27
|
+
"allowNo": false,
|
|
28
|
+
"type": "boolean"
|
|
29
|
+
},
|
|
30
|
+
"ignore": {
|
|
31
|
+
"char": "i",
|
|
32
|
+
"description": "Ignore the specified pattern(s) when outputting results. Note multiple patterns can be passed",
|
|
33
|
+
"name": "ignore",
|
|
34
|
+
"hasDynamicHelp": false,
|
|
35
|
+
"multiple": true,
|
|
36
|
+
"type": "option"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"hasDynamicHelp": false,
|
|
40
|
+
"hiddenAliases": [],
|
|
41
|
+
"id": "dependency-versions:check",
|
|
42
|
+
"pluginAlias": "@player-tools/cli",
|
|
43
|
+
"pluginName": "@player-tools/cli",
|
|
44
|
+
"pluginType": "core",
|
|
45
|
+
"strict": false,
|
|
46
|
+
"summary": "Checks for @player-ui/@player-tools dependency version mismatches and issues warnings/solutions accordingly",
|
|
47
|
+
"parse": true,
|
|
48
|
+
"parserOptions": {},
|
|
49
|
+
"enableJsonFlag": false,
|
|
50
|
+
"isESM": false,
|
|
51
|
+
"relativePath": [
|
|
52
|
+
"dist",
|
|
53
|
+
"commands",
|
|
54
|
+
"dependency-versions",
|
|
55
|
+
"check.js"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"xlr:compile": {
|
|
59
|
+
"aliases": [],
|
|
60
|
+
"args": {},
|
|
61
|
+
"description": "Compiles typescript files to XLRs format",
|
|
62
|
+
"flags": {
|
|
63
|
+
"config": {
|
|
64
|
+
"char": "c",
|
|
65
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
66
|
+
"name": "config",
|
|
67
|
+
"hasDynamicHelp": false,
|
|
68
|
+
"multiple": false,
|
|
69
|
+
"type": "option"
|
|
70
|
+
},
|
|
71
|
+
"input": {
|
|
72
|
+
"char": "i",
|
|
73
|
+
"description": "An input directory to search for types to export",
|
|
74
|
+
"name": "input",
|
|
75
|
+
"default": "./src",
|
|
76
|
+
"hasDynamicHelp": false,
|
|
77
|
+
"multiple": false,
|
|
78
|
+
"type": "option"
|
|
79
|
+
},
|
|
80
|
+
"output": {
|
|
81
|
+
"char": "o",
|
|
82
|
+
"description": "Output directory to write results to.",
|
|
83
|
+
"name": "output",
|
|
84
|
+
"default": "./dist",
|
|
85
|
+
"hasDynamicHelp": false,
|
|
86
|
+
"multiple": false,
|
|
87
|
+
"type": "option"
|
|
88
|
+
},
|
|
89
|
+
"mode": {
|
|
90
|
+
"char": "m",
|
|
91
|
+
"description": "Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)",
|
|
92
|
+
"name": "mode",
|
|
93
|
+
"default": "plugin",
|
|
94
|
+
"hasDynamicHelp": false,
|
|
95
|
+
"helpValue": "(plugin|types)",
|
|
96
|
+
"multiple": false,
|
|
97
|
+
"options": [
|
|
98
|
+
"plugin",
|
|
99
|
+
"types"
|
|
100
|
+
],
|
|
101
|
+
"type": "option"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"hasDynamicHelp": false,
|
|
105
|
+
"hiddenAliases": [],
|
|
106
|
+
"id": "xlr:compile",
|
|
107
|
+
"pluginAlias": "@player-tools/cli",
|
|
108
|
+
"pluginName": "@player-tools/cli",
|
|
109
|
+
"pluginType": "core",
|
|
110
|
+
"strict": false,
|
|
111
|
+
"parse": true,
|
|
112
|
+
"parserOptions": {},
|
|
113
|
+
"enableJsonFlag": false,
|
|
114
|
+
"isESM": false,
|
|
115
|
+
"relativePath": [
|
|
116
|
+
"dist",
|
|
117
|
+
"commands",
|
|
118
|
+
"xlr",
|
|
119
|
+
"compile.js"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"xlr:convert": {
|
|
123
|
+
"aliases": [],
|
|
124
|
+
"args": {},
|
|
125
|
+
"description": "Exports XLRs files to a specific language",
|
|
126
|
+
"flags": {
|
|
127
|
+
"config": {
|
|
128
|
+
"char": "c",
|
|
129
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
130
|
+
"name": "config",
|
|
131
|
+
"hasDynamicHelp": false,
|
|
132
|
+
"multiple": false,
|
|
133
|
+
"type": "option"
|
|
134
|
+
},
|
|
135
|
+
"input": {
|
|
136
|
+
"char": "i",
|
|
137
|
+
"description": "An input directory to search for types to export",
|
|
138
|
+
"name": "input",
|
|
139
|
+
"default": "./dist",
|
|
140
|
+
"hasDynamicHelp": false,
|
|
141
|
+
"multiple": false,
|
|
142
|
+
"type": "option"
|
|
143
|
+
},
|
|
144
|
+
"output": {
|
|
145
|
+
"char": "o",
|
|
146
|
+
"description": "Output directory to write results to.",
|
|
147
|
+
"name": "output",
|
|
148
|
+
"hasDynamicHelp": false,
|
|
149
|
+
"multiple": false,
|
|
150
|
+
"type": "option"
|
|
151
|
+
},
|
|
152
|
+
"lang": {
|
|
153
|
+
"char": "l",
|
|
154
|
+
"description": "Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)",
|
|
155
|
+
"name": "lang",
|
|
156
|
+
"hasDynamicHelp": false,
|
|
157
|
+
"helpValue": "(TypeScript)",
|
|
158
|
+
"multiple": false,
|
|
159
|
+
"options": [
|
|
160
|
+
"TypeScript"
|
|
161
|
+
],
|
|
162
|
+
"type": "option"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"hasDynamicHelp": false,
|
|
166
|
+
"hiddenAliases": [],
|
|
167
|
+
"id": "xlr:convert",
|
|
168
|
+
"pluginAlias": "@player-tools/cli",
|
|
169
|
+
"pluginName": "@player-tools/cli",
|
|
170
|
+
"pluginType": "core",
|
|
171
|
+
"strict": false,
|
|
172
|
+
"parse": true,
|
|
173
|
+
"parserOptions": {},
|
|
174
|
+
"enableJsonFlag": false,
|
|
175
|
+
"isESM": false,
|
|
176
|
+
"relativePath": [
|
|
177
|
+
"dist",
|
|
178
|
+
"commands",
|
|
179
|
+
"xlr",
|
|
180
|
+
"convert.js"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"dsl:compile": {
|
|
184
|
+
"aliases": [],
|
|
185
|
+
"args": {},
|
|
186
|
+
"description": "Compile Player DSL files into JSON",
|
|
187
|
+
"flags": {
|
|
188
|
+
"config": {
|
|
189
|
+
"char": "c",
|
|
190
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
191
|
+
"name": "config",
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"multiple": false,
|
|
194
|
+
"type": "option"
|
|
195
|
+
},
|
|
196
|
+
"input": {
|
|
197
|
+
"char": "i",
|
|
198
|
+
"description": "An input directory to compile.\nAny jsx/ts/tsx files will be loaded via babel-require automatically.",
|
|
199
|
+
"name": "input",
|
|
200
|
+
"hasDynamicHelp": false,
|
|
201
|
+
"multiple": false,
|
|
202
|
+
"type": "option"
|
|
203
|
+
},
|
|
204
|
+
"output": {
|
|
205
|
+
"char": "o",
|
|
206
|
+
"description": "Output directory to write results to.",
|
|
207
|
+
"name": "output",
|
|
208
|
+
"hasDynamicHelp": false,
|
|
209
|
+
"multiple": false,
|
|
210
|
+
"type": "option"
|
|
211
|
+
},
|
|
212
|
+
"skip-validation": {
|
|
213
|
+
"description": "Option to skip validating the generated JSON",
|
|
214
|
+
"name": "skip-validation",
|
|
215
|
+
"allowNo": false,
|
|
216
|
+
"type": "boolean"
|
|
217
|
+
},
|
|
218
|
+
"exp": {
|
|
219
|
+
"description": "Use experimental language features",
|
|
220
|
+
"name": "exp",
|
|
221
|
+
"allowNo": false,
|
|
222
|
+
"type": "boolean"
|
|
223
|
+
},
|
|
224
|
+
"severity": {
|
|
225
|
+
"char": "s",
|
|
226
|
+
"description": "The severity of the validation",
|
|
227
|
+
"name": "severity",
|
|
228
|
+
"default": "error",
|
|
229
|
+
"hasDynamicHelp": false,
|
|
230
|
+
"multiple": false,
|
|
231
|
+
"options": [
|
|
232
|
+
"error",
|
|
233
|
+
"warn"
|
|
234
|
+
],
|
|
235
|
+
"type": "option"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"hasDynamicHelp": false,
|
|
239
|
+
"hiddenAliases": [],
|
|
240
|
+
"id": "dsl:compile",
|
|
241
|
+
"pluginAlias": "@player-tools/cli",
|
|
242
|
+
"pluginName": "@player-tools/cli",
|
|
243
|
+
"pluginType": "core",
|
|
244
|
+
"strict": false,
|
|
245
|
+
"parse": true,
|
|
246
|
+
"parserOptions": {},
|
|
247
|
+
"enableJsonFlag": false,
|
|
248
|
+
"isESM": false,
|
|
249
|
+
"relativePath": [
|
|
250
|
+
"dist",
|
|
251
|
+
"commands",
|
|
252
|
+
"dsl",
|
|
253
|
+
"compile.js"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"dsl:validate": {
|
|
257
|
+
"aliases": [],
|
|
258
|
+
"args": {},
|
|
259
|
+
"description": "Validate TSX files before they get compiled",
|
|
260
|
+
"flags": {
|
|
261
|
+
"config": {
|
|
262
|
+
"char": "c",
|
|
263
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
264
|
+
"name": "config",
|
|
265
|
+
"hasDynamicHelp": false,
|
|
266
|
+
"multiple": false,
|
|
267
|
+
"type": "option"
|
|
268
|
+
},
|
|
269
|
+
"files": {
|
|
270
|
+
"char": "f",
|
|
271
|
+
"description": "A list of files or globs to validate",
|
|
272
|
+
"name": "files",
|
|
273
|
+
"hasDynamicHelp": false,
|
|
274
|
+
"multiple": true,
|
|
275
|
+
"type": "option"
|
|
276
|
+
},
|
|
277
|
+
"severity": {
|
|
278
|
+
"char": "s",
|
|
279
|
+
"description": "Setting the validation severity to 'warn' will change the validation step into a warning-only, not halting the process with code 1. That exposes an intermediate option between the default behaviour, where it will fail on errors, and skipping validation.",
|
|
280
|
+
"name": "severity",
|
|
281
|
+
"default": "error",
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"options": [
|
|
285
|
+
"error",
|
|
286
|
+
"warn"
|
|
287
|
+
],
|
|
288
|
+
"type": "option"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"hiddenAliases": [],
|
|
293
|
+
"id": "dsl:validate",
|
|
294
|
+
"pluginAlias": "@player-tools/cli",
|
|
295
|
+
"pluginName": "@player-tools/cli",
|
|
296
|
+
"pluginType": "core",
|
|
297
|
+
"strict": false,
|
|
298
|
+
"parse": true,
|
|
299
|
+
"parserOptions": {},
|
|
300
|
+
"enableJsonFlag": false,
|
|
301
|
+
"isESM": false,
|
|
302
|
+
"relativePath": [
|
|
303
|
+
"dist",
|
|
304
|
+
"commands",
|
|
305
|
+
"dsl",
|
|
306
|
+
"validate.js"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
"json:validate": {
|
|
310
|
+
"aliases": [],
|
|
311
|
+
"args": {},
|
|
312
|
+
"description": "Validate Player JSON content",
|
|
313
|
+
"flags": {
|
|
314
|
+
"config": {
|
|
315
|
+
"char": "c",
|
|
316
|
+
"description": "Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load",
|
|
317
|
+
"name": "config",
|
|
318
|
+
"hasDynamicHelp": false,
|
|
319
|
+
"multiple": false,
|
|
320
|
+
"type": "option"
|
|
321
|
+
},
|
|
322
|
+
"files": {
|
|
323
|
+
"char": "f",
|
|
324
|
+
"description": "A list of files or globs to validate",
|
|
325
|
+
"name": "files",
|
|
326
|
+
"hasDynamicHelp": false,
|
|
327
|
+
"multiple": true,
|
|
328
|
+
"type": "option"
|
|
329
|
+
},
|
|
330
|
+
"exp": {
|
|
331
|
+
"description": "Use experimental language features",
|
|
332
|
+
"name": "exp",
|
|
333
|
+
"allowNo": false,
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"hasDynamicHelp": false,
|
|
338
|
+
"hiddenAliases": [],
|
|
339
|
+
"id": "json:validate",
|
|
340
|
+
"pluginAlias": "@player-tools/cli",
|
|
341
|
+
"pluginName": "@player-tools/cli",
|
|
342
|
+
"pluginType": "core",
|
|
343
|
+
"strict": false,
|
|
344
|
+
"parse": true,
|
|
345
|
+
"parserOptions": {},
|
|
346
|
+
"enableJsonFlag": false,
|
|
347
|
+
"isESM": false,
|
|
348
|
+
"relativePath": [
|
|
349
|
+
"dist",
|
|
350
|
+
"commands",
|
|
351
|
+
"json",
|
|
352
|
+
"validate.js"
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"version": "0.0.0-PLACEHOLDER"
|
|
357
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"version": "0.8.0-next.0",
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"types": "./dist/index.d.ts",
|
|
2
|
+
"sideEffects": false,
|
|
6
3
|
"files": [
|
|
4
|
+
"bin",
|
|
7
5
|
"dist",
|
|
8
|
-
"
|
|
9
|
-
"types"
|
|
6
|
+
"oclif.manifest.json"
|
|
10
7
|
],
|
|
8
|
+
"name": "@player-tools/cli",
|
|
9
|
+
"version": "0.8.0",
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
11
12
|
"oclif": {
|
|
12
13
|
"bin": "player",
|
|
13
14
|
"dirname": "player",
|
|
@@ -21,12 +22,12 @@
|
|
|
21
22
|
"player": "bin/run"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@player-tools/dsl": "0.8.0
|
|
25
|
-
"@player-tools/json-language-service": "0.8.0
|
|
26
|
-
"@player-tools/xlr": "0.8.0
|
|
27
|
-
"@player-tools/xlr-converters": "0.8.0
|
|
28
|
-
"@player-tools/xlr-sdk": "0.8.0
|
|
29
|
-
"@player-tools/xlr-utils": "0.8.0
|
|
25
|
+
"@player-tools/dsl": "0.8.0",
|
|
26
|
+
"@player-tools/json-language-service": "0.8.0",
|
|
27
|
+
"@player-tools/xlr": "0.8.0",
|
|
28
|
+
"@player-tools/xlr-converters": "0.8.0",
|
|
29
|
+
"@player-tools/xlr-sdk": "0.8.0",
|
|
30
|
+
"@player-tools/xlr-utils": "0.8.0",
|
|
30
31
|
"@babel/plugin-transform-react-jsx-source": "^7.23.3",
|
|
31
32
|
"@babel/preset-env": "^7.23.3",
|
|
32
33
|
"@babel/preset-react": "^7.23.3",
|
|
@@ -54,6 +55,5 @@
|
|
|
54
55
|
"vscode-languageserver-textdocument": "^1.0.1",
|
|
55
56
|
"vscode-languageserver-types": "^3.15.1"
|
|
56
57
|
},
|
|
57
|
-
"sideEffects": false,
|
|
58
58
|
"peerDependencies": {}
|
|
59
59
|
}
|