forked from rubicon-project/node-google-dfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
36 lines (31 loc) · 801 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
module.exports = function (grunt) {
'use strict';
var cfg = {
pkg: grunt.file.readJSON('./package.json'),
jshint: {
options: {
jshintrc: './.jshintrc'
},
all: ['lib/**.js', 'examples/**.js', 'spec/**-spec.js']
},
jasmine_node: {
options: {
forceExit: true,
match: '.',
matchall: false,
extensions: 'js',
specNameMatcher: 'spec'
},
all: ['spec/*spec']
}
};
grunt.initConfig(cfg);
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jasmine-node');
var all = ['jshint', 'jasmine_node'],
linters = ['jshint'],
testers = ['jasmine_node'];
grunt.registerTask('lint', linters);
grunt.registerTask('test', testers);
grunt.registerTask('all', all);
};