File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@ echo off
22title VSCode Dev
33
4+ pushd %~dp0 \..
5+
6+ :: Node modules
7+ if not exist node_modules call .\scripts\npm.bat install
8+
9+ :: Get electron
10+ node .\node_modules\gulp\bin\gulp.js electron
11+
12+ :: Configuration
413set NODE_ENV = development
514set VSCODE_DEV = 1
615set ELECTRON_ENABLE_LOGGING = 1
716set ELECTRON_ENABLE_STACK_DUMPING = 1
817
9- pushd %~dp0 \..
10- node .\node_modules\gulp\bin\gulp.js electron
18+ :: Launch Code
1119.\.build\electron\CodeOSS.exe . %*
1220popd
Original file line number Diff line number Diff line change 77 ROOT=$( dirname $( dirname $( readlink -f $0 ) ) )
88fi
99
10- # Configuration
11- export NODE_ENV=development
12- export VSCODE_DEV=1
13- export ELECTRON_ENABLE_LOGGING=1
14- export ELECTRON_ENABLE_STACK_DUMPING=1
10+ function code() {
11+ cd $ROOT
1512
16- # Prepare
17- cd $ROOT ; node node_modules/gulp/bin/gulp.js electron
13+ # Node modules
14+ test -d node_modules || ./scripts/npm.sh install
1815
19- if [[ " $OSTYPE " == " darwin" * ]]; then
20- cd $ROOT ; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
21- else
22- cd $ROOT ; ./.build/electron/electron . $*
23- fi
16+ # Get electron
17+ node node_modules/gulp/bin/gulp.js electron
18+
19+ # Configuration
20+ export NODE_ENV=development
21+ export VSCODE_DEV=1
22+ export ELECTRON_ENABLE_LOGGING=1
23+ export ELECTRON_ENABLE_STACK_DUMPING=1
24+
25+ # Launch Code
26+ if [[ " $OSTYPE " == " darwin" * ]]; then
27+ ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
28+ else
29+ ./.build/electron/electron . $*
30+ fi
31+ }
32+
33+ code
You can’t perform that action at this time.
0 commit comments