UNPKG

793 BJavaScriptView Raw
1'use strict';
2
3module.exports = function (grunt) {
4
5 require('time-grunt')(grunt);
6
7 grunt.initConfig({
8 mochaTest: {
9 notify: {
10 src: 'test/**/*.test.js',
11 options: {
12 reporter: 'spec',
13 timeout: 50000
14 }
15 }
16 },
17
18 jshint: {
19 options: {
20 jshintrc: '.jshintrc'
21 },
22 all: [
23 'Gruntfile.js',
24 'lib/**/*.js',
25 'tests/**/*',
26 'examples.js'
27 ]
28 }
29
30 });
31
32 require('load-grunt-tasks')(grunt);
33
34 grunt.registerTask('test', [
35 'jshint',
36 'mochaTest'
37 ]);
38
39 grunt.registerTask('default', [
40 'test'
41 ]);
42
43};