@live-change/cli 0.7.16 → 0.7.18

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/bin/lcli.js +8 -7
  2. package/package.json +8 -8
package/bin/lcli.js CHANGED
@@ -127,10 +127,14 @@ function ssrServerOptions(yargs) {
127
127
  describe: 'server version file',
128
128
  type: 'string'
129
129
  })
130
- yargs.option('spa', {
131
- describe: 'start in spa mode - without ssr',
130
+ yargs.option('plugin', {
131
+ describe: 'start in plugin mode - without ssr, and with vite mode plugin',
132
132
  type: 'boolean'
133
133
  })
134
+ yargs.option('mode', {
135
+ describe: 'vite mode',
136
+ type: 'string'
137
+ })
134
138
  }
135
139
 
136
140
  const argv = require('yargs') // eslint-disable-line
@@ -188,14 +192,14 @@ const argv = require('yargs') // eslint-disable-line
188
192
  await setupApp({ ...argv, uidBorders: '[]' })
189
193
  await server({ ...argv, uidBorders: '[]' }, true)
190
194
  })
191
- .command('dev', 'shortcut for ssrDev --withApi --withServices --updateServices', (yargs) => {
195
+ .command('dev', 'shortcut for ssrDev --withApi --withServices --updateServices --createDb', (yargs) => {
192
196
  ssrServerOptions(yargs)
193
197
  apiServerOptions(yargs)
194
198
  startOptions(yargs)
195
199
  }, async (argv) => {
196
200
  argv = {
197
201
  ...argv,
198
- withApi: true, withServices: true, updateServices: true
202
+ withApi: true, withServices: true, updateServices: true, createDb: true,
199
203
  }
200
204
  await setupApp({ ...argv, uidBorders: '[]' })
201
205
  await server({ ...argv, uidBorders: '[]' }, true)
@@ -279,9 +283,6 @@ async function server(argv, dev) {
279
283
  let apiServer
280
284
  if(argv.withApi) {
281
285
  apiServer = await setupApiServer({ ...argv, fastAuth })
282
- }
283
-
284
- if(argv.withApi) {
285
286
  await setupApiEndpoints(expressApp, apiServer)
286
287
  }
287
288
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/cli",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
4
4
  "description": "Live Change Framework - command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "homepage": "https://github.com/live-change/live-change-framework",
26
26
  "dependencies": {
27
- "@live-change/dao": "0.5.10",
28
- "@live-change/dao-sockjs": "0.5.10",
29
- "@live-change/dao-websocket": "0.5.10",
30
- "@live-change/db-server": "0.5.23",
31
- "@live-change/framework": "^0.7.16",
32
- "@live-change/server": "^0.7.16",
27
+ "@live-change/dao": "^0.5.10",
28
+ "@live-change/dao-sockjs": "^0.5.10",
29
+ "@live-change/dao-websocket": "^0.5.10",
30
+ "@live-change/db-server": "^0.5.25",
31
+ "@live-change/framework": "^0.7.18",
32
+ "@live-change/server": "^0.7.18",
33
33
  "dotenv": "^16.0.1",
34
34
  "express": "^4.18.1",
35
35
  "http-proxy-middleware": "2.0.6",
@@ -40,5 +40,5 @@
40
40
  "websocket": "^1.0.34",
41
41
  "yargs": "^17.5.1"
42
42
  },
43
- "gitHead": "9cfacee6a8fbe9f719f3dd94017064f46c8252e1"
43
+ "gitHead": "5916995dc07ad8f25ae983d20e45dc4365300386"
44
44
  }