Permalink
Browse files

NEW: Add a bunch of subcommands to analyze and test the code.

  • Loading branch information...
1 parent 6d3ad1e commit 5a1c8bc9ce48352ed507a59c9428b70d22ffe2f9 @lbdremy committed Feb 2, 2013
Showing with 27 additions and 0 deletions.
  1. +27 −0 Makefile
View
@@ -0,0 +1,27 @@
+prerequisites:
+ npm install -g complexity-report
+ npm install -g jshint
+ npm install -g plato
+
+test:
+ npm test
+
+jshint:
+ jshint index.js lib/*
+
+complexity:
+ cr -c 10 -m 65 \
+ index.js \
+ lib/scrapinode.js lib/scraper.js lib/router.js lib/route.js lib/browser.js \
+ lib/utils/index.js \
+ lib/error/scrapinode-error.js \
+ lib/defaults/index.js
+
+report:
+ rm -rf report
+ mkdir report
+ plato -r -d report index.js lib/*.js lib/defaults/*.js lib/error/*.js lib/utils/index.js
+
+ready: jshint complexity test
+
+.PHONY: test report

0 comments on commit 5a1c8bc

Please sign in to comment.