From 3e3b0e27cb37fa7000f5b173ddf6178f713c4f3b Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Sun, 17 Feb 2013 21:57:53 -0600 Subject: [PATCH 1/2] Adding complexity report module --- Makefile | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f4a3b9ebe..41a6bd09d 100755 --- a/Makefile +++ b/Makefile @@ -14,4 +14,7 @@ test-cov-html: unit: @NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit --ignore-leaks > results.xml --timeout 3000 +complexity: + ./node_modules/.bin/cr lib -o complexity.txt + .PHONY: test tap test-cov test-cov-html unit lib-cov rm-lib-cov \ No newline at end of file diff --git a/package.json b/package.json index 0869d189f..5152ab7d0 100755 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "handlebars": ">= 1.0.8", "jade": "~0.28.1", "blanket": "1.0.x", - "travis-cov": "0.2.x" + "travis-cov": "0.2.x", + "complexity-report": "0.x.x" }, "scripts": { "test": "make test && make test-cov && make unit", From 9e379bfe852c2042962cd114da9612203f7d09c2 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Mon, 18 Feb 2013 14:51:02 -0600 Subject: [PATCH 2/2] Adding complexity report make command --- .gitignore | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 77ba16cb0..7e1574dc5 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,4 @@ config.json */*/._* coverage.* lib-cov - +complexity.md diff --git a/Makefile b/Makefile index 41a6bd09d..b30510a57 100755 --- a/Makefile +++ b/Makefile @@ -15,6 +15,6 @@ unit: @NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit --ignore-leaks > results.xml --timeout 3000 complexity: - ./node_modules/.bin/cr lib -o complexity.txt + ./node_modules/.bin/cr -o complexity.md -f markdown lib .PHONY: test tap test-cov test-cov-html unit lib-cov rm-lib-cov \ No newline at end of file