@loopress/cli 0.1.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/LICENSE +373 -0
- package/README.md +676 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/base.d.ts +14 -0
- package/dist/commands/base.js +49 -0
- package/dist/commands/login.d.ts +8 -0
- package/dist/commands/login.js +106 -0
- package/dist/commands/logout.d.ts +6 -0
- package/dist/commands/logout.js +15 -0
- package/dist/commands/project/config.d.ts +6 -0
- package/dist/commands/project/config.js +92 -0
- package/dist/commands/project/list.d.ts +6 -0
- package/dist/commands/project/list.js +31 -0
- package/dist/commands/project/remove-env.d.ts +6 -0
- package/dist/commands/project/remove-env.js +33 -0
- package/dist/commands/project/remove.d.ts +6 -0
- package/dist/commands/project/remove.js +34 -0
- package/dist/commands/project/switch-env.d.ts +6 -0
- package/dist/commands/project/switch-env.js +33 -0
- package/dist/commands/project/switch.d.ts +6 -0
- package/dist/commands/project/switch.js +34 -0
- package/dist/commands/snippets/list.d.ts +13 -0
- package/dist/commands/snippets/list.js +59 -0
- package/dist/commands/snippets/pull.d.ts +16 -0
- package/dist/commands/snippets/pull.js +58 -0
- package/dist/commands/snippets/push.d.ts +18 -0
- package/dist/commands/snippets/push.js +97 -0
- package/dist/commands/styles/pull.d.ts +12 -0
- package/dist/commands/styles/pull.js +52 -0
- package/dist/commands/styles/push.d.ts +13 -0
- package/dist/commands/styles/push.js +78 -0
- package/dist/config/auth.manager.d.ts +16 -0
- package/dist/config/auth.manager.js +45 -0
- package/dist/config/project-config.manager.d.ts +28 -0
- package/dist/config/project-config.manager.js +130 -0
- package/dist/config/types.d.ts +16 -0
- package/dist/config/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/menu.d.ts +7 -0
- package/dist/types/menu.js +1 -0
- package/dist/types/snippet.d.ts +6 -0
- package/dist/types/snippet.js +1 -0
- package/dist/utils/loopress-config.d.ts +6 -0
- package/dist/utils/loopress-config.js +14 -0
- package/dist/utils/snippet-plugin.d.ts +15 -0
- package/dist/utils/snippet-plugin.js +58 -0
- package/oclif.manifest.json +578 -0
- package/package.json +85 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"base": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"flags": {
|
|
7
|
+
"password": {
|
|
8
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
9
|
+
"helpGroup": "GLOBAL",
|
|
10
|
+
"name": "password",
|
|
11
|
+
"hasDynamicHelp": false,
|
|
12
|
+
"multiple": false,
|
|
13
|
+
"type": "option"
|
|
14
|
+
},
|
|
15
|
+
"url": {
|
|
16
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
17
|
+
"helpGroup": "GLOBAL",
|
|
18
|
+
"name": "url",
|
|
19
|
+
"hasDynamicHelp": false,
|
|
20
|
+
"multiple": false,
|
|
21
|
+
"type": "option"
|
|
22
|
+
},
|
|
23
|
+
"user": {
|
|
24
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
25
|
+
"helpGroup": "GLOBAL",
|
|
26
|
+
"name": "user",
|
|
27
|
+
"hasDynamicHelp": false,
|
|
28
|
+
"multiple": false,
|
|
29
|
+
"type": "option"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"hasDynamicHelp": false,
|
|
33
|
+
"hiddenAliases": [],
|
|
34
|
+
"id": "base",
|
|
35
|
+
"pluginAlias": "@loopress/cli",
|
|
36
|
+
"pluginName": "@loopress/cli",
|
|
37
|
+
"pluginType": "core",
|
|
38
|
+
"strict": true,
|
|
39
|
+
"enableJsonFlag": false,
|
|
40
|
+
"isESM": true,
|
|
41
|
+
"relativePath": [
|
|
42
|
+
"dist",
|
|
43
|
+
"commands",
|
|
44
|
+
"base.js"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"login": {
|
|
48
|
+
"aliases": [],
|
|
49
|
+
"args": {},
|
|
50
|
+
"description": "Log in to Loopress via the console",
|
|
51
|
+
"examples": [
|
|
52
|
+
"$ lps login"
|
|
53
|
+
],
|
|
54
|
+
"flags": {},
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"hiddenAliases": [],
|
|
57
|
+
"id": "login",
|
|
58
|
+
"pluginAlias": "@loopress/cli",
|
|
59
|
+
"pluginName": "@loopress/cli",
|
|
60
|
+
"pluginType": "core",
|
|
61
|
+
"strict": true,
|
|
62
|
+
"enableJsonFlag": false,
|
|
63
|
+
"isESM": true,
|
|
64
|
+
"relativePath": [
|
|
65
|
+
"dist",
|
|
66
|
+
"commands",
|
|
67
|
+
"login.js"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"logout": {
|
|
71
|
+
"aliases": [],
|
|
72
|
+
"args": {},
|
|
73
|
+
"description": "Log out from Loopress console",
|
|
74
|
+
"examples": [
|
|
75
|
+
"$ lps logout"
|
|
76
|
+
],
|
|
77
|
+
"flags": {},
|
|
78
|
+
"hasDynamicHelp": false,
|
|
79
|
+
"hiddenAliases": [],
|
|
80
|
+
"id": "logout",
|
|
81
|
+
"pluginAlias": "@loopress/cli",
|
|
82
|
+
"pluginName": "@loopress/cli",
|
|
83
|
+
"pluginType": "core",
|
|
84
|
+
"strict": true,
|
|
85
|
+
"enableJsonFlag": false,
|
|
86
|
+
"isESM": true,
|
|
87
|
+
"relativePath": [
|
|
88
|
+
"dist",
|
|
89
|
+
"commands",
|
|
90
|
+
"logout.js"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"project:config": {
|
|
94
|
+
"aliases": [],
|
|
95
|
+
"args": {},
|
|
96
|
+
"description": "Add or update a WordPress project environment",
|
|
97
|
+
"examples": [
|
|
98
|
+
"$ lps project config"
|
|
99
|
+
],
|
|
100
|
+
"flags": {},
|
|
101
|
+
"hasDynamicHelp": false,
|
|
102
|
+
"hiddenAliases": [],
|
|
103
|
+
"id": "project:config",
|
|
104
|
+
"pluginAlias": "@loopress/cli",
|
|
105
|
+
"pluginName": "@loopress/cli",
|
|
106
|
+
"pluginType": "core",
|
|
107
|
+
"strict": true,
|
|
108
|
+
"enableJsonFlag": false,
|
|
109
|
+
"isESM": true,
|
|
110
|
+
"relativePath": [
|
|
111
|
+
"dist",
|
|
112
|
+
"commands",
|
|
113
|
+
"project",
|
|
114
|
+
"config.js"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"project:list": {
|
|
118
|
+
"aliases": [],
|
|
119
|
+
"args": {},
|
|
120
|
+
"description": "List configured WordPress projects",
|
|
121
|
+
"examples": [
|
|
122
|
+
"$ lps project list"
|
|
123
|
+
],
|
|
124
|
+
"flags": {},
|
|
125
|
+
"hasDynamicHelp": false,
|
|
126
|
+
"hiddenAliases": [],
|
|
127
|
+
"id": "project:list",
|
|
128
|
+
"pluginAlias": "@loopress/cli",
|
|
129
|
+
"pluginName": "@loopress/cli",
|
|
130
|
+
"pluginType": "core",
|
|
131
|
+
"strict": true,
|
|
132
|
+
"enableJsonFlag": false,
|
|
133
|
+
"isESM": true,
|
|
134
|
+
"relativePath": [
|
|
135
|
+
"dist",
|
|
136
|
+
"commands",
|
|
137
|
+
"project",
|
|
138
|
+
"list.js"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"project:remove-env": {
|
|
142
|
+
"aliases": [],
|
|
143
|
+
"args": {},
|
|
144
|
+
"description": "Remove one or more environments from the current project",
|
|
145
|
+
"examples": [
|
|
146
|
+
"$ lps project remove-env"
|
|
147
|
+
],
|
|
148
|
+
"flags": {},
|
|
149
|
+
"hasDynamicHelp": false,
|
|
150
|
+
"hiddenAliases": [],
|
|
151
|
+
"id": "project:remove-env",
|
|
152
|
+
"pluginAlias": "@loopress/cli",
|
|
153
|
+
"pluginName": "@loopress/cli",
|
|
154
|
+
"pluginType": "core",
|
|
155
|
+
"strict": true,
|
|
156
|
+
"enableJsonFlag": false,
|
|
157
|
+
"isESM": true,
|
|
158
|
+
"relativePath": [
|
|
159
|
+
"dist",
|
|
160
|
+
"commands",
|
|
161
|
+
"project",
|
|
162
|
+
"remove-env.js"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"project:remove": {
|
|
166
|
+
"aliases": [],
|
|
167
|
+
"args": {},
|
|
168
|
+
"description": "Remove one or more WordPress project configurations",
|
|
169
|
+
"examples": [
|
|
170
|
+
"$ lps project remove"
|
|
171
|
+
],
|
|
172
|
+
"flags": {},
|
|
173
|
+
"hasDynamicHelp": false,
|
|
174
|
+
"hiddenAliases": [],
|
|
175
|
+
"id": "project:remove",
|
|
176
|
+
"pluginAlias": "@loopress/cli",
|
|
177
|
+
"pluginName": "@loopress/cli",
|
|
178
|
+
"pluginType": "core",
|
|
179
|
+
"strict": true,
|
|
180
|
+
"enableJsonFlag": false,
|
|
181
|
+
"isESM": true,
|
|
182
|
+
"relativePath": [
|
|
183
|
+
"dist",
|
|
184
|
+
"commands",
|
|
185
|
+
"project",
|
|
186
|
+
"remove.js"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"project:switch-env": {
|
|
190
|
+
"aliases": [],
|
|
191
|
+
"args": {},
|
|
192
|
+
"description": "Switch the active environment within the current project",
|
|
193
|
+
"examples": [
|
|
194
|
+
"$ lps project switch-env"
|
|
195
|
+
],
|
|
196
|
+
"flags": {},
|
|
197
|
+
"hasDynamicHelp": false,
|
|
198
|
+
"hiddenAliases": [],
|
|
199
|
+
"id": "project:switch-env",
|
|
200
|
+
"pluginAlias": "@loopress/cli",
|
|
201
|
+
"pluginName": "@loopress/cli",
|
|
202
|
+
"pluginType": "core",
|
|
203
|
+
"strict": true,
|
|
204
|
+
"enableJsonFlag": false,
|
|
205
|
+
"isESM": true,
|
|
206
|
+
"relativePath": [
|
|
207
|
+
"dist",
|
|
208
|
+
"commands",
|
|
209
|
+
"project",
|
|
210
|
+
"switch-env.js"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"project:switch": {
|
|
214
|
+
"aliases": [],
|
|
215
|
+
"args": {},
|
|
216
|
+
"description": "Switch the active project",
|
|
217
|
+
"examples": [
|
|
218
|
+
"$ lps project switch"
|
|
219
|
+
],
|
|
220
|
+
"flags": {},
|
|
221
|
+
"hasDynamicHelp": false,
|
|
222
|
+
"hiddenAliases": [],
|
|
223
|
+
"id": "project:switch",
|
|
224
|
+
"pluginAlias": "@loopress/cli",
|
|
225
|
+
"pluginName": "@loopress/cli",
|
|
226
|
+
"pluginType": "core",
|
|
227
|
+
"strict": true,
|
|
228
|
+
"enableJsonFlag": false,
|
|
229
|
+
"isESM": true,
|
|
230
|
+
"relativePath": [
|
|
231
|
+
"dist",
|
|
232
|
+
"commands",
|
|
233
|
+
"project",
|
|
234
|
+
"switch.js"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"snippets:list": {
|
|
238
|
+
"aliases": [],
|
|
239
|
+
"args": {},
|
|
240
|
+
"description": "List snippets from WordPress",
|
|
241
|
+
"examples": [
|
|
242
|
+
"$ lps snippets list",
|
|
243
|
+
"$ lps snippets list --url http://example.com",
|
|
244
|
+
"$ lps snippets list --plugin wpcode"
|
|
245
|
+
],
|
|
246
|
+
"flags": {
|
|
247
|
+
"password": {
|
|
248
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
249
|
+
"helpGroup": "GLOBAL",
|
|
250
|
+
"name": "password",
|
|
251
|
+
"hasDynamicHelp": false,
|
|
252
|
+
"multiple": false,
|
|
253
|
+
"type": "option"
|
|
254
|
+
},
|
|
255
|
+
"url": {
|
|
256
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
257
|
+
"helpGroup": "GLOBAL",
|
|
258
|
+
"name": "url",
|
|
259
|
+
"hasDynamicHelp": false,
|
|
260
|
+
"multiple": false,
|
|
261
|
+
"type": "option"
|
|
262
|
+
},
|
|
263
|
+
"user": {
|
|
264
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
265
|
+
"helpGroup": "GLOBAL",
|
|
266
|
+
"name": "user",
|
|
267
|
+
"hasDynamicHelp": false,
|
|
268
|
+
"multiple": false,
|
|
269
|
+
"type": "option"
|
|
270
|
+
},
|
|
271
|
+
"json": {
|
|
272
|
+
"char": "j",
|
|
273
|
+
"description": "Output in JSON format",
|
|
274
|
+
"name": "json",
|
|
275
|
+
"allowNo": false,
|
|
276
|
+
"type": "boolean"
|
|
277
|
+
},
|
|
278
|
+
"plugin": {
|
|
279
|
+
"char": "p",
|
|
280
|
+
"description": "WordPress snippet plugin to target",
|
|
281
|
+
"name": "plugin",
|
|
282
|
+
"default": "code-snippets",
|
|
283
|
+
"hasDynamicHelp": false,
|
|
284
|
+
"multiple": false,
|
|
285
|
+
"options": [
|
|
286
|
+
"code-snippets",
|
|
287
|
+
"wpcode"
|
|
288
|
+
],
|
|
289
|
+
"type": "option"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"hasDynamicHelp": false,
|
|
293
|
+
"hiddenAliases": [],
|
|
294
|
+
"id": "snippets:list",
|
|
295
|
+
"pluginAlias": "@loopress/cli",
|
|
296
|
+
"pluginName": "@loopress/cli",
|
|
297
|
+
"pluginType": "core",
|
|
298
|
+
"strict": true,
|
|
299
|
+
"enableJsonFlag": false,
|
|
300
|
+
"isESM": true,
|
|
301
|
+
"relativePath": [
|
|
302
|
+
"dist",
|
|
303
|
+
"commands",
|
|
304
|
+
"snippets",
|
|
305
|
+
"list.js"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
"snippets:pull": {
|
|
309
|
+
"aliases": [],
|
|
310
|
+
"args": {
|
|
311
|
+
"path": {
|
|
312
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
313
|
+
"name": "path"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"description": "Pull snippets from WordPress",
|
|
317
|
+
"examples": [
|
|
318
|
+
"$ lps snippets pull",
|
|
319
|
+
"$ lps snippets pull --url http://example.com",
|
|
320
|
+
"$ lps snippets pull --path ./snippets",
|
|
321
|
+
"$ lps snippets pull --plugin wpcode"
|
|
322
|
+
],
|
|
323
|
+
"flags": {
|
|
324
|
+
"password": {
|
|
325
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
326
|
+
"helpGroup": "GLOBAL",
|
|
327
|
+
"name": "password",
|
|
328
|
+
"hasDynamicHelp": false,
|
|
329
|
+
"multiple": false,
|
|
330
|
+
"type": "option"
|
|
331
|
+
},
|
|
332
|
+
"url": {
|
|
333
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
334
|
+
"helpGroup": "GLOBAL",
|
|
335
|
+
"name": "url",
|
|
336
|
+
"hasDynamicHelp": false,
|
|
337
|
+
"multiple": false,
|
|
338
|
+
"type": "option"
|
|
339
|
+
},
|
|
340
|
+
"user": {
|
|
341
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
342
|
+
"helpGroup": "GLOBAL",
|
|
343
|
+
"name": "user",
|
|
344
|
+
"hasDynamicHelp": false,
|
|
345
|
+
"multiple": false,
|
|
346
|
+
"type": "option"
|
|
347
|
+
},
|
|
348
|
+
"dryRun": {
|
|
349
|
+
"char": "d",
|
|
350
|
+
"description": "Dry run - show what would happen without making changes",
|
|
351
|
+
"name": "dryRun",
|
|
352
|
+
"allowNo": false,
|
|
353
|
+
"type": "boolean"
|
|
354
|
+
},
|
|
355
|
+
"plugin": {
|
|
356
|
+
"char": "p",
|
|
357
|
+
"description": "WordPress snippet plugin to target",
|
|
358
|
+
"name": "plugin",
|
|
359
|
+
"default": "code-snippets",
|
|
360
|
+
"hasDynamicHelp": false,
|
|
361
|
+
"multiple": false,
|
|
362
|
+
"options": [
|
|
363
|
+
"code-snippets",
|
|
364
|
+
"wpcode"
|
|
365
|
+
],
|
|
366
|
+
"type": "option"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"hasDynamicHelp": false,
|
|
370
|
+
"hiddenAliases": [],
|
|
371
|
+
"id": "snippets:pull",
|
|
372
|
+
"pluginAlias": "@loopress/cli",
|
|
373
|
+
"pluginName": "@loopress/cli",
|
|
374
|
+
"pluginType": "core",
|
|
375
|
+
"strict": true,
|
|
376
|
+
"enableJsonFlag": false,
|
|
377
|
+
"isESM": true,
|
|
378
|
+
"relativePath": [
|
|
379
|
+
"dist",
|
|
380
|
+
"commands",
|
|
381
|
+
"snippets",
|
|
382
|
+
"pull.js"
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"snippets:push": {
|
|
386
|
+
"aliases": [],
|
|
387
|
+
"args": {
|
|
388
|
+
"path": {
|
|
389
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
390
|
+
"name": "path"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"description": "Push snippets to WordPress",
|
|
394
|
+
"examples": [
|
|
395
|
+
"$ lps snippets push",
|
|
396
|
+
"$ lps snippets push --url http://example.com",
|
|
397
|
+
"$ lps snippets push --path ./snippets",
|
|
398
|
+
"$ lps snippets push --plugin wpcode"
|
|
399
|
+
],
|
|
400
|
+
"flags": {
|
|
401
|
+
"password": {
|
|
402
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
403
|
+
"helpGroup": "GLOBAL",
|
|
404
|
+
"name": "password",
|
|
405
|
+
"hasDynamicHelp": false,
|
|
406
|
+
"multiple": false,
|
|
407
|
+
"type": "option"
|
|
408
|
+
},
|
|
409
|
+
"url": {
|
|
410
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
411
|
+
"helpGroup": "GLOBAL",
|
|
412
|
+
"name": "url",
|
|
413
|
+
"hasDynamicHelp": false,
|
|
414
|
+
"multiple": false,
|
|
415
|
+
"type": "option"
|
|
416
|
+
},
|
|
417
|
+
"user": {
|
|
418
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
419
|
+
"helpGroup": "GLOBAL",
|
|
420
|
+
"name": "user",
|
|
421
|
+
"hasDynamicHelp": false,
|
|
422
|
+
"multiple": false,
|
|
423
|
+
"type": "option"
|
|
424
|
+
},
|
|
425
|
+
"dryRun": {
|
|
426
|
+
"char": "d",
|
|
427
|
+
"description": "Dry run - show what would happen without making changes",
|
|
428
|
+
"name": "dryRun",
|
|
429
|
+
"allowNo": false,
|
|
430
|
+
"type": "boolean"
|
|
431
|
+
},
|
|
432
|
+
"plugin": {
|
|
433
|
+
"char": "p",
|
|
434
|
+
"description": "WordPress snippet plugin to target",
|
|
435
|
+
"name": "plugin",
|
|
436
|
+
"default": "code-snippets",
|
|
437
|
+
"hasDynamicHelp": false,
|
|
438
|
+
"multiple": false,
|
|
439
|
+
"options": [
|
|
440
|
+
"code-snippets",
|
|
441
|
+
"wpcode"
|
|
442
|
+
],
|
|
443
|
+
"type": "option"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"hasDynamicHelp": false,
|
|
447
|
+
"hiddenAliases": [],
|
|
448
|
+
"id": "snippets:push",
|
|
449
|
+
"pluginAlias": "@loopress/cli",
|
|
450
|
+
"pluginName": "@loopress/cli",
|
|
451
|
+
"pluginType": "core",
|
|
452
|
+
"strict": true,
|
|
453
|
+
"enableJsonFlag": false,
|
|
454
|
+
"isESM": true,
|
|
455
|
+
"relativePath": [
|
|
456
|
+
"dist",
|
|
457
|
+
"commands",
|
|
458
|
+
"snippets",
|
|
459
|
+
"push.js"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"styles:pull": {
|
|
463
|
+
"aliases": [],
|
|
464
|
+
"args": {},
|
|
465
|
+
"description": "Pull Global Styles from WordPress",
|
|
466
|
+
"examples": [
|
|
467
|
+
"$ lps styles pull",
|
|
468
|
+
"$ lps styles pull --url http://example.com"
|
|
469
|
+
],
|
|
470
|
+
"flags": {
|
|
471
|
+
"password": {
|
|
472
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
473
|
+
"helpGroup": "GLOBAL",
|
|
474
|
+
"name": "password",
|
|
475
|
+
"hasDynamicHelp": false,
|
|
476
|
+
"multiple": false,
|
|
477
|
+
"type": "option"
|
|
478
|
+
},
|
|
479
|
+
"url": {
|
|
480
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
481
|
+
"helpGroup": "GLOBAL",
|
|
482
|
+
"name": "url",
|
|
483
|
+
"hasDynamicHelp": false,
|
|
484
|
+
"multiple": false,
|
|
485
|
+
"type": "option"
|
|
486
|
+
},
|
|
487
|
+
"user": {
|
|
488
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
489
|
+
"helpGroup": "GLOBAL",
|
|
490
|
+
"name": "user",
|
|
491
|
+
"hasDynamicHelp": false,
|
|
492
|
+
"multiple": false,
|
|
493
|
+
"type": "option"
|
|
494
|
+
},
|
|
495
|
+
"dryRun": {
|
|
496
|
+
"char": "d",
|
|
497
|
+
"description": "Dry run - show what would happen without making changes",
|
|
498
|
+
"name": "dryRun",
|
|
499
|
+
"allowNo": false,
|
|
500
|
+
"type": "boolean"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"hasDynamicHelp": false,
|
|
504
|
+
"hiddenAliases": [],
|
|
505
|
+
"id": "styles:pull",
|
|
506
|
+
"pluginAlias": "@loopress/cli",
|
|
507
|
+
"pluginName": "@loopress/cli",
|
|
508
|
+
"pluginType": "core",
|
|
509
|
+
"strict": true,
|
|
510
|
+
"enableJsonFlag": false,
|
|
511
|
+
"isESM": true,
|
|
512
|
+
"relativePath": [
|
|
513
|
+
"dist",
|
|
514
|
+
"commands",
|
|
515
|
+
"styles",
|
|
516
|
+
"pull.js"
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"styles:push": {
|
|
520
|
+
"aliases": [],
|
|
521
|
+
"args": {},
|
|
522
|
+
"description": "Push Global Styles to WordPress",
|
|
523
|
+
"examples": [
|
|
524
|
+
"$ lps styles push",
|
|
525
|
+
"$ lps styles push --url http://example.com"
|
|
526
|
+
],
|
|
527
|
+
"flags": {
|
|
528
|
+
"password": {
|
|
529
|
+
"description": "WordPress application password (fallback; prefer `lps project config`)",
|
|
530
|
+
"helpGroup": "GLOBAL",
|
|
531
|
+
"name": "password",
|
|
532
|
+
"hasDynamicHelp": false,
|
|
533
|
+
"multiple": false,
|
|
534
|
+
"type": "option"
|
|
535
|
+
},
|
|
536
|
+
"url": {
|
|
537
|
+
"description": "WordPress URL (fallback; prefer `lps project config`)",
|
|
538
|
+
"helpGroup": "GLOBAL",
|
|
539
|
+
"name": "url",
|
|
540
|
+
"hasDynamicHelp": false,
|
|
541
|
+
"multiple": false,
|
|
542
|
+
"type": "option"
|
|
543
|
+
},
|
|
544
|
+
"user": {
|
|
545
|
+
"description": "WordPress username (fallback; prefer `lps project config`)",
|
|
546
|
+
"helpGroup": "GLOBAL",
|
|
547
|
+
"name": "user",
|
|
548
|
+
"hasDynamicHelp": false,
|
|
549
|
+
"multiple": false,
|
|
550
|
+
"type": "option"
|
|
551
|
+
},
|
|
552
|
+
"dryRun": {
|
|
553
|
+
"char": "d",
|
|
554
|
+
"description": "Dry run - show what would happen without making changes",
|
|
555
|
+
"name": "dryRun",
|
|
556
|
+
"allowNo": false,
|
|
557
|
+
"type": "boolean"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"hasDynamicHelp": false,
|
|
561
|
+
"hiddenAliases": [],
|
|
562
|
+
"id": "styles:push",
|
|
563
|
+
"pluginAlias": "@loopress/cli",
|
|
564
|
+
"pluginName": "@loopress/cli",
|
|
565
|
+
"pluginType": "core",
|
|
566
|
+
"strict": true,
|
|
567
|
+
"enableJsonFlag": false,
|
|
568
|
+
"isESM": true,
|
|
569
|
+
"relativePath": [
|
|
570
|
+
"dist",
|
|
571
|
+
"commands",
|
|
572
|
+
"styles",
|
|
573
|
+
"push.js"
|
|
574
|
+
]
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"version": "0.1.0"
|
|
578
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@loopress/cli",
|
|
3
|
+
"description": "CLI tool for syncing WordPress CodeSnippets, styles, and menus via the REST API",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": "jean-smaug",
|
|
6
|
+
"bin": {
|
|
7
|
+
"loopress": "bin/run.js",
|
|
8
|
+
"lps": "bin/run.js"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/loopress/loopress/issues"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@inquirer/prompts": "^8.5.2",
|
|
15
|
+
"@oclif/core": "^4.11.7",
|
|
16
|
+
"@oclif/plugin-help": "^6.2.50",
|
|
17
|
+
"@oclif/plugin-plugins": "^5.4.72",
|
|
18
|
+
"glob": "13.0.6",
|
|
19
|
+
"got": "^15.0.5"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/compat": "2.1.0",
|
|
23
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
24
|
+
"@oclif/test": "^4",
|
|
25
|
+
"@types/chai": "^5.2.3",
|
|
26
|
+
"@types/mocha": "^10",
|
|
27
|
+
"@types/node": "25.9.3",
|
|
28
|
+
"chai": "^6.2.2",
|
|
29
|
+
"eslint": "^9",
|
|
30
|
+
"eslint-config-oclif": "^6",
|
|
31
|
+
"eslint-config-prettier": "^10",
|
|
32
|
+
"mocha": "^11.7.6",
|
|
33
|
+
"oclif": "^4",
|
|
34
|
+
"prettier": "3.8.4",
|
|
35
|
+
"shx": "^0.4.0",
|
|
36
|
+
"ts-node": "^10",
|
|
37
|
+
"tsx": "4.22.4",
|
|
38
|
+
"typescript": "^6.0.3"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18.0.0"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"./bin",
|
|
45
|
+
"./dist",
|
|
46
|
+
"./oclif.manifest.json"
|
|
47
|
+
],
|
|
48
|
+
"homepage": "https://github.com/loopress/loopress",
|
|
49
|
+
"keywords": [
|
|
50
|
+
"oclif"
|
|
51
|
+
],
|
|
52
|
+
"license": "MPL-2.0",
|
|
53
|
+
"main": "dist/index.js",
|
|
54
|
+
"type": "module",
|
|
55
|
+
"oclif": {
|
|
56
|
+
"binAliases": [
|
|
57
|
+
"loopress",
|
|
58
|
+
"lps"
|
|
59
|
+
],
|
|
60
|
+
"dirname": "loopress",
|
|
61
|
+
"commands": "./dist/commands",
|
|
62
|
+
"plugins": [
|
|
63
|
+
"@oclif/plugin-help",
|
|
64
|
+
"@oclif/plugin-plugins"
|
|
65
|
+
],
|
|
66
|
+
"topicSeparator": " "
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/loopress/loopress.git"
|
|
71
|
+
},
|
|
72
|
+
"types": "dist/index.d.ts",
|
|
73
|
+
"directories": {
|
|
74
|
+
"test": "test"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"watch": "tsc -b --watch",
|
|
78
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
79
|
+
"lint": "eslint",
|
|
80
|
+
"posttest": "pnpm run lint",
|
|
81
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\" --reporter spec --full-trace --verbose",
|
|
82
|
+
"version": "oclif readme && git add README.md",
|
|
83
|
+
"format": "prettier . --write"
|
|
84
|
+
}
|
|
85
|
+
}
|