@@ -2,11 +2,10 @@ import * as child_process from 'child_process';
2
2
import * as fs from 'fs' ;
3
3
import * as gulp from 'gulp' ;
4
4
import * as path from 'path' ;
5
- import { NPM_VENDOR_FILES , PROJECT_ROOT , DIST_ROOT } from '../constants' ;
5
+ import { PROJECT_ROOT } from '../constants' ;
6
6
7
7
/* Those imports lack typings. */
8
8
const gulpClean = require ( 'gulp-clean' ) ;
9
- const gulpMerge = require ( 'merge2' ) ;
10
9
const gulpRunSequence = require ( 'run-sequence' ) ;
11
10
const gulpSass = require ( 'gulp-sass' ) ;
12
11
const gulpSourcemaps = require ( 'gulp-sourcemaps' ) ;
@@ -147,16 +146,6 @@ export function buildAppTask(appName: string) {
147
146
} ;
148
147
}
149
148
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
-
160
149
/**
161
150
* Create a task that serves a given directory in the project.
162
151
* The server rewrites all node_module/ or dist/ requests to the correct directory.
0 commit comments