1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | 'use strict';
|
10 |
|
11 | module.exports = function(grunt) {
|
12 |
|
13 |
|
14 | grunt.initConfig({
|
15 | jshint: {
|
16 | all: [
|
17 | 'Gruntfile.js',
|
18 | 'tasks/*.js',
|
19 | '<%= nodeunit.tests %>',
|
20 | ],
|
21 | options: {
|
22 | jshintrc: '.jshintrc',
|
23 | },
|
24 | },
|
25 |
|
26 |
|
27 | clean: {
|
28 | tests: ['tmp'],
|
29 | },
|
30 |
|
31 |
|
32 | nodeunit: {
|
33 | tests: ['test/*_test.js'],
|
34 | },
|
35 |
|
36 | });
|
37 |
|
38 |
|
39 | grunt.loadTasks('tasks');
|
40 |
|
41 |
|
42 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
43 | grunt.loadNpmTasks('grunt-contrib-clean');
|
44 | grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
45 | grunt.loadNpmTasks('grunt-bump');
|
46 |
|
47 |
|
48 |
|
49 | grunt.registerTask('test', ['clean', 'deps-ok', 'nodeunit']);
|
50 |
|
51 |
|
52 | grunt.registerTask('default', ['jshint', 'test']);
|
53 |
|
54 | };
|