Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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`.
  • Loading branch information...
commit 82385841fc2d1df007e198988ae85d2e60676559 1 parent b7fb05a
@mbostock mbostock authored
View
3  .gitignore
@@ -1 +1,2 @@
-_site
+_site
+node_modules
View
3  .gitmodules
@@ -1,3 +0,0 @@
-[submodule "lib/uglify-js"]
- path = lib/uglify-js
- url = git://github.com/mishoo/UglifyJS.git
View
8 Makefile
@@ -1,5 +1,7 @@
-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 $@
View
21 README.md
@@ -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.
1  lib/uglify-js
@@ -1 +0,0 @@
-Subproject commit b6575ef0b658ab77d2247a88b995c2c623e9d6a7
View
14 package.json
@@ -0,0 +1,14 @@
+{
+ "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"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.