@live-change/cli 0.5.25 → 0.6.1

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 +14 -4
  2. package/package.json +7 -7
package/bin/lcli.js CHANGED
@@ -213,6 +213,8 @@ async function apiServer(argv) {
213
213
 
214
214
  const expressApp = express()
215
215
 
216
+ await setupApiEndpoints(expressApp, apiServer)
217
+
216
218
  const httpServer = http.createServer(expressApp)
217
219
 
218
220
  setupApiWs(httpServer, apiServer)
@@ -221,6 +223,7 @@ async function apiServer(argv) {
221
223
  httpServer.listen(apiPort, apiHost)
222
224
  console.log('Listening on port ' + apiPort)
223
225
  }
226
+
224
227
  async function ssrServer(argv, dev) {
225
228
  const { ssrRoot, ssrPort, ssrHost, apiHost, apiPort } = argv
226
229
 
@@ -258,6 +261,12 @@ async function ssrServer(argv, dev) {
258
261
  apiServer = await setupApiServer({ ...argv, fastAuth })
259
262
  }
260
263
 
264
+ if(argv.withApi) {
265
+ await setupApiEndpoints(expressApp, apiServer)
266
+ }
267
+
268
+ console.log("ENDPOINTS INSTALLED! CREATING SSR SERVER!")
269
+
261
270
  const ssrServer = new SsrServer(expressApp, manifest, {
262
271
  ...argv,
263
272
  dev,
@@ -274,12 +283,9 @@ async function ssrServer(argv, dev) {
274
283
  }
275
284
  )
276
285
  })
277
-
278
286
  await ssrServer.start()
279
287
 
280
- if(argv.withApi) {
281
- setupApiEndpoints(expressApp, apiServer)
282
- }
288
+ console.log("SSR INSTALLED! CREATING HTTP SERVER!")
283
289
 
284
290
  const httpServer = http.createServer(expressApp)
285
291
  if(argv.withApi) {
@@ -287,5 +293,9 @@ async function ssrServer(argv, dev) {
287
293
  setupApiSockJs(httpServer, apiServer)
288
294
  }
289
295
 
296
+ console.log("HTTP SERVER CREATED! INSTALLING!")
297
+
290
298
  httpServer.listen(ssrPort, ssrHost)
299
+
300
+ console.log("LISTENING ON ",`${ssrHost}:${ssrPort} link: http://${ssrHost}:${ssrPort}/`)
291
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/cli",
3
- "version": "0.5.25",
3
+ "version": "0.6.1",
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",
27
+ "@live-change/dao": "0.4.4",
28
28
  "@live-change/dao-sockjs": "^0.2.1",
29
- "@live-change/dao-websocket": "0.4.1",
29
+ "@live-change/dao-websocket": "0.4.4",
30
30
  "@live-change/db-server": "0.5.4",
31
- "@live-change/framework": "^0.5.25",
32
- "@live-change/server": "^0.5.25",
33
- "@live-change/vue3-ssr": "0.2.2",
31
+ "@live-change/framework": "^0.6.1",
32
+ "@live-change/server": "^0.6.1",
33
+ "@live-change/vue3-ssr": "0.2.6",
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": "014a45f0a666820dc25eb728be2fe92834cb89ee"
44
+ "gitHead": "64a9e476bdeec727ff5b8bedbaef65078f1b32f2"
45
45
  }