From 336b300fc4770fd5894e0d0384c7472b3ad707b9 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Fri, 18 Mar 2016 11:07:01 -0700 Subject: [PATCH] Add deploy script for documentation --- gulpfile.js | 11 +++++++++++ package.json | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index c7e8bd09..3c8093c0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -114,6 +114,17 @@ gulp.task('server', ['build'], function() { }); }); +// Uploads the documentation to the live server +gulp.task('deploy:docs', ['build'], function() { + return gulp.src('./_build/**') + .pipe($.prompt.confirm('Make sure everything looks right before you deploy.')) + .pipe($.rsync({ + root: './_build', + hostname: 'deployer@72.32.134.77', + destination: '/home/deployer/sites/foundation-emails-march16' + })); +}); + // Runs the entire build process gulp.task('build', function(cb) { sequence('clean', ['copy', 'html', 'sass', 'javascript:docs'], cb); diff --git a/package.json b/package.json index 9593126b..34f13193 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "author": "ZURB (http://foundation.zurb.com)", "scripts": { "start": "gulp", - "test:visual": "gulp test" + "test:visual": "gulp test", + "deploy:docs": "gulp deploy:docs" }, "repository": "https://github.com/zurb/foundation-emails", "bugs": "https://github.com/zurb/foundation-emails/issues", @@ -27,6 +28,8 @@ "gulp-inject-string": "^1.1.0", "gulp-inline-css": "^2.0.0", "gulp-load-plugins": "^1.0.0-rc.1", + "gulp-prompt": "^0.1.2", + "gulp-rsync": "0.0.5", "gulp-sass": "^2.1.0", "gulp-sass-lint": "^1.1.1", "gulp-sourcemaps": "^1.6.0", -- 2.47.3