0.0.3 • Published 11 years ago

bakerhelper v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

bakerhelper - Helper for Cakefile

I created this project because I found myself reusing the same Cakefile over and over again. I copied it and then I made small changes to it. Eventually, I lost track of the "good" one (the most recent) so I decided to package them in a helper.

WARNING! Those are not cake tasks, it means you can't write cake compileCoffeescripts and it will magically work. You have to write your own tasks but bakerhelper will help you doing it.

API reference

exec(cmd, options, callback)

Overrides child_process.r.exec to log to console and exit if there's an error

bakerhelper.exec 'rm *.js', {cwd:'./lib'}, (err, stdout, stderr)->

options : See (child_process)http://nodejs.org/api/child_process.html#child_process_child_process_r.exec_command_options_callback documentation

The callback is passed three arguments (err, stdout, stderr)

compileCoffeescripts(directory, option={})

Compile all the coffeescripts into javascript files from a directory (not recursive)

bakerhelper.compileCoffeescripts './lib/'
bakerhelper.compileCoffeescripts './bin/', {shebang:true}

options.shebang : If it should add a shebang at the top of the file

generateDoccoHusky(directories=[])

Generate doc with docco-husky and push it to the gh-pages branch.

bakerhelper.compileCoffeescripts ['./lib/', './bin']
0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago