]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add step to Gulp deploy script to update the settings files of the templates
authorGeoff Kimball <geoff@zurb.com>
Sat, 23 Jan 2016 01:19:14 +0000 (17:19 -0800)
committerGeoff Kimball <geoff@zurb.com>
Sat, 23 Jan 2016 01:19:14 +0000 (17:19 -0800)
gulp/deploy.js

index b7a74bd39dc4f93a001a3e53eea40e1600e212cb..22d975b92ffb317114ccaf12193894fd7df35b9e 100644 (file)
@@ -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')