1234567891011121314151617181920212223242526272829303132333435363738 |
- /*global module:false*/
- module.exports = function(grunt) {
- // Project configuration.
- grunt.initConfig({
- // Task configuration.
- eslint: {
- gruntfile: {
- src: 'Gruntfile.js'
- },
- lib_test: {
- src: ['jsfuck.js', 'lib/**/*.js', 'test/**/*.js']
- }
- },
- nodeunit: {
- files: ['test/**/*_test.js']
- },
- watch: {
- gruntfile: {
- files: '<%= eslint.gruntfile.src %>',
- tasks: ['eslint:gruntfile']
- },
- lib_test: {
- files: '<%= eslint.lib_test.src %>',
- tasks: ['eslint:lib_test', 'nodeunit']
- }
- }
- });
- // These plugins provide necessary tasks.
- grunt.loadNpmTasks('grunt-contrib-nodeunit');
- grunt.loadNpmTasks("gruntify-eslint");
- grunt.loadNpmTasks('grunt-contrib-watch');
- // Default task.
- grunt.registerTask('default', ['eslint', 'nodeunit']);
- };
|