Skip to content

Commit

Permalink
Merge branch 'package' of https://github.com/jasondavies/d3 into release
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 18, 2011
2 parents ee10316 + a97464f commit f8ce523
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ all: \
d3.geom.js \
d3.geom.min.js \
d3.time.js \
d3.time.min.js
d3.time.min.js \
package.json

# Modify this rule to build your own custom release.
# Run `make d3.custom.min.js` to produce the minified version.
Expand Down Expand Up @@ -244,5 +245,8 @@ d3.js d3%.js: Makefile
cat $(filter %.js,$^) > $@
@chmod a-w $@

package.json: d3.js
node src/package.js > $@

clean:
rm -f d3*.js
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@
"name": "d3",
"version": "2.1.3",
"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",
Expand Down
17 changes: 17 additions & 0 deletions src/package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require("../test/env");
require("../d3");

require("util").puts(JSON.stringify({
"name": "d3",
"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/",
"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",
"vows": "0.5.10"
}
}, null, 2));

0 comments on commit f8ce523

Please sign in to comment.