init
This commit is contained in:
11
run.bat
Normal file
11
run.bat
Normal file
@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
echo 启动开发环境: Client (Vite) + Server (Bun)...
|
||||
|
||||
:: %~dp0 是一个特殊变量,代表当前 .bat 文件所在的文件夹路径
|
||||
:: 这使得此脚本可以被移动,只要它和 client/server 文件夹保持相对位置不变
|
||||
|
||||
set "CLIENT_DIR=%~dp0client-threejs"
|
||||
set "SERVER_DIR=%~dp0server"
|
||||
|
||||
:: 使用 -d 参数指定每个标签页的工作目录
|
||||
wt.exe --title "Client" -d "%CLIENT_DIR%" powershell -NoExit -Command "vite --host" ; new-tab --title "Server" -d "%SERVER_DIR%" powershell -NoExit -Command "bun run index.ts"
|
||||
Reference in New Issue
Block a user