Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 922d1e6

Browse files
Nishad BakshiNishad Bakshi
authored andcommitted
Put skipBinary into it's own variable
1 parent 0090340 commit 922d1e6

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

slushfile.js

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ var encoding = {
2828
encoding: 'utf8'
2929
};
3030

31+
var skipBinary = {
32+
skipBinary: true
33+
};
34+
3135
function 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

Comments
 (0)