Skip to content

Instantly share code, notes, and snippets.

@mdellanoce
Last active December 16, 2015 10:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mdellanoce/5421923 to your computer and use it in GitHub Desktop.
Modular Cakefile
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