-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.coffee
56 lines (50 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
module.exports = (grunt) ->
livereload = 3241
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
notify:
watch:
options:
title: 'Grunt'
message: 'Snipers on the roof, sir!'
coffee:
options:
title: 'Grunt'
message: 'Would you take some sugar with that coffee ?'
less:
options:
title: 'Grunt'
message: 'LESS is more. Mission accomplished.'
compile:
options:
title: 'Grunt'
message: 'Compiling. Mission accomplished, sir.'
warning:
options:
title: 'Grunt Error !!'
message: 'Seems that you loose some code skills... Cannot compile this thing !'
watch:
coffee:
files: 'Common/Bin/Data/coffee/**/*.coffee'
tasks: ['compile']
js:
files: 'Common/Bin/Data/js/**/*.js'
options:
livereload: livereload
coffee:
compile:
options:
bare: true
files: [
expand: true
cwd: 'Common/Bin/Data/coffee/'
src: ['**/*.coffee']
dest: 'Common/Bin/Data/js/'
rename: (dest, src) ->
dest + src.replace '.coffee', '.js'
]
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-notify'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'compile', ['coffee:compile','notify:compile']
grunt.registerTask 'default', ['compile','watch']