Skip to content

Commit

Permalink
Merge branch 'master' into default-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Nov 23, 2011
2 parents a35fc55 + 2df8c62 commit cc3f5da
Show file tree
Hide file tree
Showing 194 changed files with 8,686 additions and 1,910 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_site
node_modules
.DS_Store
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
examples/
test/
lib/
.DS_Store
54 changes: 37 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# See the README for installation instructions.

JS_COMPILER = ./node_modules/uglify-js/bin/uglifyjs
JS_TESTER = ./node_modules/vows/bin/vows
NODE_PATH ?= ./node_modules
JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
JS_TESTER = $(NODE_PATH)/vows/bin/vows

all: \
JS_FILES = \
d3.js \
d3.min.js \
d3.chart.js \
d3.chart.min.js \
d3.layout.js \
d3.layout.min.js \
d3.csv.js \
d3.csv.min.js \
d3.geo.js \
d3.geo.min.js \
d3.geom.js \
d3.geom.min.js \
d3.time.js \
d3.time.min.js
d3.time.js

all: \
$(JS_FILES) \
$(JS_FILES:.js=.min.js) \
package.json

# Modify this rule to build your own custom release.
# Run `make d3.custom.min.js` to produce the minified version.
Expand All @@ -36,17 +35,22 @@ d3.custom.js: \
src/end.js

d3.core.js: \
src/compat/date.js \
src/compat/style.js \
src/core/core.js \
src/core/date.js \
src/core/object.js \
src/core/array.js \
src/core/this.js \
src/core/functor.js \
src/core/rebind.js \
src/core/ascending.js \
src/core/descending.js \
src/core/mean.js \
src/core/median.js \
src/core/min.js \
src/core/max.js \
src/core/extent.js \
src/core/random.js \
src/core/number.js \
src/core/sum.js \
src/core/quantile.js \
src/core/zip.js \
Expand All @@ -72,6 +76,7 @@ d3.core.js: \
src/core/ns.js \
src/core/dispatch.js \
src/core/format.js \
src/core/formatPrefix.js \
src/core/ease.js \
src/core/event.js \
src/core/interpolate.js \
Expand All @@ -91,8 +96,6 @@ d3.core.js: \
src/core/selection-insert.js \
src/core/selection-remove.js \
src/core/selection-data.js \
src/core/selection-enter.js \
src/core/selection-enter-select.js \
src/core/selection-filter.js \
src/core/selection-map.js \
src/core/selection-sort.js \
Expand All @@ -103,6 +106,8 @@ d3.core.js: \
src/core/selection-node.js \
src/core/selection-transition.js \
src/core/selection-root.js \
src/core/selection-enter.js \
src/core/selection-enter-select.js \
src/core/transition.js \
src/core/transition-select.js \
src/core/transition-selectAll.js \
Expand All @@ -115,6 +120,7 @@ d3.core.js: \
src/core/transition-each.js \
src/core/transition-transition.js \
src/core/timer.js \
src/core/transform.js \
src/core/noop.js

d3.scale.js: \
Expand Down Expand Up @@ -144,7 +150,8 @@ d3.svg.js: \
src/svg/mouse.js \
src/svg/touches.js \
src/svg/symbol.js \
src/svg/axis.js
src/svg/axis.js \
src/svg/brush.js

d3.behavior.js: \
src/behavior/behavior.js \
Expand Down Expand Up @@ -182,9 +189,15 @@ d3.geo.js: \
src/geo/geo.js \
src/geo/azimuthal.js \
src/geo/albers.js \
src/geo/bonne.js \
src/geo/equirectangular.js \
src/geo/mercator.js \
src/geo/type.js \
src/geo/path.js \
src/geo/bounds.js \
src/geo/circle.js \
src/geo/greatArc.js \
src/geo/greatCircle.js \
src/end.js

d3.csv.js: \
Expand Down Expand Up @@ -237,10 +250,17 @@ test: all
@rm -f $@
$(JS_COMPILER) < $< > $@

d3.js d3%.js: Makefile
d3.%: Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
@chmod a-w $@

install:
mkdir -p node_modules
npm install

package.json: d3.js src/package.js
node src/package.js > $@

clean:
rm -f d3*.js
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ developing on Mac OS X, an easy way to install Node and NPM is using

Next, from the root directory of this repository, install D3's dependencies:

npm install
make install

You can see the list of dependencies in package.json. The packages will be
installed in the node_modules directory.
You can see the list of dependencies in package.json. NPM will install the
packages in the node_modules directory.
2 changes: 1 addition & 1 deletion d3.chart.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion d3.csv.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cc3f5da

Please sign in to comment.