forked from atom/node-ls-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
36 lines (32 loc) · 964 Bytes
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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'
shell:
test:
command: 'jasmine-focused --coffee --captureExceptions spec'
options:
stdout: true
stderr: true
failOnError: true
coffeelint:
options:
no_empty_param_list:
level: 'error'
max_line_length:
level: 'ignore'
src: ['src/**/*.coffee']
test: ['spec/*.coffee']
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-shell')
grunt.registerTask 'clean', -> require('rimraf').sync('lib')
grunt.registerTask('lint', ['coffeelint'])
grunt.registerTask('default', ['clean', 'lint', 'coffee'])
grunt.registerTask('test', ['default', 'shell:test'])