@@ -268,12 +268,7 @@ gulp.task('styles', () => {
268268 < % _ } _ % >
269269 . pipe ( styles ( ) )
270270 . pipe ( gulp . dest ( '.tmp/app' ) ) ;
271- } ) ; < % if ( filters . ts ) { % >
272-
273- gulp . task ( 'copy:constant' , [ 'constant' ] , ( ) => {
274- return gulp . src ( `${ clientPath } /app/app.constant.js` , { dot : true } )
275- . pipe ( gulp . dest ( '.tmp/app' ) ) ;
276- } ) ; < % } % >
271+ } ) ;
277272
278273gulp . task ( 'transpile:server' , ( ) => {
279274 return gulp . src ( _ . union ( paths . server . scripts , paths . server . json ) )
@@ -286,8 +281,7 @@ gulp.task('lint:scripts', cb => runSequence(['lint:scripts:client', 'lint:script
286281gulp . task ( 'lint:scripts:client' , ( ) => {
287282 return gulp . src ( _ . union (
288283 paths . client . scripts ,
289- _ . map ( paths . client . test , blob => '!' + blob ) ,
290- [ `!${ clientPath } /app/app.constant.<%= scriptExt %>` ]
284+ _ . map ( paths . client . test , blob => '!' + blob )
291285 ) )
292286 . pipe ( lintClientScripts ( ) ) ;
293287} ) ;
@@ -370,7 +364,6 @@ gulp.task('serve', cb => {
370364 [
371365 'clean:tmp' ,
372366 'lint:scripts' ,
373- 'constant' ,
374367 'inject' ,
375368 'copy:fonts:dev' ,
376369 'env:all' < % if ( filters . ts ) { % > ,
@@ -388,7 +381,6 @@ gulp.task('serve:debug', cb => {
388381 [
389382 'clean:tmp' ,
390383 'lint:scripts' ,
391- 'constant' ,
392384 'inject' ,
393385 'copy:fonts:dev' ,
394386 'env:all' < % if ( filters . ts ) { % > ,
@@ -471,7 +463,7 @@ gulp.task('coverage:integration', () => {
471463// Downloads the selenium webdriver
472464gulp . task ( 'webdriver_update' , webdriver_update ) ;
473465
474- gulp . task ( 'test:e2e' , [ 'webpack:e2e' , 'constant' , ' env:all', 'env:test' , 'start:server' , 'webdriver_update' ] , cb => {
466+ gulp . task ( 'test:e2e' , [ 'webpack:e2e' , 'env:all' , 'env:test' , 'start:server' , 'webdriver_update' ] , cb => {
475467 gulp . src ( paths . client . e2e )
476468 . pipe ( protractor ( {
477469 configFile : 'protractor.conf.js' ,
@@ -480,7 +472,7 @@ gulp.task('test:e2e', ['webpack:e2e', 'constant', 'env:all', 'env:test', 'start:
480472 . on ( 'end' , ( ) => { process . exit ( ) } ) ;
481473} ) ;
482474
483- gulp . task ( 'test:client' , [ 'constant' ] , done => {
475+ gulp . task ( 'test:client' , done => {
484476 new KarmaServer ( {
485477 configFile : `${ __dirname } /${ paths . karma } ` ,
486478 singleRun : true
@@ -519,21 +511,6 @@ gulp.task('build', cb => {
519511
520512gulp . task ( 'clean:dist' , ( ) => del ( [ `${ paths . dist } /!(.git*|.openshift|Procfile)**` ] , { dot : true } ) ) ;
521513
522- gulp . task ( 'constant' , function ( ) {
523- let sharedConfig = require ( `./${ serverPath } /config/environment/shared` ) ;
524- return plugins . ngConstant ( {
525- name : '<%= scriptAppName %>.constants' ,
526- deps : [ ] ,
527- wrap : true ,
528- stream : true ,
529- constants : { appConfig : sharedConfig }
530- } )
531- . pipe ( plugins . rename ( {
532- basename : 'app.constant'
533- } ) )
534- . pipe ( gulp . dest ( `${ clientPath } /app/` ) )
535- } ) ;
536-
537514gulp . task ( 'build:images' , ( ) => {
538515 return gulp . src ( paths . client . images )
539516 . pipe ( plugins . imagemin ( {
0 commit comments