-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
57 lines (48 loc) · 1.33 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
57
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-concurrent'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'default', ['concurrent:dev']
grunt.registerTask 'setup', ['copy', 'coffee']
grunt.registerTask 'lint', ['coffeelint']
grunt.registerTask 'test', ['coffeelint'] ## todo
grunt.initConfig
copy:
install:
src: '.cordova/orig.config.json'
dest: '.cordova/config.json'
coffee:
compile:
files:
'www/js/app.js': ['www/coffee/app.coffee']
'www/js/controllers.js': ['www/coffee/controllers.coffee']
connect:
server:
options:
port: 9001
base: 'www'
keepalive: true
watch:
options:
livereload: true
js:
files: ['www/coffee/*']
tasks: ['coffee']
options:
atBegin: true
all:
files: [
'www/*'
'www/css/**/*'
'www/partials/**/*'
]
concurrent:
dev: ['connect:server', 'watch']
options:
logConcurrentOutput: true
coffeelint:
app: ['www/coffee/**/*']
options: grunt.file.readJSON('coffeelint.json')