void/scripts/code-web.bat

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
388 B
Batchfile
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
@echo off
setlocal
title VSCode Web Serverless
pushd %~dp0\..
:: Sync built-in extensions
call npm run download-builtin-extensions
2024-09-11 02:37:36 +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 npm run gulp node
2024-09-11 02:37:36 +00:00
)
:: Launch Server
call "%NODE%" scripts\code-web.js %*
popd
endlocal