Permalink
Browse files

New make file with "build", "test" and "coverage" target; Generate js…

… file
  • Loading branch information...
1 parent b3386c8 commit 39bdceeef1d999967df04fdbaa1e1f2c6bd19c8f @wdavidw committed Nov 12, 2012
Showing with 168 additions and 1 deletion.
  1. +15 −0 Makefile
  2. +152 −0 lib/dojo.js
  3. +1 −1 package.json
  4. 0 {lib → src}/dojo.coffee
View
@@ -0,0 +1,15 @@
+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
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -8,10 +8,10 @@
],
"engines": { "node": ">= 0.1.90" },
"dependencies" : {
- "coffee-script" : "latest",
"connect" : "latest"
},
"devDependencies" : {
+ "coffee-script" : "latest",
"mocha" : "latest",
"should" : "latest",
"each" : "latest"
File renamed without changes.

0 comments on commit 39bdcee

Please sign in to comment.