mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(cli): make clb web the primary web command
This commit is contained in:
1 parent
c6db9f0c4c
commit
47299a94cb
64 files changed
+264
-270
No files matched your search
@@ -3,17 +3,7 @@ import { spawnSync } from 'node:child_process'
|
||||
export function createChatlabStartCommand({ serverDir, backendPort, nodeExecutable = process.execPath }) {
|
||||
return {
|
||||
command: nodeExecutable,
|
||||
args: [
|
||||
'--watch',
|
||||
'--import',
|
||||
'tsx',
|
||||
'src/cli.ts',
|
||||
'start',
|
||||
'--headless',
|
||||
'--no-open',
|
||||
'--port',
|
||||
String(backendPort),
|
||||
],
|
||||
args: ['--watch', '--import', 'tsx', 'src/cli.ts', 'web', '--headless', '--no-open', '--port', String(backendPort)],
|
||||
options: {
|
||||
cwd: serverDir,
|
||||
stdio: ['ignore', 'pipe', 'pipe'],
|
||||
|
||||
@@ -19,7 +19,7 @@ test('web dev backend runs through the current Node executable with the tsx load
|
||||
'--import',
|
||||
'tsx',
|
||||
'src/cli.ts',
|
||||
'start',
|
||||
'web',
|
||||
'--headless',
|
||||
'--no-open',
|
||||
'--port',
|
||||
|
||||
Reference in new issue
Block a user