From 5166102c2f590887f0b856462846c0ac6f6bb1e6 Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Sat, 10 Dec 2011 09:42:12 +0000 Subject: [PATCH 1/3] Update dependencies and use "devDependencies". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using "devDependencies" prevents "vows" etc. from being installed if D3 is being installed as a dependency. I'm not sure whether "jsdom" counts as a true dependency or not as we only really use it for the tests. I've also added a "scripts": {"test": …} parameter, which specifies what happens when you run "npm test". --- package.json | 11 +++++++---- src/package.js | 11 ++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 074362a7..81ad4452 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,12 @@ "url": "http://github.com/mbostock/d3.git" }, "main": "d3.js", - "dependencies": { - "uglify-js": "1.1.1", - "jsdom": "0.2.9", - "vows": "0.5.13" + "devDependencies": { + "uglify-js": "1.2", + "jsdom": "0.2.10", + "vows": "0.6.0" + }, + "scripts": { + "test": "./node_modules/vows/bin/vows" } } diff --git a/src/package.js b/src/package.js index 03828425..16a935e1 100644 --- a/src/package.js +++ b/src/package.js @@ -10,9 +10,10 @@ require("util").puts(JSON.stringify({ "author": {"name": "Mike Bostock", "url": "http://bost.ocks.org/mike"}, "repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"}, "main": "d3.js", - "dependencies": { - "uglify-js": "1.1.1", - "jsdom": "0.2.9", - "vows": "0.5.13" - } + "devDependencies": { + "uglify-js": "1.2", + "jsdom": "0.2.10", + "vows": "0.6.0" + }, + "scripts": {"test": "./node_modules/vows/bin/vows"} }, null, 2)); From 0fc6b900bb0593b8d7a6da9ea08c39756d34ed3f Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Wed, 28 Dec 2011 11:41:55 +0000 Subject: [PATCH 2/3] Update dependency versions. --- package.json | 4 ++-- src/package.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 81ad4452..c9f8e174 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,9 @@ }, "main": "d3.js", "devDependencies": { - "uglify-js": "1.2", + "uglify-js": "1.2.3", "jsdom": "0.2.10", - "vows": "0.6.0" + "vows": "0.6.1" }, "scripts": { "test": "./node_modules/vows/bin/vows" diff --git a/src/package.js b/src/package.js index 16a935e1..99c3f5b4 100644 --- a/src/package.js +++ b/src/package.js @@ -11,9 +11,9 @@ require("util").puts(JSON.stringify({ "repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"}, "main": "d3.js", "devDependencies": { - "uglify-js": "1.2", + "uglify-js": "1.2.3", "jsdom": "0.2.10", - "vows": "0.6.0" + "vows": "0.6.1" }, "scripts": {"test": "./node_modules/vows/bin/vows"} }, null, 2)); From f217c23472660d37537745b2015d6b8d5a4057e8 Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Fri, 30 Dec 2011 18:41:40 +0000 Subject: [PATCH 3/3] Reinstate JSDOM as a primary npm dependency. Also, set vows version to "0.6.x" as the exact patch version is not important right now. --- package.json | 6 ++++-- src/package.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c9f8e174..5d96f865 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,12 @@ "url": "http://github.com/mbostock/d3.git" }, "main": "d3.js", + "dependencies": { + "jsdom": "0.2.10" + }, "devDependencies": { "uglify-js": "1.2.3", - "jsdom": "0.2.10", - "vows": "0.6.1" + "vows": "0.6.x" }, "scripts": { "test": "./node_modules/vows/bin/vows" diff --git a/src/package.js b/src/package.js index 99c3f5b4..a64bb607 100644 --- a/src/package.js +++ b/src/package.js @@ -10,10 +10,12 @@ require("util").puts(JSON.stringify({ "author": {"name": "Mike Bostock", "url": "http://bost.ocks.org/mike"}, "repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"}, "main": "d3.js", + "dependencies": { + "jsdom": "0.2.10" + }, "devDependencies": { "uglify-js": "1.2.3", - "jsdom": "0.2.10", - "vows": "0.6.1" + "vows": "0.6.x" }, "scripts": {"test": "./node_modules/vows/bin/vows"} }, null, 2));