0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-27 13:59:01 -05:00

added yuidoc build tasks

This commit is contained in:
liabru 2014-02-28 18:23:25 +00:00
parent 1c1c21b919
commit 1c87129921
3 changed files with 21 additions and 2 deletions

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
node_modules
npm-debug.log
npm-debug.log
doc
matter-doc-theme

View file

@ -63,6 +63,20 @@ module.exports = function(grunt) {
files: ['build/matter.js', 'demo/js/**/*.html', 'demo/js/**/*.js', 'demo/css/**/*.css']
}
},
yuidoc: {
compile: {
name: '<%= pkg.name %>.js Physics Engine API Documentation',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
paths: 'src',
themedir: 'matter-doc-theme',
outdir: 'doc',
linkNatives: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
@ -71,8 +85,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.registerTask('default', ['test', 'concat', 'uglify', 'copy']);
grunt.registerTask('test', ['jshint']);
grunt.registerTask('dev', ['connect:watch', 'watch']);
grunt.registerTask('doc', ['yuidoc']);
};

View file

@ -25,7 +25,8 @@
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-connect": "~0.6.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-watch": "~0.5.3"
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-yuidoc": "~0.5.1"
},
"scripts": {
"dev": "npm install && grunt dev"