Skip to content

Commit

Permalink
added demo build task
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Jul 6, 2013
1 parent afd89b1 commit 3c1546a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ build = (cb) ->
compile: (cb) -> compile null, cb
minify: (cb) -> minify null, cb
docs: (cb) -> docs null, cb
demo: (cb) -> demo null, cb
, ->
console.log 'Build succeeded.'
cb?()
Expand Down Expand Up @@ -61,10 +62,15 @@ minify = announce 'minify', (args, cb) ->
docs = announce 'docs', (args, cb) ->
exec 'docco oridomi.coffee', print cb

demo = announce 'demo', (args, cb) ->
exec 'stylus --include /usr/local/share/npm/lib/node_modules/nib/lib/ ./demo/demo.styl', print cb


task 'build', 'compile, minify, and generate annotated source', build
task 'watch', 'compile continuously', watch
task 'compile', 'compile .coffee to .js', compile
task 'minify', 'compress .js for production', minify
task 'docs', 'generate annotated source page in ./docs', docs
task 'size', 'output filesize stats', size
task 'demo', 'compile demo site stylesheet', demo

0 comments on commit 3c1546a

Please sign in to comment.