@@ -108,23 +108,17 @@ function sortModulesFirst(a, b) {
108108 * Reusable pipelines
109109 ********************/
110110
111- let lintClientScripts = lazypipe ( ) < % if ( filters . coffee ) { % >
112- . pipe ( plugins . coffeelint )
113- . pipe ( plugins . coffeelint . reporter ) ; < % } else { % >
111+ let lintClientScripts = lazypipe ( )
114112 . pipe ( plugins . jshint , `${ clientPath } /.jshintrc` )
115- . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ; < % } % >
113+ . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ;
116114
117- let lintServerScripts = lazypipe ( ) < % if ( filters . coffee ) { % >
118- . pipe ( plugins . coffeelint )
119- . pipe ( plugins . coffeelint . reporter ) ; < % } else { % >
115+ let lintServerScripts = lazypipe ( )
120116 . pipe ( plugins . jshint , `${ serverPath } /.jshintrc` )
121- . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ; < % } % >
117+ . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ;
122118
123- let lintServerTestScripts = lazypipe ( ) < % if ( filters . coffee ) { % >
124- . pipe ( plugins . coffeelint )
125- . pipe ( plugins . coffeelint . reporter ) ; < % } else { % >
119+ let lintServerTestScripts = lazypipe ( )
126120 . pipe ( plugins . jshint , `${ serverPath } /.jshintrc-spec` )
127- . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ; < % } % >
121+ . pipe ( plugins . jshint . reporter , 'jshint-stylish' ) ;
128122
129123let styles = lazypipe ( )
130124 . pipe ( plugins . sourcemaps . init ) < % if ( filters . stylus ) { % >
@@ -135,23 +129,21 @@ let styles = lazypipe()
135129 . pipe ( plugins . sass ) < % } if ( filters . less ) { % >
136130 . pipe ( plugins . less ) < % } % >
137131 . pipe ( plugins . autoprefixer , { browsers : [ 'last 1 version' ] } )
138- . pipe ( plugins . sourcemaps . write , '.' ) ; < % if ( filters . babel || filters . coffee ) { % >
132+ . pipe ( plugins . sourcemaps . write , '.' ) ;
139133
140134let transpileServer = lazypipe ( )
141135 . pipe ( plugins . sourcemaps . init ) < % if ( filters . babel ) { % >
142136 . pipe ( plugins . babel , {
143137 optional : [ 'runtime' ]
144- } ) < % } else { % >
145- . pipe ( plugins . coffee , { bare : true } ) < % } % >
138+ } ) < % } % >
146139 . pipe ( plugins . sourcemaps . write , '.' ) ;
147140
148141let transpileClient = lazypipe ( )
149142 . pipe ( plugins . sourcemaps . init ) < % if ( filters . babel ) { % >
150143 . pipe ( plugins . babel , {
151144 optional : [ 'es7.classProperties' ]
152- } ) < % } else { % >
153- . pipe ( plugins . coffee , { bare : true } ) < % } % >
154- . pipe ( plugins . sourcemaps . write , '.' ) ; < % } % >
145+ } ) < % } % >
146+ . pipe ( plugins . sourcemaps . write , '.' ) ;
155147
156148let mocha = lazypipe ( )
157149 . pipe ( plugins . mocha , {
@@ -259,13 +251,13 @@ gulp.task('styles', () => {
259251 return gulp . src ( paths . client . mainStyle )
260252 . pipe ( styles ( ) )
261253 . pipe ( gulp . dest ( '.tmp/app' ) ) ;
262- } ) ; < % if ( filters . babel || filters . coffee ) { % >
254+ } ) ;
263255
264256gulp . task ( 'transpile:client' , ( ) => {
265257 return gulp . src ( paths . client . scripts )
266258 . pipe ( transpileClient ( ) )
267259 . pipe ( gulp . dest ( '.tmp' ) ) ;
268- } ) ; < % } % >
260+ } ) ;
269261
270262gulp . task ( 'transpile:server' , ( ) => {
271263 return gulp . src ( _ . union ( paths . server . scripts , paths . server . json ) )
@@ -342,9 +334,9 @@ gulp.task('watch', () => {
342334 . pipe ( plugins . livereload ( ) ) ;
343335
344336 plugins . watch ( paths . client . scripts ) //['inject:js']
345- . pipe ( plugins . plumber ( ) ) < % if ( filters . babel || filters . coffee ) { % >
337+ . pipe ( plugins . plumber ( ) )
346338 . pipe ( transpileClient ( ) )
347- . pipe ( gulp . dest ( '.tmp' ) ) < % } % >
339+ . pipe ( gulp . dest ( '.tmp' ) )
348340 . pipe ( plugins . livereload ( ) ) ;
349341
350342 plugins . watch ( _ . union ( paths . server . scripts , testFiles ) )
@@ -358,9 +350,8 @@ gulp.task('watch', () => {
358350gulp . task ( 'serve' , cb => {
359351 runSequence ( [ 'clean:tmp' , 'constant' ] ,
360352 [ 'lint:scripts' , 'inject' < % if ( filters . jade ) { % > , 'jade' < % } % > ] ,
361- [ 'wiredep:client' ] , < % if ( filters . babel || filters . coffee ) { % >
362- [ 'transpile:client' , 'styles' ] , < % } else { % >
363- 'styles' , < % } % >
353+ [ 'wiredep:client' ] ,
354+ [ 'transpile:client' , 'styles' ] ,
364355 [ 'start:server' , 'start:client' ] ,
365356 'watch' ,
366357 cb ) ;
0 commit comments