Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (25 sloc) 955 Bytes
{exec} = require 'child_process'
path = require 'path'
ake = require 'cc.ake'
bkr = require('cc.loader').baker
do ake.nodeModulePath
task 'web', 'build cc/extend.js for use in websites', (options) ->
ake.assert 'mkdir -p cc',
bkr.bake 'lib/cc/', 'cc/extend.js'
doNotMinify: true, doNotCompileCoffee: true
task 'clean', 'clean everything generated by build system', (options) ->
ake.assert "rm -rf `grep '^/' .gitignore | sed 's,^/,,'`"
task 'test', 'test cc.extend', (options) ->
ake.assert 'ln -sf ../cc test',
ake.invoke 'web'
express = require 'express'
app = express.createServer()
port = process.env.port or 8013
app.configure ->
app.use express.static path.join(process.cwd(), 'test')
console.log "cc.extend test server listening on: #{port}"
console.log "please go to http://localhost:#{port}/"
app.listen port
# vim:ts=2 sw=2
Jump to Line
Something went wrong with that request. Please try again.