-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ability to publish to gh-pages
- Loading branch information
1 parent
5827a82
commit 399acfe
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: '[email protected]: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' | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters