2015-11-13 13:39:38 +00:00
|
|
|
@echo off
|
|
|
|
title VSCode Dev
|
|
|
|
|
2015-11-26 08:29:43 +00:00
|
|
|
pushd %~dp0\..
|
|
|
|
|
|
|
|
:: Node modules
|
|
|
|
if not exist node_modules call .\scripts\npm.bat install
|
|
|
|
|
|
|
|
:: Get electron
|
|
|
|
node .\node_modules\gulp\bin\gulp.js electron
|
|
|
|
|
2015-11-26 09:07:11 +00:00
|
|
|
:: Build
|
|
|
|
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
|
|
|
|
2015-11-26 08:29:43 +00:00
|
|
|
:: Configuration
|
2015-11-13 13:39:38 +00:00
|
|
|
set NODE_ENV=development
|
|
|
|
set VSCODE_DEV=1
|
2015-12-01 14:26:04 +00:00
|
|
|
set ELECTRON_DEFAULT_ERROR_MODE=1
|
2015-11-13 13:39:38 +00:00
|
|
|
set ELECTRON_ENABLE_LOGGING=1
|
|
|
|
set ELECTRON_ENABLE_STACK_DUMPING=1
|
|
|
|
|
2015-11-26 08:29:43 +00:00
|
|
|
:: Launch Code
|
2015-11-26 08:03:29 +00:00
|
|
|
.\.build\electron\CodeOSS.exe . %*
|
2015-11-13 13:39:38 +00:00
|
|
|
popd
|