Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ba3d17a33f
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.766 kb
{exec} = require 'child_process'
{series} = require 'async'
sh = (command) -> (k) ->
console.log "Executing #{command}"
exec command, (err, sout, serr) ->
console.log err if err
console.log sout if sout
console.log serr if serr
do k
task 'apidoc', 'generate API documentation', ->
exec "./node_modules/coffeedoc/bin/coffeedoc -o api lib"
task 'doc', 'generate documentation for *.coffee files', ->
sh("docco-husky lib/*") ->
task 'docpub', 'publish API documentation', ->
series [
(sh "./node_modules/coffeedoc/bin/coffeedoc -o api lib")
(sh "mv api api_tmp")
(sh "git checkout gh-pages")
(sh "cp -R api_tmp/* api/")
(sh "git add api/*")
(sh "git commit -m 'API docs update'")
(sh "git checkout master")
]
Jump to Line
Something went wrong with that request. Please try again.