@live-change/cli 0.5.27 → 0.6.2

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 +10 -3
  2. package/package.json +8 -8
package/bin/lcli.js CHANGED
@@ -213,7 +213,7 @@ async function apiServer(argv) {
213
213
 
214
214
  const expressApp = express()
215
215
 
216
- setupApiEndpoints(expressApp, apiServer)
216
+ await setupApiEndpoints(expressApp, apiServer)
217
217
 
218
218
  const httpServer = http.createServer(expressApp)
219
219
 
@@ -262,9 +262,11 @@ async function ssrServer(argv, dev) {
262
262
  }
263
263
 
264
264
  if(argv.withApi) {
265
- setupApiEndpoints(expressApp, apiServer)
265
+ await setupApiEndpoints(expressApp, apiServer)
266
266
  }
267
267
 
268
+ console.log("ENDPOINTS INSTALLED! CREATING SSR SERVER!")
269
+
268
270
  const ssrServer = new SsrServer(expressApp, manifest, {
269
271
  ...argv,
270
272
  dev,
@@ -281,14 +283,19 @@ async function ssrServer(argv, dev) {
281
283
  }
282
284
  )
283
285
  })
284
-
285
286
  await ssrServer.start()
286
287
 
288
+ console.log("SSR INSTALLED! CREATING HTTP SERVER!")
289
+
287
290
  const httpServer = http.createServer(expressApp)
288
291
  if(argv.withApi) {
289
292
  setupApiWs(httpServer, apiServer)
290
293
  setupApiSockJs(httpServer, apiServer)
291
294
  }
292
295
 
296
+ console.log("HTTP SERVER CREATED! INSTALLING!")
297
+
293
298
  httpServer.listen(ssrPort, ssrHost)
299
+
300
+ console.log("LISTENING ON ",`${ssrHost}:${ssrPort} link: http://${ssrHost}:${ssrPort}/`)
294
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/cli",
3
- "version": "0.5.27",
3
+ "version": "0.6.2",
4
4
  "description": "Live Change Framework - command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "homepage": "https://github.com/live-change/live-change-framework",
26
26
  "dependencies": {
27
- "@live-change/dao": "0.4.2",
28
- "@live-change/dao-sockjs": "^0.2.1",
29
- "@live-change/dao-websocket": "0.4.2",
27
+ "@live-change/dao": "0.4.6",
28
+ "@live-change/dao-sockjs": "0.4.5",
29
+ "@live-change/dao-websocket": "0.4.6",
30
30
  "@live-change/db-server": "0.5.4",
31
- "@live-change/framework": "^0.5.27",
32
- "@live-change/server": "^0.5.27",
33
- "@live-change/vue3-ssr": "0.2.4",
31
+ "@live-change/framework": "^0.6.2",
32
+ "@live-change/server": "^0.6.2",
33
+ "@live-change/vue3-ssr": "0.2.7",
34
34
  "dotenv": "^10.0.0",
35
35
  "express": "^4.17.1",
36
36
  "http-proxy-middleware": "2.0.1",
@@ -41,5 +41,5 @@
41
41
  "websocket": "^1.0.34",
42
42
  "yargs": "^17.3.0"
43
43
  },
44
- "gitHead": "8cdab8d362794c923e765193d2e786fb29587877"
44
+ "gitHead": "02153d427b43f1766ee50d90cb531f63adeb7b0b"
45
45
  }