forked from pixijs-userland/pixi-haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
32 lines (26 loc) · 1.03 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
haxe: {
project: {
hxml: "build.hxml -xml docs.xml --macro include('pixi')"
}
},
zip: {
"pixi.zip": ["pixi/**", "haxelib.json"]
},
exec: {
docs: "haxelib run chxdoc -o ../adireddy.github.io/docs/haxe-pixi -f docs.xml " +
" --showTodoTags=false " +
" --deny=demos.*,samples.*,js.*,haxe.*,nape.*,zpp_nape.*,/ " +
"--title='Externs of pixi.js for Haxe' " +
"--subtitle='<a href='http://adireddy.github.io/haxe-pixi' target='_blank'>haxe-pixi</a>'",
yuidocs: "yuidoc -e .hx .",
copy: "cp -R samples/_output/** ../adireddy.github.io/demos/haxe-pixi/"
}
});
grunt.loadNpmTasks("grunt-haxe");
grunt.loadNpmTasks("grunt-zip");
grunt.loadNpmTasks("grunt-exec");
grunt.registerTask("default", ["haxe", "zip", "exec"]);
};