     .transform(stylus)
     .write(file
       .replace('client/stylus', 'public/css')
+      .replace('.stylus', '.css')
       .replace('.styl', '.css'))
 
 james.task 'stylus', ->

  james.watch 'client/coffee/*.coffee', -> james.run 'browserify'
  james.watch 'client/jade/*.jade', (ev, file) -> transmogrifyJade file
  james.watch 'client/stylus/*.styl', (ev, file) -> transmogrifyStylus file

james.task 'default', ['browserify', 'jade_static', 'stylus']
james.task 'watch', ['default', 'actual_watch']
coffeeify = require 'coffeeify'

mkdirp = require 'mkdirp'

copyFile = (file) -> james.read(file).write(file.replace('client/', 'public/'))

james.task 'copy_files', -> james.list('client/images/*').forEach copyFile

BROWSERIFY_OPTS =
  debug: true
