Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Sticking with Cake.

  • Loading branch information...
commit ea323c0282a3f33ec1f45100dcca126804940c9e 1 parent 59d7687
Alan Gutierrez authored

Showing 2 changed files with 11 additions and 12 deletions. Show diff stats Hide diff stats

  1. +11 5 Cakefile
  2. +0 7 Makefile
16 Cakefile
... ... @@ -1,7 +1,6 @@
1 1 fs = require("fs")
2 2 {exec, spawn} = require("child_process")
3 3 path = require("path")
4   -idl = require("idl")
5 4
6 5 compile = (sources) ->
7 6 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", ->
44 43 fs.writeFile(".gitignore", gitignore)
45 44
46 45 task "index", "rebuild the Node IDL landing page.", ->
47   - package = JSON.parse fs.readFileSync "package.json", "utf8"
  46 + idl = require("idl")
  47 + package = JSON.parse fs.readFileSync "package.json", "utf8"
48 48 idl.generate "#{package.name}.idl", "index.html"
49 49
50 50 task "docco", "rebuild the CoffeeScript docco documentation.", ->
@@ -59,9 +59,15 @@ task "compile", "compile the CoffeeScript into JavaScript", ->
59 59 compile sources
60 60
61 61 task "coverage", "run coverage", ->
62   - exec "expresso coverage.js --coverage", (err, stdout) ->
63   - throw err if err
64   - process.stdout.write(stdout)
  62 +# exec "expresso coverage.js --coverage", (err, stdout, stderr) ->
  63 +# throw err if err
  64 +# process.stdout.write(stdout)
  65 +# process.stdout.write(stderr)
  66 +# process.stdout.write("\n")
  67 + coffee = spawn "expresso", [ "coverage.js", "--coverage" ]
  68 + coffee.stdout.on "data", (buffer) -> process.stdout.write(buffer)
  69 + coffee.stderr.on "data", (buffer) -> process.stdout.write(buffer)
  70 + coffee.on "exit", (status) -> process.exit(1) if status != 0
65 71
66 72 task "test", "run tests", ->
67 73 env = {}
7 Makefile
... ... @@ -1,7 +0,0 @@
1   -test:
2   - NODE_PATH=./lib vows vows/*.js --spec
3   -
4   -coverage:
5   - expresso coverage.js --coverage
6   -
7   -.PHONEY: test coverage

0 comments on commit ea323c0

Please sign in to comment.
Something went wrong with that request. Please try again.