Skip to content

Commit

Permalink
run npm install on scripts/code
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 26, 2015
1 parent b845a93 commit 4a85ac5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
12 changes: 10 additions & 2 deletions scripts/code.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
@echo off
title VSCode Dev

pushd %~dp0\..

:: Node modules
if not exist node_modules call .\scripts\npm.bat install

:: Get electron
node .\node_modules\gulp\bin\gulp.js electron

:: Configuration
set NODE_ENV=development
set VSCODE_DEV=1
set ELECTRON_ENABLE_LOGGING=1
set ELECTRON_ENABLE_STACK_DUMPING=1

pushd %~dp0\..
node .\node_modules\gulp\bin\gulp.js electron
:: Launch Code
.\.build\electron\CodeOSS.exe . %*
popd
34 changes: 22 additions & 12 deletions scripts/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,27 @@ else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi

# Configuration
export NODE_ENV=development
export VSCODE_DEV=1
export ELECTRON_ENABLE_LOGGING=1
export ELECTRON_ENABLE_STACK_DUMPING=1
function code() {
cd $ROOT

# Prepare
cd $ROOT ; node node_modules/gulp/bin/gulp.js electron
# Node modules
test -d node_modules || ./scripts/npm.sh install

if [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
else
cd $ROOT; ./.build/electron/electron . $*
fi
# Get electron
node node_modules/gulp/bin/gulp.js electron

# Configuration
export NODE_ENV=development
export VSCODE_DEV=1
export ELECTRON_ENABLE_LOGGING=1
export ELECTRON_ENABLE_STACK_DUMPING=1

# Launch Code
if [[ "$OSTYPE" == "darwin"* ]]; then
./.build/electron/Electron.app/Contents/MacOS/Electron . $*
else
./.build/electron/electron . $*
fi
}

code

0 comments on commit 4a85ac5

Please sign in to comment.