From d19d43afb4eca94378d24d7c2b6e2987a6d0f600 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 25 Apr 2017 19:03:56 +0200 Subject: [PATCH] chore: remove vendor task (#4244) * Removes the unused `vendorTask` utility function in the `task_helpers` file. --- tools/gulp/util/task_helpers.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tools/gulp/util/task_helpers.ts b/tools/gulp/util/task_helpers.ts index 500331ccdc0..77ee096a33c 100644 --- a/tools/gulp/util/task_helpers.ts +++ b/tools/gulp/util/task_helpers.ts @@ -2,11 +2,10 @@ import * as child_process from 'child_process'; import * as fs from 'fs'; import * as gulp from 'gulp'; import * as path from 'path'; -import {NPM_VENDOR_FILES, PROJECT_ROOT, DIST_ROOT} from '../constants'; +import {PROJECT_ROOT} from '../constants'; /* Those imports lack typings. */ const gulpClean = require('gulp-clean'); -const gulpMerge = require('merge2'); const gulpRunSequence = require('run-sequence'); const gulpSass = require('gulp-sass'); const gulpSourcemaps = require('gulp-sourcemaps'); @@ -147,16 +146,6 @@ export function buildAppTask(appName: string) { }; } - -/** Create a task that copies vendor files in the proper destination. */ -export function vendorTask(outDir = path.join(DIST_ROOT, 'vendor')) { - return () => gulpMerge( - NPM_VENDOR_FILES.map(pkg => { - const glob = path.join(PROJECT_ROOT, 'node_modules', pkg, '**/*.+(js|js.map)'); - return gulp.src(glob).pipe(gulp.dest(path.join(outDir, pkg))); - })); -} - /** * Create a task that serves a given directory in the project. * The server rewrites all node_module/ or dist/ requests to the correct directory.