cleanup extensions menu

fixes #14384
This commit is contained in:
Joao Moreno
2016-10-31 11:27:40 +01:00
parent 63806e74d9
commit d2fa62d13d
3 changed files with 9 additions and 18 deletions

View File

@@ -58,7 +58,7 @@ var ALL_EDITOR_TASKS = [
'tslint',
'hygiene',
];
var runningEditorTasks = process.argv.length > 2 && 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`);
@@ -67,5 +67,5 @@ if (runningEditorTasks) {
// Load all the gulpfiles only if running tasks other than the editor tasks
const build = path.join(__dirname, 'build');
require('glob').sync('gulpfile.*.js', { cwd: build })
.forEach(f => require(`./build/${ f }`));
.forEach(f => require(`./build/${f}`));
}