module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'tasks' ext: '.js' coffeelint: options: no_empty_param_list: level: 'error' max_line_length: level: 'ignore' src: ['src/**/*.coffee'] test: ['spec/*.coffee'] gruntfile: ['Gruntfile.coffee'] shell: test: command: 'node node_modules/jasmine-focused/bin/jasmine-focused --captureExceptions --coffee spec/' options: stdout: true stderr: true failOnError: true grunt.loadTasks('tasks') grunt.loadNpmTasks('grunt-coffeelint') grunt.loadNpmTasks('grunt-contrib-coffee') grunt.loadNpmTasks('grunt-shell') grunt.registerTask 'clean', -> require('rimraf').sync('tasks') grunt.registerTask('lint', ['coffeelint']) grunt.registerTask('test', ['default', 'lesslint:clearCache', 'shell:test']) grunt.registerTask('default', ['lint', 'coffee'])