diff --git a/gruntfile.js b/gruntfile.js index e633de4..197ea8f 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -90,6 +90,14 @@ module.exports = function (grunt) { }, qunit: { all: ['spec/**/*.html'] + }, + + + docco: { + src: ['js/barekit.js'], + options: { + output: 'docs/' + } } }); @@ -100,6 +108,7 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-autoprefixer'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-qunit'); + grunt.loadNpmTasks('grunt-docco'); grunt.registerTask('js', [ 'concat', 'uglify' ]); grunt.registerTask('test', [ 'js', 'qunit' ]); diff --git a/package.json b/package.json index 73198c8..e550b6b 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "gulp-stylus": "^1.0.2", "gulp-uglify": "^0.3.1", "grunt-contrib-concat": "^0.5.0", - "grunt-contrib-qunit": "^0.5.2" + "grunt-contrib-qunit": "^0.5.2", + "grunt-docco": "^0.3.3" } }