chore: remove vendor task (#4244)

* Removes the unused `vendorTask` utility function in the `task_helpers` file.
This commit is contained in:
Paul Gschwendtner
2017-04-25 19:03:56 +02:00
committed by mmalerba
parent 4ff9fdabce
commit d19d43afb4
+1 -12
View File
@@ -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.