From 7cf70a6dca8c52fedd206c5c5915c54ad6578687 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Tue, 22 Mar 2016 19:49:53 -0700 Subject: [PATCH] Update deploy process to send CSS ZIP file to marketing site server --- gulpfile.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2cfbade5..e1cb2a97 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -161,25 +161,37 @@ gulp.task('templates', function() { .pipe(gulp.dest('.templates')); }); -gulp.task('download:build', ['sass:foundation', 'templates'], function() { - gulp.src('test/visual/_template.html', { base: 'test/visual' }) +gulp.task('download:build:index', function() { + return gulp.src('test/visual/_template.html', { base: 'test/visual' }) .pipe($.injectString.replace('<%= contents %>', '')) .pipe($.rename('index.html')) .pipe(gulp.dest('.download')); +}); - gulp.src('.templates/*.html') +gulp.task('download:build:templates', ['templates'], function() { + return gulp.src('.templates/*.html') .pipe(gulp.dest('.download/templates')); +}); +gulp.task('download:build:css', ['sass:foundation'], function() { return gulp.src('_build/assets/css/foundation.css') .pipe(gulp.dest('.download/css')); -}); +}) -gulp.task('download', ['download:build'], function(done) { - gulp.src('.download/**/*') +gulp.task('download:build', ['download:build:index', 'download:build:templates', 'download:build:css'], function() { + return gulp.src('.download/**/*') .pipe($.zip('foundation-emails.zip')) .pipe(gulp.dest('.')); }); +gulp.task('download', ['download:build'], function(done) { + return gulp.src('foundation-emails.zip') + .pipe($.rsync({ + hostname: 'deployer@72.32.134.77', + destination: '/home/deployer/sites/foundation-sites-6-marketing/downloads/' + })); +}); + gulp.task('dist', ['sass:foundation'], function() { return gulp.src('_build/assets/css/foundation.css') .pipe(gulp.dest('dist')) -- 2.47.2