From: Geoff Kimball Date: Wed, 2 Dec 2015 23:06:39 +0000 (-0800) Subject: Refine file handling in Gulp version bump task X-Git-Tag: v6.0.5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b83ca15b99241050e53d73b58d3a545980794b0;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Refine file handling in Gulp version bump task --- 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