vscode/scripts/code-web.bat

25 lines
382 B
Batchfile
Raw Normal View History

2021-10-20 16:42:13 +00:00
@echo off
setlocal
title VSCode Web Serverless
2021-10-20 16:42:13 +00:00
pushd %~dp0\..
2021-10-20 16:42:13 +00:00
:: Sync built-in extensions
call yarn download-builtin-extensions
2022-01-21 14:15:12 +00:00
:: Node executable
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
if not exist "%NODE%" (
:: Download nodejs executable for remote
call yarn gulp node
)
2021-10-20 16:42:13 +00:00
:: Launch Server
call "%NODE%" scripts\code-web.js %*
2021-10-20 16:42:13 +00:00
popd
endlocal