Auto-update version number in package.json.

This commit is contained in:
Jason Davies 2011-08-23 11:07:23 +01:00
Родитель 402c2e4922
Коммит 45098edc7a
3 изменённых файлов: 20 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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/",

14
package.json.template Normal file
Просмотреть файл

@ -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"
}
}