ones-fetch 1.4.0 → 1.4.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.
- package/package.json +1 -1
- package/public/launcher.vbs +1 -7
package/package.json
CHANGED
package/public/launcher.vbs
CHANGED
|
@@ -5,11 +5,5 @@ Set fso = CreateObject("Scripting.FileSystemObject")
|
|
|
5
5
|
scriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
|
|
6
6
|
projectRoot = fso.GetParentFolderName(scriptDir)
|
|
7
7
|
|
|
8
|
-
'
|
|
8
|
+
' 启动服务器(后台运行,服务器会自动打开浏览器)
|
|
9
9
|
WshShell.Run "cmd /c cd /d """ & projectRoot & """ && node src/server.mjs", 0, False
|
|
10
|
-
|
|
11
|
-
' 等待服务器启动
|
|
12
|
-
WScript.Sleep 1500
|
|
13
|
-
|
|
14
|
-
' 打开浏览器
|
|
15
|
-
WshShell.Run "http://localhost:3000", 1
|