Skip to content

Commit

Permalink
Add gh-pages grunt plugin and deploy task for easy deploy of the docu…
Browse files Browse the repository at this point in the history
…mentation site to github pages
  • Loading branch information
greg5green committed May 6, 2015
1 parent 7b51efd commit 1dc1930
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Thumbs.db
.grunt
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ module.exports = function(grunt) {
dest: 'owl.carousel.<%= pkg.version %>'
} ]
}
},

// publish to github pages
'gh-pages': {
options: {
base: 'docs'
},
src: '**/*'
}
});

Expand All @@ -288,4 +296,6 @@ module.exports = function(grunt) {

grunt.registerTask('zip', [ 'compress' ]);

grunt.registerTask('deploy', [ 'docs', 'gh-pages' ]);3

};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"grunt-contrib-qunit": ">=0.2.1",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-gh-pages": "^0.10.0",
"grunt-jscs-checker": "~0.4.2",
"grunt-sass": "^0.18.1",
"load-grunt-tasks": "^0.4.0",
Expand Down

0 comments on commit 1dc1930

Please sign in to comment.