Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ae4914d9fa
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (48 sloc) 1.58 kB
{ dirname, basename,
} = path = require 'path'
express = require 'express'
PORT = 8080
TESTS = dirname __dirname
PROJECT_DIR = dirname TESTS
VAR = PROJECT_DIR+'/var'
WWW = TESTS+'/browser'
SRC = WWW+'/src'
compiler = require PROJECT_DIR+'/compiler'
app = express.createServer()
app.listen PORT
console.log ">> Connect Compiler Test Server <<"
console.log ' PORT: ', PORT
console.log ' PROJECT_DIR: ', PROJECT_DIR
console.log ' TESTS: ', TESTS
console.log ' WWW: ', WWW
console.log ' VAR: ', VAR
app.configure ->
console.log 'server.configure()'
app.use express.logger()
app.use express.bodyParser()
app.use express.methodOverride()
app.use compiler do
enabled : <[ livescript coco coffee ]>
src : WWW
dest : VAR
# options :
# stylus : nib:true, compress:true
log_level : 'DEBUG'
# app.use compiler do
# enabled : <[ jade stylus sass jison ]>
# src : WWW
# dest : VAR
# options :
# stylus : nib:true, compress:true
# log_level : 'DEBUG'
# compress anything that desires compression (*.min.js)
# app.use compiler do
# enabled : <[ uglify ]>
# src : [ WWW, VAR ]
# dest : VAR
# log_level : 'DEBUG'
app.use express.static WWW
app.use express.static VAR
app.use express.errorHandler do
dumpExceptions : true
showStack : true
Jump to Line
Something went wrong with that request. Please try again.