dynamically require gulp files

pull/9535/head
Joao Moreno 2016-07-20 10:57:42 +02:00
parent 407259bdb0
commit e48ffc1d71
1 changed files with 4 additions and 4 deletions

View File

@ -28,6 +28,7 @@ const _ = require('underscore');
const assign = require('object-assign');
const monacodts = require('./build/monaco/api');
const fs = require('fs');
const glob = require('glob');
const rootDir = path.join(__dirname, 'src');
const options = require('./src/tsconfig.json').compilerOptions;
@ -256,7 +257,6 @@ gulp.task('mixin', function () {
.pipe(gulp.dest('.'));
});
require('./build/gulpfile.hygiene');
require('./build/gulpfile.vscode');
require('./build/gulpfile.editor');
require('./build/gulpfile.extensions');
const build = path.join(__dirname, 'build');
glob.sync('gulpfile.*.js', { cwd: build })
.forEach(f => require(`./build/${ f }`));