Skip to content

Commit

Permalink
Save 1.5 seconds from gulp startup time
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Dec 14, 2020
1 parent 5f20ce9 commit e56597a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ const minimist = require('minimist');
const { compileBuildTask } = require('./gulpfile.compile');
const { compileExtensionsBuildTask } = require('./gulpfile.extensions');

const productionDependencies = deps.getProductionDependencies(path.dirname(__dirname));

// Build
const vscodeEntryPoints = _.flatten([
buildfile.entrypoint('vs/workbench/workbench.desktop.main'),
Expand Down Expand Up @@ -202,6 +200,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op

const jsFilter = util.filter(data => !data.isDirectory() && /\.js$/.test(data.path));
const root = path.resolve(path.join(__dirname, '..'));
const productionDependencies = deps.getProductionDependencies(root);
const dependenciesSrc = _.flatten(productionDependencies.map(d => path.relative(root, d.path)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`]));

const deps = gulp.src(dependenciesSrc, { base: '.', dot: true })
Expand Down

0 comments on commit e56597a

Please sign in to comment.