-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
47 lines (47 loc) · 1.03 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
41
42
43
44
45
46
47
module.exports = (grunt)->
require('load-grunt-tasks')(grunt)
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffeelint:
app: ['Gruntfile.coffee','coffee/*.coffee']
coffee:
compile:
options:
bare: true
# sourceMap: true
files:
'index.js':[
'coffee/*.coffee'
'!coffee/99*.coffee'
]
mochaTest:
test:
options:
reporter: 'spec'
require: 'coffee-script/register'
src:['test/**/*.coffee']
watch:
config:
files: ['Gruntfile.coffee']
tasks: ['coffeelint']
tests:
files: ['test/*.coffee']
tasks: ['coffeelint', 'mochaTest']
app:
files: ['coffee/*.coffee']
tasks: [
'coffeelint'
'mochaTest'
'coffee'
]
grunt.registerTask('default', [
'coffeelint'
'mochaTest'
'coffee'
])
grunt.registerTask('develop', [
'coffeelint'
'mochaTest'
'coffee'
'watch'
])