Permalink
Browse files

Auto-update version number in package.json.

  • Loading branch information...
1 parent 402c2e4 commit 45098edc7ad79b6b7ec655afacc0a05caa69e8d7 @jasondavies jasondavies committed Aug 23, 2011
Showing with 20 additions and 2 deletions.
  1. +5 −1 Makefile
  2. +1 −1 package.json
  3. +14 −0 package.json.template
View
@@ -19,7 +19,8 @@ all: \
d3.geom.js \
d3.geom.min.js \
d3.time.js \
- d3.time.min.js
+ d3.time.min.js \
+ package.json
.INTERMEDIATE d3.js: \
src/start.js \
@@ -201,5 +202,8 @@ d3.js d3%.js: Makefile
cat $(filter %.js,$^) > $@
@chmod a-w $@
+package.json: d3.js
+ sed -e s/{version}/`node -e 'require("./test/env"); require("./d3"); d3.version'`/ $@.template > $@
+
clean:
rm -f d3*.js
View
@@ -1,6 +1,6 @@
{
"name": "d3",
- "version": "1.29.5",
+ "version": "1.29.6",
"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/",
View
@@ -0,0 +1,14 @@
+{
+ "name": "d3",
+ "version": "{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"
+ }
+}

0 comments on commit 45098ed

Please sign in to comment.