forked from arielsalminen/Remote-Preview
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
41 lines (40 loc) · 1002 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
module.exports = (grunt) ->
# module loading
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.loadNpmTasks "grunt-contrib-connect"
# configure
grunt.initConfig
coffee:
compile:
options:
bare:true
livereload:true
files:
"build/app.js":"src/app.coffee"
"build/public/javascripts/client.js":[
"src/public/javascripts/control.coffee"
"src/public/javascripts/init.coffee"
]
"build/routes/index.js":"src/routes/index.coffee"
"build/routes/control.js":"src/routes/control.coffee"
watch:
files: [
"src/app.coffee"
"src/public/javascripts/*.coffee"
"src/routes/.coffee"
]
tasks: [
"coffee"
]
options:
livereload:true
connect:
livereload:
options:
port:9001
# resigster
grunt.registerTask "default", [
"connect"
"watch"
]