mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
1.9.0 web - new implementation
This commit is contained in:
15
tools/wsemulator/run.ps1
Normal file
15
tools/wsemulator/run.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
|
||||
|
||||
# build web
|
||||
$webfilesbuilder = $ScriptDir + "\..\webfilesbuilder"
|
||||
node $webfilesbuilder\node_modules\gulp\bin\gulp.js --cwd $webfilesbuilder
|
||||
|
||||
# run chrome
|
||||
$pathToChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
|
||||
$tempFolder = '--user-data-dir=c:\temp'
|
||||
$startmode = '--remote-debugging-port=9222 --disable-web-security --disable-gpu'
|
||||
$startPage = $ScriptDir + "\..\..\src\websrc\temp\index.html"
|
||||
Start-Process -FilePath $pathToChrome -ArgumentList $tempFolder, $startmode, $startPage
|
||||
|
||||
# run ws fake server
|
||||
node wserver.js
|
||||
Reference in New Issue
Block a user