Skip to content

Commit

Permalink
point to core object when requireing espresso
Browse files Browse the repository at this point in the history
  • Loading branch information
dciccale committed Jul 16, 2012
1 parent c774bfb commit 0e78a05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/espresso.coffee
Expand Up @@ -13,7 +13,7 @@ tpl =
"""
### require modules ###
express = require 'express'
espresso = require './espresso.coffee'
espresso = require('./espresso.coffee').core
### create express server ###
app = express.createServer()
Expand All @@ -36,13 +36,13 @@ tpl =
### watch coffeescript sources ###
coffee = espresso.core.exec espresso.core.node_modules_path + 'coffee -o public/js -w -c coffee'
coffee = espresso.exec espresso.node_modules_path + 'coffee -o public/js -w -c coffee'
coffee.stdout.on 'data', (data) ->
espresso.core.minify() if app.env == 'production'
espresso.minify() if app.env == 'production'
### watch stylus sources ###
espresso.core.exec espresso.core.node_modules_path + 'stylus -w -c styl -o public/css'
espresso.exec espresso.node_modules_path + 'stylus -w -c styl -o public/css'
### app routes ###
Expand All @@ -52,7 +52,7 @@ tpl =
### start server ###
app.listen 3000, ->
espresso.core.logEspresso()
espresso.logEspresso()
console.log "Server listening on port %d, %s", app.address().port, app.env
"""

Expand Down

0 comments on commit 0e78a05

Please sign in to comment.