Skip to content

Commit

Permalink
added nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
ssetem committed Apr 9, 2011
1 parent 504f62e commit 09d894b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
Empty file added .monitor
Empty file.
27 changes: 18 additions & 9 deletions Cakefile
Expand Up @@ -2,12 +2,21 @@
util = require "util"


commands = [
"coffee -c -w -o lib/ src/"
"coffee -c -w JWServer.coffee"
"coffee -c -w JMServer.coffee"
]

for c in commands
child = exec c
child.stdout.on "data", util.print
task "watch", "watch coffee files", ->

commands = [
"coffee -c -w -o lib/ src/"
"coffee -c -w JWServer.coffee"
"coffee -c -w JMServer.coffee"
]

for c in commands
child = exec c
child.stdout.on "data", util.print


task "jws", "autoreload JWServer.js",->
(exec "nodemon JWServer.js").stdout.on "data", util.print

task "jms", "autoreload JMServer.js",->
(exec "nodemon JMServer.js").stdout.on "data", util.print
1 change: 1 addition & 0 deletions JWServer.coffee
Expand Up @@ -8,6 +8,7 @@ jobWorker = new JobWorker({
})




jobWorker.takeJob()

2 changes: 2 additions & 0 deletions nodemon-ignore
@@ -0,0 +1,2 @@
*.coffee
filestore/
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -9,6 +9,7 @@
"underscore":"1.1.5",
"mime": "1.2.1",
"ffmpeg-node": "0.0.1",
"async":"0.1.8"
"async":"0.1.8",
"nodemon": "0.2.2"
}
}

0 comments on commit 09d894b

Please sign in to comment.