Skip to content

Commit

Permalink
Server js file instead of coffee; Test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Sep 3, 2012
1 parent b1a0817 commit b08ef32
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Makefile
@@ -0,0 +1,16 @@

REPORTER = dot

build:
@./node_modules/.bin/coffee -b -o lib src/*.coffee

test: build
@NODE_ENV=test ./node_modules/.bin/mocha --compilers coffee:coffee-script \
--reporter $(REPORTER)

coverage: build
@jscoverage --no-highlight lib lib-cov
@CSV_COV=1 $(MAKE) test REPORTER=html-cov > doc/coverage.html
@rm -rf lib-cov

.PHONY: test
4 changes: 1 addition & 3 deletions index.js
@@ -1,4 +1,2 @@

require('coffee-script');

module.exports = require('./lib/middleware')
module.exports = require('./lib/middleware');
130 changes: 130 additions & 0 deletions lib/middleware.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -12,6 +12,11 @@
"debug" : "latest",
"mkdirp": "latest"
},
"devDependencies" : {
"rimraf" : "latest",
"mocha": "latest",
"should": "latest"
},
"keywords": ["connect", "express", "coffeescript"],
"repository": {
"type" : "git",
Expand Down
File renamed without changes.

0 comments on commit b08ef32

Please sign in to comment.