-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
47 lines (42 loc) · 1.07 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('time-grunt') grunt
require('load-grunt-tasks') grunt
grunt.config.init
clean:
build: [
'index.js'
'lib'
]
test: 'tests/*.js'
coffee:
enju:
expand: yes
flatten: no
cwd: 'src'
src: ['**/*.coffee']
dest: './'
ext: '.js'
test:
expand: yes
flatten: no
cwd: '__tests__'
src: ['**/*.coffee']
dest: './__tests__'
ext: '.js'
watch:
enju:
files: ['src/**/*.coffee']
tasks: ['coffee:enju']
options:
spawn: no
grunt.registerTask 'dev', ->
grunt.task.run [
'clean:build'
'coffee:enju'
'watch'
]
grunt.registerTask 'build', ->
grunt.task.run [
'clean'
'coffee'
]