Skip to content

Instantly share code, notes, and snippets.

@maestrow
Created August 3, 2014 20:32
Show Gist options
  • Save maestrow/f52b02ac84267f438caa to your computer and use it in GitHub Desktop.
Save maestrow/f52b02ac84267f438caa to your computer and use it in GitHub Desktop.
Modular Cakeflle
# http://www.mikedellanoce.com/2013/04/coffeescript-tip-modular-cakefile.html
fs = require('fs')
tasks = fs.readdirSync('tasks')
require('./tasks/' + task.replace(/\.coffee$/, '')) for task in tasks
# This file goes in the "tasks" folder
task('test', ->
#Run tests, or whatever
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment