From 399acfe9c9743ea4221d64bf3bad81c53706ded6 Mon Sep 17 00:00:00 2001 From: Brian Genisio Date: Thu, 9 Jul 2015 15:23:15 -0400 Subject: [PATCH] Adding ability to publish to gh-pages --- Gruntfile.coffee | 23 +++++++++++++++++++++-- package.json | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index ff1d0fb..4ff6644 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -1,4 +1,4 @@ -# Generated on 2015-06-08 using generator-reveal 0.4.0 +# Generated on 2015-01-01 using generator-reveal 0.4.0 module.exports = (grunt) -> grunt.initConfig @@ -68,6 +68,7 @@ module.exports = (grunt) -> 'slides/**' 'bower_components/**' 'js/**' + 'assets/**' ] dest: 'dist/' },{ @@ -78,6 +79,18 @@ module.exports = (grunt) -> }] + buildcontrol: + + options: + dir: 'dist' + commit: true + push: true + message: 'Built from %sourceCommit% on branch %sourceBranch%' + pages: + options: + remote: 'git@github.com:BrianGenisio/semjs-slides.git' + branch: 'gh-pages' + # Load all grunt tasks. @@ -120,9 +133,15 @@ module.exports = (grunt) -> ] + grunt.registerTask 'deploy', + 'Deploy to Github Pages', [ + 'dist' + 'buildcontrol' + ] + # Define default task. grunt.registerTask 'default', [ 'test' 'serve' - ] + ] \ No newline at end of file diff --git a/package.json b/package.json index a9101e2..f1b1450 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "grunt-contrib-copy": "^0.7.0", "grunt-contrib-jshint": "^0.10.0", "load-grunt-tasks": "^1.0.0", + "grunt-build-control": "^0.2.2", "grunt-coffeelint": "0.0.13" }, "engines": {