@live-change/cli 0.5.24 → 0.5.25
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/bin/lcli.js +6 -1
- package/package.json +4 -4
package/bin/lcli.js
CHANGED
|
@@ -18,7 +18,8 @@ const {
|
|
|
18
18
|
setupApiWs,
|
|
19
19
|
setupDbServer,
|
|
20
20
|
setupDbClient,
|
|
21
|
-
setupApp
|
|
21
|
+
setupApp,
|
|
22
|
+
setupApiEndpoints
|
|
22
23
|
|
|
23
24
|
} = require("@live-change/server")
|
|
24
25
|
|
|
@@ -276,6 +277,10 @@ async function ssrServer(argv, dev) {
|
|
|
276
277
|
|
|
277
278
|
await ssrServer.start()
|
|
278
279
|
|
|
280
|
+
if(argv.withApi) {
|
|
281
|
+
setupApiEndpoints(expressApp, apiServer)
|
|
282
|
+
}
|
|
283
|
+
|
|
279
284
|
const httpServer = http.createServer(expressApp)
|
|
280
285
|
if(argv.withApi) {
|
|
281
286
|
setupApiWs(httpServer, apiServer)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.25",
|
|
4
4
|
"description": "Live Change Framework - command line interface",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@live-change/dao-sockjs": "^0.2.1",
|
|
29
29
|
"@live-change/dao-websocket": "0.4.1",
|
|
30
30
|
"@live-change/db-server": "0.5.4",
|
|
31
|
-
"@live-change/framework": "^0.5.
|
|
32
|
-
"@live-change/server": "^0.5.
|
|
31
|
+
"@live-change/framework": "^0.5.25",
|
|
32
|
+
"@live-change/server": "^0.5.25",
|
|
33
33
|
"@live-change/vue3-ssr": "0.2.2",
|
|
34
34
|
"dotenv": "^10.0.0",
|
|
35
35
|
"express": "^4.17.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"websocket": "^1.0.34",
|
|
42
42
|
"yargs": "^17.3.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "014a45f0a666820dc25eb728be2fe92834cb89ee"
|
|
45
45
|
}
|