/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Task configuration. jshint: { options: { curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, sub: true, undef: true, unused: true, boss: true, eqnull: true, node: true, globals: { jQuery: true, window: true, } }, gruntfile: { src: 'Gruntfile.js' }, lib_test: { src: ['jsfuck.js', 'lib/**/*.js', 'test/**/*.js'] } }, nodeunit: { files: ['test/**/*_test.js'] }, watch: { gruntfile: { files: '<%= jshint.gruntfile.src %>', tasks: ['jshint:gruntfile'] }, lib_test: { files: '<%= jshint.lib_test.src %>', tasks: ['jshint:lib_test', 'nodeunit'] } } }); // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-nodeunit'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); // Default task. grunt.registerTask('default', ['jshint', 'nodeunit']); };