Permalink
Browse files

Replace Google's closure compiler with UglifyJS.

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...
1 parent 39a32e1 commit 1dfd3350dcd78ce29f76f4f15da0f94ca219ffad @jasondavies jasondavies committed Mar 25, 2011
Showing with 5,114 additions and 635 deletions.
  1. +2 −4 Makefile
  2. +1 −3 d3.behavior.min.js
  3. +1 −3 d3.csv.min.js
  4. +1 −11 d3.geo.min.js
  5. +1 −15 d3.geom.min.js
  6. +3 −12 d3.js
  7. +1 −17 d3.layout.min.js
  8. +2 −70 d3.min.js
  9. +1 −8 d3.time.min.js
  10. +0 −202 lib/google-compiler/COPYING
  11. +0 −278 lib/google-compiler/README
  12. BIN lib/google-compiler/compiler.jar
  13. +4 −0 lib/uglifyjs/.gitignore
  14. +782 −0 lib/uglifyjs/README.html
  15. +408 −0 lib/uglifyjs/README.org
  16. +212 −0 lib/uglifyjs/bin/uglifyjs
  17. +75 −0 lib/uglifyjs/docstyle.css
  18. +2 −0 lib/uglifyjs/index.js
  19. +1,319 −0 lib/uglifyjs/lib/parse-js.js
  20. +1,614 −0 lib/uglifyjs/lib/process.js
  21. +22 −0 lib/uglifyjs/lib/squeeze-more.js
  22. +6 −0 lib/uglifyjs/package.json
  23. +28 −0 lib/uglifyjs/test/beautify.js
  24. +402 −0 lib/uglifyjs/test/testparser.js
  25. +1 −0 lib/uglifyjs/test/unit/compress/expected/array1.js
  26. +1 −0 lib/uglifyjs/test/unit/compress/expected/array2.js
  27. +1 −0 lib/uglifyjs/test/unit/compress/expected/array3.js
  28. +1 −0 lib/uglifyjs/test/unit/compress/expected/array4.js
  29. +1 −0 lib/uglifyjs/test/unit/compress/expected/assignment.js
  30. +1 −0 lib/uglifyjs/test/unit/compress/expected/concatstring.js
  31. +1 −0 lib/uglifyjs/test/unit/compress/expected/const.js
  32. +1 −0 lib/uglifyjs/test/unit/compress/expected/empty-blocks.js
  33. +1 −0 lib/uglifyjs/test/unit/compress/expected/forstatement.js
  34. +1 −0 lib/uglifyjs/test/unit/compress/expected/if.js
  35. +1 −0 lib/uglifyjs/test/unit/compress/expected/ifreturn.js
  36. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue10.js
  37. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue11.js
  38. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue13.js
  39. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue14.js
  40. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue16.js
  41. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue17.js
  42. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue20.js
  43. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue21.js
  44. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue25.js
  45. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue27.js
  46. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue28.js
  47. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue29.js
  48. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue30.js
  49. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue34.js
  50. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue4.js
  51. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue48.js
  52. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue50.js
  53. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue53.js
  54. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue54.1.js
  55. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue68.js
  56. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue69.js
  57. +1 −0 lib/uglifyjs/test/unit/compress/expected/issue9.js
  58. +1 −0 lib/uglifyjs/test/unit/compress/expected/strict-equals.js
  59. +1 −0 lib/uglifyjs/test/unit/compress/expected/var.js
  60. +3 −0 lib/uglifyjs/test/unit/compress/test/array1.js
  61. +4 −0 lib/uglifyjs/test/unit/compress/test/array2.js
  62. +4 −0 lib/uglifyjs/test/unit/compress/test/array3.js
  63. +6 −0 lib/uglifyjs/test/unit/compress/test/array4.js
  64. +20 −0 lib/uglifyjs/test/unit/compress/test/assignment.js
  65. +3 −0 lib/uglifyjs/test/unit/compress/test/concatstring.js
  66. +5 −0 lib/uglifyjs/test/unit/compress/test/const.js
  67. +4 −0 lib/uglifyjs/test/unit/compress/test/empty-blocks.js
  68. +10 −0 lib/uglifyjs/test/unit/compress/test/forstatement.js
  69. +6 −0 lib/uglifyjs/test/unit/compress/test/if.js
  70. +9 −0 lib/uglifyjs/test/unit/compress/test/ifreturn.js
  71. +1 −0 lib/uglifyjs/test/unit/compress/test/issue10.js
  72. +3 −0 lib/uglifyjs/test/unit/compress/test/issue11.js
  73. +1 −0 lib/uglifyjs/test/unit/compress/test/issue13.js
  74. +1 −0 lib/uglifyjs/test/unit/compress/test/issue14.js
  75. +1 −0 lib/uglifyjs/test/unit/compress/test/issue16.js
  76. +4 −0 lib/uglifyjs/test/unit/compress/test/issue17.js
  77. +1 −0 lib/uglifyjs/test/unit/compress/test/issue20.js
  78. +6 −0 lib/uglifyjs/test/unit/compress/test/issue21.js
  79. +7 −0 lib/uglifyjs/test/unit/compress/test/issue25.js
  80. +1 −0 lib/uglifyjs/test/unit/compress/test/issue27.js
  81. +3 −0 lib/uglifyjs/test/unit/compress/test/issue28.js
  82. +1 −0 lib/uglifyjs/test/unit/compress/test/issue29.js
  83. +3 −0 lib/uglifyjs/test/unit/compress/test/issue30.js
  84. +3 −0 lib/uglifyjs/test/unit/compress/test/issue34.js
  85. +3 −0 lib/uglifyjs/test/unit/compress/test/issue4.js
  86. +1 −0 lib/uglifyjs/test/unit/compress/test/issue48.js
  87. +9 −0 lib/uglifyjs/test/unit/compress/test/issue50.js
  88. +1 −0 lib/uglifyjs/test/unit/compress/test/issue53.js
  89. +3 −0 lib/uglifyjs/test/unit/compress/test/issue54.1.js
  90. +5 −0 lib/uglifyjs/test/unit/compress/test/issue68.js
  91. +1 −0 lib/uglifyjs/test/unit/compress/test/issue69.js
  92. +4 −0 lib/uglifyjs/test/unit/compress/test/issue9.js
  93. +3 −0 lib/uglifyjs/test/unit/compress/test/strict-equals.js
  94. +3 −0 lib/uglifyjs/test/unit/compress/test/var.js
  95. +46 −0 lib/uglifyjs/test/unit/scripts.js
  96. +3 −12 src/core/call.js
View
@@ -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 \
@@ -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 $@
View
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1dfd335

Please sign in to comment.