2021-10-20 16:42:13 +00:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
2022-01-20 12:48:08 +00:00
|
|
|
title VSCode Web Serverless
|
2021-10-20 16:42:13 +00:00
|
|
|
|
2022-01-20 12:48:08 +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
|
2022-01-21 13:33:34 +00:00
|
|
|
call "%NODE%" scripts\code-web.js %*
|
2021-10-20 16:42:13 +00:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
2022-01-20 12:48:08 +00:00
|
|
|
endlocal
|