UNPKG

797 Btext/coffeescriptView Raw
1path = require 'path'
2
3module.exports = (grunt) ->
4 jasmine = './node_modules/jasmine-focused/bin/jasmine-focused'
5
6 grunt.initConfig
7 pkg: grunt.file.readJSON('package.json')
8
9 coffeelint:
10 options: grunt.file.readJSON('coffeelint.json')
11 src: ['src/*.coffee']
12 spec: ['spec/*.coffee']
13
14 shell:
15 spec:
16 command: "script/bootstrap && #{jasmine} --captureExceptions --coffee spec/"
17 options:
18 stdout: true
19 stderr: true
20 failOnError: true
21
22 grunt.loadNpmTasks('grunt-contrib-coffee')
23 grunt.loadNpmTasks('grunt-shell')
24 grunt.loadNpmTasks('grunt-coffeelint')
25
26 grunt.registerTask('default', ['lint', 'spec'])
27 grunt.registerTask('lint', ['coffeelint:src', 'coffeelint:spec'])
28 grunt.registerTask('spec', ['shell:spec'])