Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dima <alexdima@microsoft.com>2016-10-20 16:30:53 +0300
committerAlex Dima <alexdima@microsoft.com>2016-10-20 16:30:53 +0300
commitd7930ec63d48c411baa2b4ec473aa0a98ab89541 (patch)
tree36253e63e20ccce325876cad4b987f2d0bf6fc19 /gulpfile.js
parent05c0eee67578a5dbac436a8790e2130e6d411073 (diff)
Fix issue in util.setExecutableBit
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cb425f3016a..47e5bc20f07 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -38,6 +38,15 @@ gulp.task('compile-build', ['compile-client-build', 'compile-extensions-build'])
gulp.task('watch-build', ['watch-client-build', 'watch-extensions-build']);
var ALL_EDITOR_TASKS = [
+ // Always defined tasks
+ 'clean-client',
+ 'compile-client',
+ 'watch-client',
+ 'clean-client-build',
+ 'compile-client-build',
+ 'watch-client-build',
+
+ // Editor tasks (defined in gulpfile.editor)
'clean-optimized-editor',
'optimize-editor',
'clean-minified-editor',
@@ -46,9 +55,7 @@ var ALL_EDITOR_TASKS = [
'editor-distro',
'analyze-editor-distro'
];
-var runningEditorTasks = process.argv.slice(2).every(function(arg) {
- return (ALL_EDITOR_TASKS.indexOf(arg) !== -1);
-});
+var runningEditorTasks = process.argv.length > 2 && process.argv.slice(2).every(function(arg) { return (ALL_EDITOR_TASKS.indexOf(arg) !== -1); });
if (runningEditorTasks) {
require(`./build/gulpfile.editor`);