@@ -28,6 +28,10 @@ var encoding = {
2828 encoding : 'utf8'
2929} ;
3030
31+ var skipBinary = {
32+ skipBinary : true
33+ } ;
34+
3135function printVersionWarning ( ) {
3236 if ( npmVersion && npmVersion !== pkgSettings . version . trim ( ) ) {
3337 process . stdout . write ( '\n------------------------------------\n' . red ) ;
@@ -519,27 +523,13 @@ gulp.task('init', ['checkForUpdates'], function(done) {
519523 }
520524
521525 } ) )
522- . pipe ( replace ( '@slush-version' , pkgSettings . version . trim ( ) , {
523- skipBinary : true
524- } ) )
525- . pipe ( replace ( '@sample-app-name' , answers . nameDashed , {
526- skipBinary : true
527- } ) )
528- . pipe ( replace ( '@sample-app-role' , answers . nameDashed + '-role' , {
529- skipBinary : true
530- } ) )
531- . pipe ( replace ( '@node-port' , answers . nodePort , {
532- skipBinary : true
533- } ) )
534- . pipe ( replace ( '@ml-http-port' , answers . appPort , {
535- skipBinary : true
536- } ) )
537- . pipe ( replace ( '@ml-xcc-port' , answers . xccPort || answers . appPort , {
538- skipBinary : true
539- } ) )
540- . pipe ( replace ( '@ml-host' , answers . marklogicHost , {
541- skipBinary : true
542- } ) )
526+ . pipe ( replace ( '@slush-version' , pkgSettings . version . trim ( ) , skipBinary ) )
527+ . pipe ( replace ( '@sample-app-name' , answers . nameDashed , skipBinary ) )
528+ . pipe ( replace ( '@sample-app-role' , answers . nameDashed + '-role' , skipBinary ) )
529+ . pipe ( replace ( '@node-port' , answers . nodePort , skipBinary ) )
530+ . pipe ( replace ( '@ml-http-port' , answers . appPort , skipBinary ) )
531+ . pipe ( replace ( '@ml-xcc-port' , answers . xccPort || answers . appPort , skipBinary ) )
532+ . pipe ( replace ( '@ml-host' , answers . marklogicHost , skipBinary ) )
543533 . pipe ( gulp . dest ( './' ) ) // Relative to cwd
544534 . on ( 'end' , function ( ) {
545535 done ( ) ; // Finished!
0 commit comments