Skip to content

Commit

Permalink
Added yuidocs task.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 19, 2013
1 parent 4cab02d commit b819ff2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,28 @@ module.exports = function(grunt) {
'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
}
}
}
},
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
paths: 'src/',
outdir: 'dist/docs/'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-yuidoc');

// Task to run tests
grunt.registerTask('test', ['jshint', 'qunit', 'concat', 'uglify']);
grunt.registerTask('test', ['jshint', 'qunit', 'concat', 'uglify', 'yuidoc']);
};

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "dwv",
"version": "0.4beta",
"homepage": "http://ivmartel.github.io/dwv/",
"description": "Simple javascript/HTML5 (only) Dicom Web Viewer."
"repository": {
"type": "git",
"url": "git://github.com/ivmartel/dwv.git"
Expand All @@ -14,5 +17,6 @@
"grunt-contrib-jshint": "~0.6",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.4"
"grunt-contrib-yuidocs": "~0.5.0"
}
}

0 comments on commit b819ff2

Please sign in to comment.