Permalink
Browse files

Sticking with Cake.

  • Loading branch information...
1 parent 59d7687 commit ea323c0282a3f33ec1f45100dcca126804940c9e Alan Gutierrez committed Oct 14, 2010
Showing with 11 additions and 12 deletions.
  1. +11 −5 Cakefile
  2. +0 −7 Makefile
View
16 Cakefile
@@ -1,7 +1,6 @@
fs = require("fs")
{exec, spawn} = require("child_process")
path = require("path")
-idl = require("idl")
compile = (sources) ->
coffee = spawn "coffee", "-c -o lib".split(/\s/).concat(sources)
@@ -44,7 +43,8 @@ task "gitignore", "create a .gitignore for node-ec2 based on git branch", ->
fs.writeFile(".gitignore", gitignore)
task "index", "rebuild the Node IDL landing page.", ->
- package = JSON.parse fs.readFileSync "package.json", "utf8"
+ idl = require("idl")
+ package = JSON.parse fs.readFileSync "package.json", "utf8"
idl.generate "#{package.name}.idl", "index.html"
task "docco", "rebuild the CoffeeScript docco documentation.", ->
@@ -59,9 +59,15 @@ task "compile", "compile the CoffeeScript into JavaScript", ->
compile sources
task "coverage", "run coverage", ->
- exec "expresso coverage.js --coverage", (err, stdout) ->
- throw err if err
- process.stdout.write(stdout)
+# exec "expresso coverage.js --coverage", (err, stdout, stderr) ->
+# throw err if err
+# process.stdout.write(stdout)
+# process.stdout.write(stderr)
+# process.stdout.write("\n")
+ coffee = spawn "expresso", [ "coverage.js", "--coverage" ]
+ coffee.stdout.on "data", (buffer) -> process.stdout.write(buffer)
+ coffee.stderr.on "data", (buffer) -> process.stdout.write(buffer)
+ coffee.on "exit", (status) -> process.exit(1) if status != 0
task "test", "run tests", ->
env = {}
View
7 Makefile
@@ -1,7 +0,0 @@
-test:
- NODE_PATH=./lib vows vows/*.js --spec
-
-coverage:
- expresso coverage.js --coverage
-
-.PHONEY: test coverage

0 comments on commit ea323c0

Please sign in to comment.