From b1934aaf00bb08d2296b750c51afc0997686e73c Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Mon, 25 May 2015 00:13:05 -0700 Subject: [PATCH 1/2] adds coverage reporting --- .gitignore | 2 ++ package.json | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4ed75b7fdf..7dc7c9df96 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ test/*.js examples/beautiful_code/parse.coffee *.gem /node_modules +coverage +nyc_output diff --git a/package.json b/package.json index 41f04a6ba0..421fce5fb6 100644 --- a/package.json +++ b/package.json @@ -23,20 +23,22 @@ }, "preferGlobal": true, "scripts": { - "test": "node ./bin/cake test", - "test-harmony": "node --harmony ./bin/cake test" + "test": "node ./bin/cake test", + "test-harmony": "node --harmony ./bin/cake test", + "coverage": "nyc npm test && nyc report" }, "homepage": "http://coffeescript.org", "bugs": "https://github.com/jashkenas/coffeescript/issues", "repository": { "type": "git", - "url": "git://github.com/jashkenas/coffeescript.git" + "url": "gi:t//github.com/jashkenas/coffeescript.git" }, "devDependencies": { - "uglify-js": "~2.2", - "jison": ">=0.2.0", + "docco": "~0.7.0", "highlight.js": "~8.0.0", - "underscore": "~1.5.2", - "docco": "~0.7.0" + "jison": ">=0.2.0", + "nyc": "^2.1.3", + "uglify-js": "~2.2", + "underscore": "~1.5.2" } } From 72f8b33513f69b7afbce74ac6aa5d0f441c4f8b2 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Mon, 25 May 2015 00:16:11 -0700 Subject: [PATCH 2/2] fix formatting error with git url --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 421fce5fb6..18370137f2 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "bugs": "https://github.com/jashkenas/coffeescript/issues", "repository": { "type": "git", - "url": "gi:t//github.com/jashkenas/coffeescript.git" + "url": "git://github.com/jashkenas/coffeescript.git" }, "devDependencies": { "docco": "~0.7.0",