-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
58 lines (49 loc) · 988 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports = (grunt) ->
require('./recurse')(grunt)
[
'./src/client'
'./src/server'
].map grunt.grunt
grunt.NpmTasks = ['grunt-contrib-watch', 'grunt-contrib-copy']
grunt.Config =
watch:
base:
files:[
'src/client/**/**/*jade'
'src/client/**/**/*coffee'
'src/client/**/**/*less'
'src/server/**/*coffee'
]
tasks: ['base']
all:
files:[
'src/server/**/*coffee'
'src/client/**/**/*jade'
'src/client/**/**/*coffee'
'src/client/**/**/*less'
]
tasks:['default']
grunt.initConfig grunt.Config
grunt.loadNpmTasks npmTask for npmTask in grunt.NpmTasks
grunt.registerTask 'test', [
# 'lint'
# 'mochaTest:server'
# 'karma:unit'
# 'features'
]
grunt.registerTask 'base', [
# 'jsonlint:context'
# 'copy:context'
'build'
# 'mochaTest:server'
# 'karma:unit'
]
grunt.registerTask 'compress', [
'uglify:all'
'cssmin:all'
]
grunt.registerTask 'default', [
'build'
'test'
'compress'
]