forked from slackapi/node-slack-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
42 lines (38 loc) · 910 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
37
38
39
40
41
42
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-release'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-shell'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.initConfig
watch:
coffee:
files: [
'**/*.coffee' # Watch everything
'!node_modules' # ...except dependencies
]
tasks: ['shell:test']
shell:
test:
command: 'npm test'
options:
stdout: true
stderr: true
coffee:
options:
bare: true
index:
files:
'index.js': 'index.coffee'
examples:
expand: true
cwd: 'examples'
src: ['*.coffee']
dest: 'examples'
ext: '.js'
classes:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'src'
ext: '.js'
grunt.registerTask 'prepublish', ['coffee']