});
});
+// 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);
"author": "ZURB <foundation@zurb.com> (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",
"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",