@live-change/cli 0.5.25 → 0.5.27
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 +7 -4
- package/package.json +6 -6
package/bin/lcli.js
CHANGED
|
@@ -213,6 +213,8 @@ async function apiServer(argv) {
|
|
|
213
213
|
|
|
214
214
|
const expressApp = express()
|
|
215
215
|
|
|
216
|
+
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,10 @@ async function ssrServer(argv, dev) {
|
|
|
258
261
|
apiServer = await setupApiServer({ ...argv, fastAuth })
|
|
259
262
|
}
|
|
260
263
|
|
|
264
|
+
if(argv.withApi) {
|
|
265
|
+
setupApiEndpoints(expressApp, apiServer)
|
|
266
|
+
}
|
|
267
|
+
|
|
261
268
|
const ssrServer = new SsrServer(expressApp, manifest, {
|
|
262
269
|
...argv,
|
|
263
270
|
dev,
|
|
@@ -277,10 +284,6 @@ async function ssrServer(argv, dev) {
|
|
|
277
284
|
|
|
278
285
|
await ssrServer.start()
|
|
279
286
|
|
|
280
|
-
if(argv.withApi) {
|
|
281
|
-
setupApiEndpoints(expressApp, apiServer)
|
|
282
|
-
}
|
|
283
|
-
|
|
284
287
|
const httpServer = http.createServer(expressApp)
|
|
285
288
|
if(argv.withApi) {
|
|
286
289
|
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.27",
|
|
4
4
|
"description": "Live Change Framework - command line interface",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@live-change/dao": "0.4.2",
|
|
28
28
|
"@live-change/dao-sockjs": "^0.2.1",
|
|
29
|
-
"@live-change/dao-websocket": "0.4.
|
|
29
|
+
"@live-change/dao-websocket": "0.4.2",
|
|
30
30
|
"@live-change/db-server": "0.5.4",
|
|
31
|
-
"@live-change/framework": "^0.5.
|
|
32
|
-
"@live-change/server": "^0.5.
|
|
33
|
-
"@live-change/vue3-ssr": "0.2.
|
|
31
|
+
"@live-change/framework": "^0.5.27",
|
|
32
|
+
"@live-change/server": "^0.5.27",
|
|
33
|
+
"@live-change/vue3-ssr": "0.2.4",
|
|
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": "
|
|
44
|
+
"gitHead": "8cdab8d362794c923e765193d2e786fb29587877"
|
|
45
45
|
}
|