Commit 82385841 authored by Mike Bostock's avatar Mike Bostock

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
_site
\ No newline at end of file
_site
node_modules
[submodule "lib/uglify-js"]
path = lib/uglify-js
url = git://github.com/mishoo/UglifyJS.git
JS_COMPILER = \
./lib/uglify-js/bin/uglifyjs
# 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: \
src/end.js
test: all
@vows
@$(JS_TESTER)
%.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](http://vowsjs.org), which depends on
[Node.js](http://nodejs.org/) and [NPM](http://npmjs.org/). If you are
developing on Mac OS X, an easy way to install Node and NPM is using
[Homebrew](http://mxcl.github.com/homebrew/):
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": "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"
}
}
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