From: Geoff Kimball Date: Sat, 23 Jan 2016 01:19:14 +0000 (-0800) Subject: Add step to Gulp deploy script to update the settings files of the templates X-Git-Tag: v6.2.0-rc.1~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a4c593a1674a042084af3d2a048d8864075e7e5;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add step to Gulp deploy script to update the settings files of the templates --- diff --git a/gulp/deploy.js b/gulp/deploy.js index b7a74bd39..22d975b92 100644 --- a/gulp/deploy.js +++ b/gulp/deploy.js @@ -34,7 +34,7 @@ var CURRENT_VERSION = require('../package.json').version; var NEXT_VERSION; gulp.task('deploy', function(cb) { - sequence('deploy:prompt', 'deploy:version', 'deploy:dist', 'deploy:settings', 'deploy:commit', cb); + sequence('deploy:prompt', 'deploy:version', 'deploy:dist', 'deploy:settings', 'deploy:commit', 'deploy:templates', cb); }); gulp.task('deploy:prompt', function(cb) { @@ -116,6 +116,24 @@ gulp.task('deploy:docs', ['build'], function() { })); }); +gulp.task('deploy:templates', function() { + exec('git clone https://github.com/zurb/foundation-sites-template'); + exec('cp scss/settings/_settings.scss foundation-sites-template/scss/_settings.scss'); + exec('cd foundation-sites-template'); + exec('git commit -am "Update settings file to match Foundation "' + NEXT_VERSION); + exec('git push origin master'); + exec('cd ..'); + exec('rm -rf foundation-sites-template'); + + exec('git clone https://github.com/zurb/foundation-zurb-template'); + exec('cp scss/settings/_settings.scss foundation-zurb-template/src/assets/scss/_settings.scss'); + exec('cd foundation-zurb-template'); + exec('git commit -am "Update settings file to match Foundation "' + NEXT_VERSION); + exec('git push origin master'); + exec('cd ..'); + exec('rm -rf foundation-zurb-template'); +}); + // The Customizer runs this function to generate files it needs gulp.task('deploy:custom', ['sass:foundation', 'javascript:foundation'], function() { gulp.src('./_build/assets/css/foundation.css')