1
0
mirror of synced 2024-11-28 23:56:03 +03:00

Added docs build for grunt

This commit is contained in:
Kevin Brown 2014-11-03 19:09:38 -05:00
parent 91cecd55ed
commit 78bcd6e831

View File

@ -48,6 +48,22 @@ module.exports = function (grunt) {
] ]
}, },
jekyll: {
options: {
src: 'docs',
dest: 'docs/_site'
},
build: {
d: null
},
serve: {
options: {
serve: true,
watch: true
}
}
},
jshint: { jshint: {
options: { options: {
jshintrc: true jshintrc: true
@ -182,6 +198,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-sass'); grunt.loadNpmTasks('grunt-sass');
grunt.registerTask('default', ['compile', 'test', 'minify']); grunt.registerTask('default', ['compile', 'test', 'minify']);
@ -189,4 +206,8 @@ module.exports = function (grunt) {
grunt.registerTask('compile', ['requirejs', 'sass:dev']); grunt.registerTask('compile', ['requirejs', 'sass:dev']);
grunt.registerTask('minify', ['uglify', 'sass:dist']); grunt.registerTask('minify', ['uglify', 'sass:dist']);
grunt.registerTask('test', ['qunit', 'jshint']); grunt.registerTask('test', ['qunit', 'jshint']);
grunt.registerTask('docs', ['jekyll:serve']);
grunt.registerTask('release', ['default', 'jekyll:build']);
}; };