From 5b83ca15b99241050e53d73b58d3a545980794b0 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Wed, 2 Dec 2015 15:06:39 -0800 Subject: [PATCH] Refine file handling in Gulp version bump task --- gulp/deploy.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gulp/deploy.js b/gulp/deploy.js index afcf93024..ac3d4e101 100644 --- a/gulp/deploy.js +++ b/gulp/deploy.js @@ -13,7 +13,6 @@ var octophant = require('octophant'); var VERSIONED_FILES = [ 'bower.json', 'composer.json', - 'docs/pages/*.md', 'js/foundation.core.js', 'meteor-README.md', 'package.js', @@ -29,14 +28,14 @@ gulp.task('deploy', function(cb) { // Bumps the version number in any file that has one gulp.task('deploy:version', function() { - return gulp.src(VERSIONED_FILES) + return gulp.src(VERSIONED_FILES, { base: process.cwd() }) .pipe(prompt({ type: 'input', name: 'version', - message: 'What version are we moving to?' + message: 'What version are we moving to? (Current version is ' + CURRENT_VERSION + ')' }, setVersionNumber)) .pipe(replace(CURRENT_VERSION, NEXT_VERSION)) - .pipe('.'); + .pipe(gulp.dest('.')); }); // Generates compiled CSS and JS files and puts them in the dist/ folder -- 2.47.3