forked from mhevery/jasmine-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
37 lines (33 loc) · 1.02 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
module.exports = (grunt) ->
grunt.initConfig
_watch_:
options:
nocase: true
spawn: false
core_coffee:
files: [
'src/**/*.coffee'
]
tasks: ['coffee', 'exec:test']
test_files:
files: [
'spec/**/*'
]
tasks: ['exec:test']
coffee:
main:
expand: true
flatten: false
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib/jasmine-node/'
ext: '.js'
exec:
test:
cmd: "node bin/jasmine-node --coffee --matchAll spec/"
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-exec'
grunt.registerTask 'default', ['coffee', 'exec:test']
grunt.renameTask 'watch', '_watch_'
grunt.registerTask 'watch', ['default', '_watch_']