Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 487 Bytes
$ = require("projmate-shell")
Fs = require('fs')
Funcd = require(".")
task "build", "Builds the project", ->
$.coffee "-c -o . src/"
task "test", "runs tests", ->
$.run "#{$.which('mocha')} -u exports --compilers coffee:coffee-script src/test/", ->
task "example", "Creates test/index.html", ->
# lazily require because funcd may not compile cleanly while developing
html = Funcd.renderFile('src/test/')
Fs.writeFileSync 'test/index.html', html
Something went wrong with that request. Please try again.