UNPKG

499 BJavaScriptView Raw
1module.exports = function(grunt) {
2
3 // Project configuration.
4 grunt.initConfig({
5 jshint: {
6 files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
7 jshintrc: '.jshintrc'
8 },
9 watch: {
10 'default': {
11 files: '<%= jshint.files %>',
12 tasks: ['default']
13 }
14 }
15 });
16
17 // Load in grunt tasks
18 grunt.loadNpmTasks('grunt-contrib-jshint');
19 grunt.loadNpmTasks('grunt-contrib-watch');
20
21 // Default task.
22 grunt.registerTask('default', ['jshint']);
23
24};