-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
40 lines (33 loc) · 1.09 KB
/
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
37
38
39
40
module.exports = (grunt) ->
grunt.task.loadNpmTasks 'grunt-mocha-test'
grunt.task.loadNpmTasks 'grunt-contrib-coffee'
grunt.initConfig
pkg:
grunt.file.readJSON('package.json')
coffee:
dist:
files:
'dist/index.js': 'src/index.coffee'
coffeelint:
dev:
files:
src: ['src/**/*.coffee']
options:
no_tabs: # using tabs!
level: 'ignore'
indentation: # using tabs screws this right up
level: 'ignore'
max_line_length: # I trust you
level: 'ignore'
mochaTest:
dist:
options:
ui: 'bdd'
reporter: 'nyan'
src:
'test/**/*.coffee'
grunt.event.on 'coffee.error', (msg) ->
grunt.log.write msg
grunt.registerTask 'build', ['coffee:dist']
grunt.registerTask 'test', ['build', 'mochaTest']
grunt.registerTask 'default', ['build']