@@ -24,7 +24,9 @@ import makeWebpackConfig from './webpack.make';
2424var plugins = gulpLoadPlugins ( ) ;
2525var config ;
2626const webpackDevConfig = makeWebpackConfig ( { DEV : true } ) ;
27+ const webpackE2eConfig = makeWebpackConfig ( { E2E : true } ) ;
2728const webpackDistConfig = makeWebpackConfig ( { BUILD : true } ) ;
29+ const webpackTestConfig = makeWebpackConfig ( { TEST : true } ) ;
2830
2931const clientPath = 'client' ;
3032const serverPath = 'server' ;
@@ -202,7 +204,7 @@ gulp.task('inject:tsconfig', () => {
202204 `${ clientPath } /**/!(*.spec|*.mock).ts` ,
203205 `!${ clientPath } /bower_components/**/*` ,
204206 `typings/main.d.ts`
205- ] ,
207+ ] ,
206208 './tsconfig.client.json' ) ;
207209} ) ;
208210
@@ -211,7 +213,7 @@ gulp.task('inject:tsconfigTest', () => {
211213 `${ clientPath } /**/+(*.spec|*.mock).ts` ,
212214 `!${ clientPath } /bower_components/**/*` ,
213215 `typings/main.d.ts`
214- ] ,
216+ ] ,
215217 './tsconfig.client.test.json' ) ;
216218} ) ; < % } % >
217219
@@ -262,6 +264,18 @@ gulp.task('webpack:dist', function() {
262264 return gulp . src ( webpackDistConfig . entry . app )
263265 . pipe ( webpack ( webpackDistConfig ) )
264266 . pipe ( gulp . dest ( `${ paths . dist } /client` ) ) ;
267+ } ) ;
268+
269+ gulp . task ( 'webpack:test' , function ( ) {
270+ return gulp . src ( webpackTestConfig . entry . app )
271+ . pipe ( webpack ( webpackTestConfig ) )
272+ . pipe ( gulp . dest ( '.tmp' ) ) ;
273+ } ) ;
274+
275+ gulp . task ( 'webpack:e2e' , function ( ) {
276+ return gulp . src ( webpackE2eConfig . entry . app )
277+ . pipe ( webpack ( webpackE2eConfig ) )
278+ . pipe ( gulp . dest ( '.tmp' ) ) ;
265279} ) ; < % if ( filters . ts ) { % >
266280
267281// Install DefinitelyTyped TypeScript definition files
@@ -480,7 +494,7 @@ gulp.task('coverage:integration', () => {
480494// Downloads the selenium webdriver
481495gulp . task ( 'webdriver_update' , webdriver_update ) ;
482496
483- gulp . task ( 'test:e2e' , [ 'env:all' , 'env:test' , 'start:server' , 'webdriver_update' ] , cb => {
497+ gulp . task ( 'test:e2e' , [ 'webpack:e2e' , 'constant' , ' env:all', 'env:test' , 'start:server' , 'webdriver_update' ] , cb => {
484498 gulp . src ( paths . client . e2e )
485499 . pipe ( protractor ( {
486500 configFile : 'protractor.conf.js' ,
0 commit comments