-
Notifications
You must be signed in to change notification settings - Fork 8
/
GruntFile.js
60 lines (53 loc) · 1.13 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine_node: {
options: {
coverage: {},
forceExit: true,
match: '.',
matchAll: false,
specFolders: ['test'],
extensions: 'js',
specNameMatcher: 'spec',
captureExceptions: true,
junitreport: {
report: false,
savePath : './build/reports/jasmine/',
useDotNotation: true,
consolidate: true
}
},
src: ['src/**/*.js']
},
eslint: {
options: {
configFile: '.eslintrc',
},
src: ['src/**/*.js']
}
});
grunt.loadNpmTasks('grunt-jsdoc');
grunt.config('jsdoc', {
dist : {
src: ['index.js', 'src/**/*.js'],
options: {
destination: 'doc',
readme: 'README.md'
}
}
});
var tasks = [
'grunt-jasmine-node-coverage',
'grunt-eslint'
];
for (var i = 0; i < tasks.length; i++) {
grunt.loadNpmTasks(tasks[i]);
}
grunt.registerTask('default', [
'eslint',
'jsdoc',
'jasmine_node'
]);
};