@live-change/cli 0.9.125 → 0.9.127

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.
Files changed (2) hide show
  1. package/lib/starter.js +12 -3
  2. package/package.json +8 -8
package/lib/starter.js CHANGED
@@ -185,7 +185,7 @@ export function ssrServerOptions(yargs) {
185
185
 
186
186
  let globalServicesConfig
187
187
 
188
- export default function starter(servicesConfig = null, args = {}) {
188
+ export default function starter(servicesConfig = null, args = {}, extraArgs = {}) {
189
189
  argsDefaults = { ...argsDefaults, ...args }
190
190
  globalServicesConfig = servicesConfig
191
191
  yargs(process.argv.slice(2))
@@ -201,7 +201,8 @@ export default function starter(servicesConfig = null, args = {}) {
201
201
  startOptions(yargs)
202
202
  }, async (argv) => {
203
203
  argv = {
204
- ...argv,
204
+ ...extraArgs,
205
+ ...argv,
205
206
  withServices: true, updateServices: true
206
207
  }
207
208
  await setupApp({...argv, uidBorders: '[]'})
@@ -212,6 +213,7 @@ export default function starter(servicesConfig = null, args = {}) {
212
213
  startOptions(yargs)
213
214
  }, async (argv) => {
214
215
  argv = {
216
+ ...extraArgs,
215
217
  ...argv,
216
218
  withApi: true, withServices: true, updateServices: true,
217
219
  withDb: true, dbBackend: 'mem', createDb: true
@@ -236,6 +238,7 @@ export default function starter(servicesConfig = null, args = {}) {
236
238
  apiServerOptions(yargs)
237
239
  startOptions(yargs)
238
240
  }, async (argv) => {
241
+ argv = { ...extraArgs, ...argv }
239
242
  await setupApp({...argv, uidBorders: '[]'})
240
243
  await server({...argv, uidBorders: '[]'}, false)
241
244
  })
@@ -244,6 +247,7 @@ export default function starter(servicesConfig = null, args = {}) {
244
247
  apiServerOptions(yargs)
245
248
  startOptions(yargs)
246
249
  }, async (argv) => {
250
+ argv = { ...extraArgs, ...argv }
247
251
  await setupApp({...argv, uidBorders: '[]'})
248
252
  await server({...argv, uidBorders: '[]'}, false)
249
253
  })
@@ -252,6 +256,7 @@ export default function starter(servicesConfig = null, args = {}) {
252
256
  apiServerOptions(yargs)
253
257
  startOptions(yargs)
254
258
  }, async (argv) => {
259
+ argv = { ...extraArgs, ...argv }
255
260
  await setupApp({...argv, uidBorders: '[]'})
256
261
  await server({...argv, uidBorders: '[]'}, true)
257
262
  })
@@ -261,6 +266,7 @@ export default function starter(servicesConfig = null, args = {}) {
261
266
  startOptions(yargs)
262
267
  }, async (argv) => {
263
268
  argv = {
269
+ ...extraArgs,
264
270
  ...argv,
265
271
  withApi: true, withServices: true, updateServices: true, createDb: true,
266
272
  }
@@ -273,6 +279,7 @@ export default function starter(servicesConfig = null, args = {}) {
273
279
  startOptions(yargs)
274
280
  }, async (argv) => {
275
281
  argv = {
282
+ ...extraArgs,
276
283
  ...argv,
277
284
  withApi: true, withServices: true, updateServices: true,
278
285
  withDb: true, dbBackend: 'mem', createDb: true
@@ -286,6 +293,7 @@ export default function starter(servicesConfig = null, args = {}) {
286
293
  startOptions(yargs)
287
294
  }, async (argv) => {
288
295
  argv = {
296
+ ...extraArgs,
289
297
  ...argv,
290
298
  withApi: true, withServices: true, updateServices: true,
291
299
  withDb: true, createDb: true
@@ -314,6 +322,7 @@ export default function starter(servicesConfig = null, args = {}) {
314
322
  })
315
323
  startOptions(yargs)
316
324
  }, async (argv) => {
325
+ argv = { ...extraArgs, ...argv }
317
326
  await setupApp({...argv, uidBorders: '[]'})
318
327
  await changes(argv)
319
328
  })
@@ -330,7 +339,7 @@ export default function starter(servicesConfig = null, args = {}) {
330
339
  })
331
340
  startOptions(yargs)
332
341
  }, async (argv) => {
333
- await setupApp({...argv, uidBorders: '[]'})
342
+ await setupApp({...extraArgs, ...argv, uidBorders: '[]'})
334
343
  await update(argv)
335
344
  })
336
345
  .option('verbose', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/cli",
3
- "version": "0.9.125",
3
+ "version": "0.9.127",
4
4
  "description": "Live Change Framework - command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,12 +25,12 @@
25
25
  "type": "module",
26
26
  "homepage": "https://github.com/live-change/live-change-stack",
27
27
  "dependencies": {
28
- "@live-change/dao": "^0.9.125",
29
- "@live-change/dao-sockjs": "^0.9.125",
30
- "@live-change/dao-websocket": "^0.9.125",
31
- "@live-change/db-server": "^0.9.125",
32
- "@live-change/framework": "^0.9.125",
33
- "@live-change/server": "^0.9.125",
28
+ "@live-change/dao": "^0.9.127",
29
+ "@live-change/dao-sockjs": "^0.9.127",
30
+ "@live-change/dao-websocket": "^0.9.127",
31
+ "@live-change/db-server": "^0.9.127",
32
+ "@live-change/framework": "^0.9.127",
33
+ "@live-change/server": "^0.9.127",
34
34
  "dotenv": "^17.2.1",
35
35
  "express": "^4.18.2",
36
36
  "http-proxy-middleware": "2.0.6",
@@ -40,5 +40,5 @@
40
40
  "websocket": "^1.0.34",
41
41
  "yargs": "^17.7.2"
42
42
  },
43
- "gitHead": "ba8f22a86fea42d874c0d3163369b3364e56f60c"
43
+ "gitHead": "acd85c886f4086b2d559eb40b5343f05d64ff294"
44
44
  }