-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
57 lines (52 loc) · 1.34 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
var gruntLoader = function(grunt) {
var config = {
pkg: grunt.file.readJSON('package.json'),
jasmine: {
eventify: {
src: 'eventify.js',
options: {
specs: 'specs/eventify-test.js',
keepRunner: true,
outfile: 'reports/spec-runner/_SpecRunner.html',
template: require('grunt-template-jasmine-istanbul'),
templateOptions: {
coverage: 'reports/coverage/coverage.json',
report: [
{
type: 'html',
options: {
dir: 'reports/coverage/html'
}
},
{
type: 'text-summary',
options: {
dir: 'reports/coverage/text-summary'
}
},
{
type: 'lcov',
options: {
dir: 'reports/coverage/lcov'
}
}
]
}
}
}
},
coveralls: {
eventify: {
src: 'reports/coverage/lcov/lcov.info',
options: {
force: true
}
}
}
};
grunt.initConfig(config);
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-coveralls');
grunt.registerTask('default', [ 'jasmine:eventify' ]);
};
module.exports = gruntLoader;