UNPKG

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