forked from hodbauer/lethexa-dted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
37 lines (32 loc) · 963 Bytes
/
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
33
34
35
36
37
/* global module */
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
yuidoc: {
all: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
exclude: '',
paths: ['./', 'lib/'],
outdir: 'doc/'
}
}
},
mochacli: {
options: {
reporter: "spec",
ui: "tdd"
},
all: ["test/tests.js"]
}
});
grunt.loadNpmTasks("grunt-mocha-cli");
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.registerTask('test', ['mochacli']);
grunt.registerTask('default', ['mochacli', 'yuidoc']);
grunt.registerTask('jenkins', ['mochacli', 'yuidoc']);
};