Commit 82385841 authored by Mike Bostock's avatar Mike Bostock
Browse files

Replace submodule with package.json.

This is better, because now we can enumerate all of our dependencies without
embedding them as submodules. After pulling, run `npm install`.
parent b7fb05ab
\ No newline at end of file
[submodule "lib/uglify-js"]
path = lib/uglify-js
url = git://
# See the README for installation instructions.
JS_COMPILER = ./node_modules/uglify-js/bin/uglifyjs
JS_TESTER = ./node_modules/vows/bin/vows
all: \
d3.js \
......@@ -188,7 +190,7 @@ d3.geom.js: \
test: all
%.min.js: %.js Makefile
@rm -f $@
......@@ -28,3 +28,24 @@ built-in server:
python -m SimpleHTTPServer 8888
Once this is running, go to: <http://localhost:8888/examples/>
### Development Setup
This repository should work out of the box if you just want to create new
visualizations using D3. On the other hand, if you want to extend D3 with new
features, fix bugs, or run tests, you'll need to install a few more things.
D3's test framework uses [Vows](, which depends on
[Node.js]( and [NPM]( If you are
developing on Mac OS X, an easy way to install Node and NPM is using
brew install node
brew install npm
Next, from the root directory of this repository, install D3's dependencies:
npm install
You can see the list of dependencies in package.json. The packages will be
installed in the node_modules directory.
Subproject commit b6575ef0b658ab77d2247a88b995c2c623e9d6a7
"name": "d3",
"version": "1.29.5",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": ["dom", "w3c", "visualization", "svg", "animation", "canvas"],
"homepage": "",
"author": {"name": "Mike Bostock", "url": ""},
"repository": {"type": "git", "url": ""},
"dependencies": {
"uglify-js": "1.0.6",
"jsdom": "0.2.3",
"vows": "0.5.10"
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