@@ -2,11 +2,10 @@ import * as child_process from 'child_process';
22import * as fs from 'fs' ;
33import * as gulp from 'gulp' ;
44import * 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. */
88const gulpClean = require ( 'gulp-clean' ) ;
9- const gulpMerge = require ( 'merge2' ) ;
109const gulpRunSequence = require ( 'run-sequence' ) ;
1110const gulpSass = require ( 'gulp-sass' ) ;
1211const 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