Skip to content

Commit d19d43a

Browse files
devversionmmalerba
authored andcommitted
chore: remove vendor task (#4244)
* Removes the unused `vendorTask` utility function in the `task_helpers` file.
1 parent 4ff9fda commit d19d43a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tools/gulp/util/task_helpers.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import * as child_process from 'child_process';
22
import * as fs from 'fs';
33
import * as gulp from 'gulp';
44
import * as path from 'path';
5-
import {NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT} from '../constants';
5+
import {PROJECT_ROOT} from '../constants';
66

77
/* Those imports lack typings. */
88
const gulpClean = require('gulp-clean');
9-
const gulpMerge = require('merge2');
109
const gulpRunSequence = require('run-sequence');
1110
const gulpSass = require('gulp-sass');
1211
const gulpSourcemaps = require('gulp-sourcemaps');
@@ -147,16 +146,6 @@ export function buildAppTask(appName: string) {
147146
};
148147
}
149148

150-
151-
/** Create a task that copies vendor files in the proper destination. */
152-
export function vendorTask(outDir = path.join(DIST_ROOT, 'vendor')) {
153-
return () => gulpMerge(
154-
NPM_VENDOR_FILES.map(pkg => {
155-
const glob = path.join(PROJECT_ROOT, 'node_modules', pkg, '**/*.+(js|js.map)');
156-
return gulp.src(glob).pipe(gulp.dest(path.join(outDir, pkg)));
157-
}));
158-
}
159-
160149
/**
161150
* Create a task that serves a given directory in the project.
162151
* The server rewrites all node_module/ or dist/ requests to the correct directory.

0 commit comments

Comments
 (0)