Skip to content

Commit 78bcd6e

Browse files
committed
Added docs build for grunt
1 parent 91cecd5 commit 78bcd6e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Gruntfile.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ module.exports = function (grunt) {
4848
]
4949
},
5050

51+
jekyll: {
52+
options: {
53+
src: 'docs',
54+
dest: 'docs/_site'
55+
},
56+
build: {
57+
d: null
58+
},
59+
serve: {
60+
options: {
61+
serve: true,
62+
watch: true
63+
}
64+
}
65+
},
66+
5167
jshint: {
5268
options: {
5369
jshintrc: true
@@ -182,11 +198,16 @@ module.exports = function (grunt) {
182198
grunt.loadNpmTasks('grunt-contrib-uglify');
183199
grunt.loadNpmTasks('grunt-contrib-watch');
184200

201+
grunt.loadNpmTasks('grunt-jekyll');
185202
grunt.loadNpmTasks('grunt-sass');
186203

187204
grunt.registerTask('default', ['compile', 'test', 'minify']);
188205

189206
grunt.registerTask('compile', ['requirejs', 'sass:dev']);
190207
grunt.registerTask('minify', ['uglify', 'sass:dist']);
191208
grunt.registerTask('test', ['qunit', 'jshint']);
209+
210+
grunt.registerTask('docs', ['jekyll:serve']);
211+
212+
grunt.registerTask('release', ['default', 'jekyll:build']);
192213
};

0 commit comments

Comments
 (0)