Commit a97464fa authored by Jason Davies's avatar Jason Davies

Use pure node.js to generate package.json.

parent 45098edc
......@@ -203,7 +203,7 @@ d3.js d3%.js: Makefile
@chmod a-w $@
package.json: d3.js
sed -e s/{version}/`node -e 'require("./test/env"); require("./d3"); d3.version'`/ $@.template > $@
node src/package.js > $@
clean:
rm -f d3*.js
......@@ -2,10 +2,23 @@
"name": "d3",
"version": "1.29.6",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": ["dom", "w3c", "visualization", "svg", "animation", "canvas"],
"keywords": [
"dom",
"w3c",
"visualization",
"svg",
"animation",
"canvas"
],
"homepage": "http://mbostock.github.com/d3/",
"author": {"name": "Mike Bostock", "url": "http://bost.ocks.org/mike"},
"repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"},
"author": {
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"repository": {
"type": "git",
"url": "http://github.com/mbostock/d3.git"
},
"dependencies": {
"uglify-js": "1.0.6",
"jsdom": "0.2.3",
......
{
require("../test/env");
require("../d3");
require("util").puts(JSON.stringify({
"name": "d3",
"version": "{version}",
"version": d3.version,
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": ["dom", "w3c", "visualization", "svg", "animation", "canvas"],
"homepage": "http://mbostock.github.com/d3/",
......@@ -11,4 +14,4 @@
"jsdom": "0.2.3",
"vows": "0.5.10"
}
}
}, null, 2));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment