From d7d18e8ab1215b63b113f38a137918f7b81c9a96 Mon Sep 17 00:00:00 2001 From: Kris Jordan Date: Wed, 5 Jan 2011 11:34:33 -0500 Subject: [PATCH] Wrapped up input modification code --- .test | 0 Cakefile | 9 ++++++++- docs/icing.html | 4 ++-- docs/rules.html | 2 +- src/icing.coffee | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .test diff --git a/.test b/.test new file mode 100644 index 0000000..e69de29 diff --git a/Cakefile b/Cakefile index caf51cc..b8861a2 100644 --- a/Cakefile +++ b/Cakefile @@ -9,7 +9,9 @@ task 'test', ['spec/*'], (options) -> if options.spec? args.push '--spec' command = "vows #{args.join ' '} #{this.prereqs.join(' ')}" - this.exec command + this.exec [ + command + ] task 'docs', 'Generate docco documentation', ['src/*'], exec: (options) -> @@ -21,3 +23,8 @@ task 'docs', 'Generate docco documentation', ['src/*'], prereq.replace /src\/(.*).coffee/,"docs/$1.html" task 'all', 'Test and Document', ['test','docs'], (options) -> this.finished() + +task 'clean', 'Remove Generated Files', [], -> + this.exec [ + "rm -rf docs/*" + ] diff --git a/docs/icing.html b/docs/icing.html index 538a274..92688f1 100644 --- a/docs/icing.html +++ b/docs/icing.html @@ -1,4 +1,4 @@ - icing.coffee

icing.coffee

icing adds dependency management to Cakefiles by extending and + icing.coffee

icing.coffee

icing adds dependency management to Cakefiles by extending and slightly modifying cake's "task" function. Add icing to your Cakefiles by adding a single line:

@@ -97,7 +97,7 @@ tasksLeft = recipeNodes.pluck('name').join(',') console.error "\nError: task `#{recipeNode.name}` did not complete.\n" + "Tasks [#{tasksLeft}] should have run, but did not.\n" + - "Task `#{recipeNode.name}` should call this.finished() or this.failed(message).\n"

Helpers

Set-up the context that a recipe exec is run in.

runRecipeContext = (graph, recipeNode,  runNextRecipeCallback, options) ->
+                               "Task `#{recipeNode.name}` should call this.finished() or this.failed(message).\n"

Helpers

Set-up the context that a recipe exec is run in

runRecipeContext = (graph, recipeNode,  runNextRecipeCallback, options) ->
 
     finishedFn = -> do runNextRecipeCallback
 
diff --git a/docs/rules.html b/docs/rules.html
index 5dd2f4a..c689f92 100644
--- a/docs/rules.html
+++ b/docs/rules.html
@@ -1,4 +1,4 @@
-      rules.coffee           

rules.coffee

rules models task pipelines using directed acyclic graph (dag.coffee) primitives. + rules.coffee

rules.coffee

rules models task pipelines using directed acyclic graph (dag.coffee) primitives. Following in the heritage of make, rules have a target, prerequisites, and a recipe. Unlike make target is a symbolic name and prerequisites can refer to other rules or to files on disk.

diff --git a/src/icing.coffee b/src/icing.coffee index d1b61f6..4949bec 100644 --- a/src/icing.coffee +++ b/src/icing.coffee @@ -115,7 +115,7 @@ global.task = (target, description, prereqs=undefined, recipe=undefined) -> #### Helpers -# Set-up the context that a recipe exec is run in. +# Set-up the context that a recipe exec is run in runRecipeContext = (graph, recipeNode, runNextRecipeCallback, options) -> finishedFn = -> do runNextRecipeCallback