From 1d106e5afe0cb08ed7fb8998aba673d0cd4282c4 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 24 Jan 2018 09:38:09 +0100 Subject: [PATCH] rename gulp tasks --- build/gulpfile.vscode.js | 11 ++++------- scripts/code.bat | 2 +- scripts/code.sh | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index b0ff0a2a732..9ac087e38d4 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -585,18 +585,15 @@ gulp.task('generate-vscode-configuration', () => { }); //#region Built-In Extensions -gulp.task('clean-builtInExtensions', util.rimraf('.build/builtInExtensions')); - -gulp.task('builtInExtensions', ['clean-builtInExtensions'], function() { +gulp.task('clean-builtin-extensions', util.rimraf('.build/builtInExtensions')); +gulp.task('download-builtin-extensions', ['clean-builtin-extensions'], function () { const marketplaceExtensions = es.merge(...builtInExtensions.map(extension => { return ext.fromMarketplace(extension.name, extension.version) .pipe(rename(p => p.dirname = `${extension.name}/${p.dirname}`)); })); - return ( - marketplaceExtensions + return marketplaceExtensions .pipe(util.setExecutableBit(['**/*.sh'])) - .pipe(vfs.dest('.build/builtInExtensions')) - ); + .pipe(vfs.dest('.build/builtInExtensions')); }); //#endregion diff --git a/scripts/code.bat b/scripts/code.bat index 4917d3b9a8b..b23ee223546 100644 --- a/scripts/code.bat +++ b/scripts/code.bat @@ -19,7 +19,7 @@ if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron :: Get built-in extensions node build\lib\builtInExtensions.js -if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js builtInExtensions +if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js download-builtin-extensions :: Build if not exist out node .\node_modules\gulp\bin\gulp.js compile diff --git a/scripts/code.sh b/scripts/code.sh index 089d380c1b5..7f52ded6fe5 100755 --- a/scripts/code.sh +++ b/scripts/code.sh @@ -25,7 +25,7 @@ function code() { node build/lib/electron.js || ./node_modules/.bin/gulp electron # Get built-in extensions - node build/lib/builtInExtensions.js || ./node_modules/.bin/gulp builtInExtensions + node build/lib/builtInExtensions.js || ./node_modules/.bin/gulp download-builtin-extensions # Build test -d out || ./node_modules/.bin/gulp compile