Skip to content

Commit

Permalink
code-cli: update built-in extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Aug 28, 2018
1 parent 43676d0 commit 0561bf9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/code-cli.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ set CODE=".build\electron\%NAMESHORT%"
node build\lib\electron.js
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron

:: Manage build-in extensions
if "%1"=="--builtin" goto builtin

:: Sync built-in extensions
node build\lib\builtInExtensions.js

:: Build
if not exist out node .\node_modules\gulp\bin\gulp.js compile

Expand All @@ -30,6 +36,13 @@ set ELECTRON_ENABLE_STACK_DUMPING=1

:: Launch Code
%CODE% --inspect=5874 out\cli.js . %*
goto end

:builtin
%CODE% build/builtin

:end

popd

endlocal
10 changes: 10 additions & 0 deletions scripts/code-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ function code() {
# Get electron
node build/lib/electron.js || ./node_modules/.bin/gulp electron


# Manage built-in extensions
if [[ "$1" == "--builtin" ]]; then
exec "$CODE" build/builtin
return
fi

# Sync built-in extensions
node build/lib/builtInExtensions.js

# Build
test -d out || ./node_modules/.bin/gulp compile

Expand Down

0 comments on commit 0561bf9

Please sign in to comment.