Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (33 sloc) 1.02 KB
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'lib'
ext: '.js'
coffeelint:
options:
max_line_length:
level: 'ignore'
no_empty_param_list:
level: 'error'
src: ['src/**/*.coffee']
test: ['spec/*.coffee']
shell:
test:
command: 'jasmine-focused --captureExceptions --coffee spec/'
options:
stdout: true
stderr: true
failOnError: true
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-shell')
grunt.registerTask 'clean', -> require('rimraf').sync('lib')
grunt.registerTask('lint', ['coffeelint:src', 'coffeelint:test'])
grunt.registerTask('default', ['lint', 'coffee'])
grunt.registerTask('test', ['lint', 'coffee', 'shell:test'])
grunt.registerTask('publish', ['clean', 'default'])