-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
31 lines (28 loc) · 863 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
module.exports = function (grunt) {
var linkcheckerTarget = grunt.option('linkchecker-target') || 'http://localhost:3000';
// load plugins
[
'grunt-cafe-mocha',
'grunt-contrib-jshint',
'grunt-exec'
].forEach(function (task) {
grunt.loadNpmTasks(task);
});
// configure plugins
grunt.initConfig({
cafemocha: {
all: {src: 'qa/tests-*.js', options: {ui: 'tdd', timeout: 30000} }
},
jshint: {
app: ['index.js', 'public/js/**/*.js',
'lib/**/*.js'],
qa: ['Gruntfile.js', 'public/qa/**/*.js', 'qa/**/*.js']
},
exec: {
linkchecker:
{cmd: 'linkchecker ' + linkcheckerTarget}
}
});
// register tasks
grunt.registerTask('default', ['cafemocha', 'jshint', 'exec']);
};