UNPKG

807 BJavaScriptView Raw
1/* global module:false */
2module.exports = function (grunt) {
3 require('time-grunt')(grunt);
4
5 // Project configuration.
6 grunt.initConfig({
7 files: ['Gruntfile.js', 'tasks/**/*.js', 'test/*.js'],
8
9 watch: {
10 all: {
11 files: '<%= files %>'
12 }
13 },
14
15 simplemocha: {
16 all: {
17 src: 'test/*.js'
18 }
19 },
20
21 jshint: {
22 all: '<%= files %>'
23 },
24
25 sync: grunt.file.readJSON('sync.json'),
26
27 complexity: grunt.file.readJSON('complexity.json')
28 });
29 grunt.loadNpmTasks('grunt-simple-mocha');
30 grunt.loadNpmTasks('grunt-complexity');
31 grunt.loadNpmTasks('grunt-contrib-jshint');
32
33 grunt.registerTask('default', ['jshint', 'simplemocha', 'complexity']);
34
35 // Used for testing only, you shouldn't add this to your code:
36 grunt.loadTasks('tasks');
37};