Skip to content

Commit

Permalink
Replace Google's closure compiler with UglifyJS.
Browse files Browse the repository at this point in the history
UglifyJS requires Node.js to run, but it's a lot faster than Google's
compiler and produces smaller gzipped sizes.  Some of the non-gzipped
sizes are a bit larger than Google's but I think the gzipped size is
more important.  Faster runtime is also good when we start testing the
minified versions too.
  • Loading branch information
jasondavies committed Mar 25, 2011
1 parent 39a32e1 commit 1dfd335
Show file tree
Hide file tree
Showing 96 changed files with 5,114 additions and 635 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
JS_COMPILER = \
java -jar lib/google-compiler/compiler.jar \
--externs=src/externs.js \
--charset=UTF-8
./lib/uglifyjs/bin/uglifyjs

all: \
d3.js \
Expand Down Expand Up @@ -155,7 +153,7 @@ tests: \

%.min.js: %.js Makefile
@rm -f $@
$(JS_COMPILER) --js $< --js_output_file $@
$(JS_COMPILER) < $< > $@

d3.js d3%.js: Makefile
@rm -f $@
Expand Down
4 changes: 1 addition & 3 deletions d3.behavior.min.js

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

4 changes: 1 addition & 3 deletions d3.csv.min.js

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

12 changes: 1 addition & 11 deletions d3.geo.min.js

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

Loading

0 comments on commit 1dfd335

Please sign in to comment.