Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
better cake
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeerickson committed May 8, 2012
1 parent bb2192f commit 096163e
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions Cakefile
Expand Up @@ -82,29 +82,33 @@ task 'build:templates', 'compiles all of the templates source', () ->

task 'watch', 'compiles all code on save', ->
#watch coffee script
watch_r assets.coffee.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:coffee'
if assets.coffee
watch_r assets.coffee.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:coffee'

watch_r assets.less.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:less'
if assets.less
watch_r assets.less.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:less'

watch_r assets.jade.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:jade'
if assets.jade
watch_r assets.jade.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:jade'

watch_r assets.templates.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:templates'
if assets.templates
watch_r assets.templates.src_dir, (err, watcher) ->
watcher.on 'change', (target) ->
console.log target.path
growl "Building #{target.path}"
invoke 'build:templates'



Expand Down

0 comments on commit 096163e

Please sign in to comment.