Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updating npm

  • Loading branch information...
commit d0d3bed8034b295bebb7f53273d016f2f695fb28 1 parent a1ae728
Chase Brammer cbrammer authored

Showing 197 changed files with 38,620 additions and 0 deletions. Show diff stats Hide diff stats

  1. +61 0 .gitignore
  2. +1 0  node_modules/.bin/_mocha
  3. +1 0  node_modules/.bin/mocha
  4. +6 0 node_modules/mocha/.npmignore
  5. +5 0 node_modules/mocha/.travis.yml
  6. +457 0 node_modules/mocha/History.md
  7. +22 0 node_modules/mocha/LICENSE
  8. +120 0 node_modules/mocha/Makefile
  9. +41 0 node_modules/mocha/Readme.md
  10. +4,793 0 node_modules/mocha/_mocha.js
  11. +417 0 node_modules/mocha/bin/_mocha
  12. +47 0 node_modules/mocha/bin/mocha
  13. +9 0 node_modules/mocha/component.json
  14. BIN  node_modules/mocha/images/error.png
  15. BIN  node_modules/mocha/images/ok.png
  16. +4 0 node_modules/mocha/index.js
  17. +6 0 node_modules/mocha/lib/browser/debug.js
  18. 0  node_modules/mocha/lib/browser/diff.js
  19. +178 0 node_modules/mocha/lib/browser/events.js
  20. 0  node_modules/mocha/lib/browser/fs.js
  21. 0  node_modules/mocha/lib/browser/path.js
  22. +125 0 node_modules/mocha/lib/browser/progress.js
  23. +8 0 node_modules/mocha/lib/browser/tty.js
  24. +69 0 node_modules/mocha/lib/context.js
  25. +50 0 node_modules/mocha/lib/hook.js
  26. +133 0 node_modules/mocha/lib/interfaces/bdd.js
  27. +60 0 node_modules/mocha/lib/interfaces/exports.js
  28. +5 0 node_modules/mocha/lib/interfaces/index.js
  29. +91 0 node_modules/mocha/lib/interfaces/qunit.js
  30. +115 0 node_modules/mocha/lib/interfaces/tdd.js
  31. +288 0 node_modules/mocha/lib/mocha.js
  32. +81 0 node_modules/mocha/lib/ms.js
  33. +362 0 node_modules/mocha/lib/reporters/base.js
  34. +56 0 node_modules/mocha/lib/reporters/doc.js
  35. +63 0 node_modules/mocha/lib/reporters/dot.js
  36. +51 0 node_modules/mocha/lib/reporters/html-cov.js
  37. +254 0 node_modules/mocha/lib/reporters/html.js
  38. +19 0 node_modules/mocha/lib/reporters/index.js
  39. +149 0 node_modules/mocha/lib/reporters/json-cov.js
  40. +61 0 node_modules/mocha/lib/reporters/json-stream.js
  41. +70 0 node_modules/mocha/lib/reporters/json.js
  42. +97 0 node_modules/mocha/lib/reporters/landing.js
  43. +64 0 node_modules/mocha/lib/reporters/list.js
  44. +92 0 node_modules/mocha/lib/reporters/markdown.js
  45. +38 0 node_modules/mocha/lib/reporters/min.js
  46. +259 0 node_modules/mocha/lib/reporters/nyan.js
  47. +86 0 node_modules/mocha/lib/reporters/progress.js
  48. +87 0 node_modules/mocha/lib/reporters/spec.js
  49. +63 0 node_modules/mocha/lib/reporters/tap.js
  50. +65 0 node_modules/mocha/lib/reporters/teamcity.js
  51. +50 0 node_modules/mocha/lib/reporters/templates/coverage.jade
  52. +13 0 node_modules/mocha/lib/reporters/templates/menu.jade
  53. +34 0 node_modules/mocha/lib/reporters/templates/script.html
  54. +301 0 node_modules/mocha/lib/reporters/templates/style.html
  55. +115 0 node_modules/mocha/lib/reporters/xunit.js
  56. +206 0 node_modules/mocha/lib/runnable.js
  57. +496 0 node_modules/mocha/lib/runner.js
  58. +296 0 node_modules/mocha/lib/suite.js
  59. +16 0 node_modules/mocha/lib/template.html
  60. +32 0 node_modules/mocha/lib/test.js
  61. +282 0 node_modules/mocha/lib/utils.js
  62. +203 0 node_modules/mocha/mocha.css
  63. +4,906 0 node_modules/mocha/mocha.js
  64. +1 0  node_modules/mocha/node_modules/.bin/jade
  65. +4 0 node_modules/mocha/node_modules/commander/.npmignore
  66. +4 0 node_modules/mocha/node_modules/commander/.travis.yml
  67. +107 0 node_modules/mocha/node_modules/commander/History.md
  68. +7 0 node_modules/mocha/node_modules/commander/Makefile
  69. +262 0 node_modules/mocha/node_modules/commander/Readme.md
  70. +2 0  node_modules/mocha/node_modules/commander/index.js
  71. +1,026 0 node_modules/mocha/node_modules/commander/lib/commander.js
  72. +34 0 node_modules/mocha/node_modules/commander/package.json
  73. +4 0 node_modules/mocha/node_modules/debug/.npmignore
  74. +47 0 node_modules/mocha/node_modules/debug/History.md
  75. +4 0 node_modules/mocha/node_modules/debug/Makefile
  76. +130 0 node_modules/mocha/node_modules/debug/Readme.md
  77. +120 0 node_modules/mocha/node_modules/debug/debug.component.js
  78. +116 0 node_modules/mocha/node_modules/debug/debug.js
  79. +19 0 node_modules/mocha/node_modules/debug/example/app.js
  80. +24 0 node_modules/mocha/node_modules/debug/example/browser.html
  81. +10 0 node_modules/mocha/node_modules/debug/example/wildcards.js
  82. +22 0 node_modules/mocha/node_modules/debug/example/worker.js
  83. +1 0  node_modules/mocha/node_modules/debug/head.js
  84. +2 0  node_modules/mocha/node_modules/debug/index.js
  85. +135 0 node_modules/mocha/node_modules/debug/lib/debug.js
  86. +31 0 node_modules/mocha/node_modules/debug/package.json
  87. +4 0 node_modules/mocha/node_modules/debug/tail.js
  88. +31 0 node_modules/mocha/node_modules/diff/LICENSE
  89. +94 0 node_modules/mocha/node_modules/diff/README.md
  90. +287 0 node_modules/mocha/node_modules/diff/diff.js
  91. +89 0 node_modules/mocha/node_modules/diff/index.html
  92. +42 0 node_modules/mocha/node_modules/diff/package.json
  93. +81 0 node_modules/mocha/node_modules/diff/style.css
  94. +616 0 node_modules/mocha/node_modules/diff/test/diffTest.js
  95. +48 0 node_modules/mocha/node_modules/growl/History.md
  96. +93 0 node_modules/mocha/node_modules/growl/Readme.md
  97. +188 0 node_modules/mocha/node_modules/growl/lib/growl.js
  98. +13 0 node_modules/mocha/node_modules/growl/package.json
  99. +16 0 node_modules/mocha/node_modules/growl/test.js
  100. +15 0 node_modules/mocha/node_modules/jade/.npmignore
  101. +22 0 node_modules/mocha/node_modules/jade/LICENSE
  102. +147 0 node_modules/mocha/node_modules/jade/bin/jade
  103. +4 0 node_modules/mocha/node_modules/jade/index.js
  104. +3,586 0 node_modules/mocha/node_modules/jade/jade.js
  105. +510 0 node_modules/mocha/node_modules/jade/jade.md
  106. +2 0  node_modules/mocha/node_modules/jade/jade.min.js
  107. +642 0 node_modules/mocha/node_modules/jade/lib/compiler.js
  108. +18 0 node_modules/mocha/node_modules/jade/lib/doctypes.js
  109. +97 0 node_modules/mocha/node_modules/jade/lib/filters.js
  110. +28 0 node_modules/mocha/node_modules/jade/lib/inline-tags.js
  111. +237 0 node_modules/mocha/node_modules/jade/lib/jade.js
  112. +771 0 node_modules/mocha/node_modules/jade/lib/lexer.js
  113. +77 0 node_modules/mocha/node_modules/jade/lib/nodes/attrs.js
  114. +33 0 node_modules/mocha/node_modules/jade/lib/nodes/block-comment.js
  115. +121 0 node_modules/mocha/node_modules/jade/lib/nodes/block.js
  116. +43 0 node_modules/mocha/node_modules/jade/lib/nodes/case.js
  117. +35 0 node_modules/mocha/node_modules/jade/lib/nodes/code.js
  118. +32 0 node_modules/mocha/node_modules/jade/lib/nodes/comment.js
  119. +29 0 node_modules/mocha/node_modules/jade/lib/nodes/doctype.js
  120. +35 0 node_modules/mocha/node_modules/jade/lib/nodes/each.js
  121. +35 0 node_modules/mocha/node_modules/jade/lib/nodes/filter.js
  122. +20 0 node_modules/mocha/node_modules/jade/lib/nodes/index.js
  123. +32 0 node_modules/mocha/node_modules/jade/lib/nodes/literal.js
  124. +36 0 node_modules/mocha/node_modules/jade/lib/nodes/mixin.js
  125. +25 0 node_modules/mocha/node_modules/jade/lib/nodes/node.js
  126. +95 0 node_modules/mocha/node_modules/jade/lib/nodes/tag.js
  127. +36 0 node_modules/mocha/node_modules/jade/lib/nodes/text.js
  128. +710 0 node_modules/mocha/node_modules/jade/lib/parser.js
  129. +174 0 node_modules/mocha/node_modules/jade/lib/runtime.js
  130. +19 0 node_modules/mocha/node_modules/jade/lib/self-closing.js
  131. +49 0 node_modules/mocha/node_modules/jade/lib/utils.js
  132. +2 0  node_modules/mocha/node_modules/jade/node_modules/mkdirp/.gitignore.orig
  133. +5 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/.gitignore.rej
  134. +2 0  node_modules/mocha/node_modules/jade/node_modules/mkdirp/.npmignore
  135. +21 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/LICENSE
  136. +54 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/README.markdown
  137. +6 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/examples/pow.js
  138. +6 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/examples/pow.js.orig
  139. +19 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/examples/pow.js.rej
  140. +79 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/index.js
  141. +32 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/package.json
  142. +38 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/chmod.js
  143. +37 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/clobber.js
  144. +28 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/mkdirp.js
  145. +32 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/perm.js
  146. +39 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/perm_sync.js
  147. +41 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/race.js
  148. +32 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/rel.js
  149. +27 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/sync.js
  150. +28 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/umask.js
  151. +27 0 node_modules/mocha/node_modules/jade/node_modules/mkdirp/test/umask_sync.js
  152. +44 0 node_modules/mocha/node_modules/jade/package.json
  153. +179 0 node_modules/mocha/node_modules/jade/runtime.js
  154. +1 0  node_modules/mocha/node_modules/jade/runtime.min.js
  155. +7 0 node_modules/mocha/node_modules/jade/test.jade
  156. +5 0 node_modules/mocha/node_modules/jade/testing/head.jade
  157. +22 0 node_modules/mocha/node_modules/jade/testing/index.jade
  158. +11 0 node_modules/mocha/node_modules/jade/testing/index.js
  159. +6 0 node_modules/mocha/node_modules/jade/testing/layout.jade
  160. +7 0 node_modules/mocha/node_modules/jade/testing/user.jade
  161. +27 0 node_modules/mocha/node_modules/jade/testing/user.js
  162. +2 0  node_modules/mocha/node_modules/mkdirp/.gitignore.orig
  163. +5 0 node_modules/mocha/node_modules/mkdirp/.gitignore.rej
  164. +2 0  node_modules/mocha/node_modules/mkdirp/.npmignore
  165. +4 0 node_modules/mocha/node_modules/mkdirp/.travis.yml
  166. +21 0 node_modules/mocha/node_modules/mkdirp/LICENSE
  167. +61 0 node_modules/mocha/node_modules/mkdirp/README.markdown
  168. +6 0 node_modules/mocha/node_modules/mkdirp/examples/pow.js
  169. +6 0 node_modules/mocha/node_modules/mkdirp/examples/pow.js.orig
  170. +19 0 node_modules/mocha/node_modules/mkdirp/examples/pow.js.rej
  171. +94 0 node_modules/mocha/node_modules/mkdirp/index.js
  172. +32 0 node_modules/mocha/node_modules/mkdirp/package.json
  173. +38 0 node_modules/mocha/node_modules/mkdirp/test/chmod.js
  174. +37 0 node_modules/mocha/node_modules/mkdirp/test/clobber.js
  175. +28 0 node_modules/mocha/node_modules/mkdirp/test/mkdirp.js
  176. +32 0 node_modules/mocha/node_modules/mkdirp/test/perm.js
  177. +39 0 node_modules/mocha/node_modules/mkdirp/test/perm_sync.js
  178. +41 0 node_modules/mocha/node_modules/mkdirp/test/race.js
  179. +32 0 node_modules/mocha/node_modules/mkdirp/test/rel.js
  180. +25 0 node_modules/mocha/node_modules/mkdirp/test/return.js
  181. +24 0 node_modules/mocha/node_modules/mkdirp/test/return_sync.js
  182. +18 0 node_modules/mocha/node_modules/mkdirp/test/root.js
  183. +32 0 node_modules/mocha/node_modules/mkdirp/test/sync.js
  184. +28 0 node_modules/mocha/node_modules/mkdirp/test/umask.js
  185. +32 0 node_modules/mocha/node_modules/mkdirp/test/umask_sync.js
  186. +1 0  node_modules/mocha/node_modules/ms/.npmignore
  187. +21 0 node_modules/mocha/node_modules/ms/History.md
  188. +8 0 node_modules/mocha/node_modules/ms/Makefile
  189. +24 0 node_modules/mocha/node_modules/ms/README.md
  190. +7 0 node_modules/mocha/node_modules/ms/component.json
  191. +81 0 node_modules/mocha/node_modules/ms/ms.js
  192. +14 0 node_modules/mocha/node_modules/ms/package.json
  193. +19 0 node_modules/mocha/node_modules/ms/test/index.html
  194. +9,266 0 node_modules/mocha/node_modules/ms/test/support/jquery.js
  195. +85 0 node_modules/mocha/node_modules/ms/test/test.js
  196. +46 0 node_modules/mocha/package.json
  197. +18 0 node_modules/mocha/test.js
61 .gitignore
... ... @@ -0,0 +1,61 @@
  1 +lib-cov
  2 +*.seed
  3 +*.log
  4 +*.node
  5 +*.wafpickle-7
  6 +*.lock-wscript
  7 +*.csv
  8 +*.dat
  9 +*.out
  10 +*.pid
  11 +*.gz
  12 +*.swp
  13 +.DS_Store
  14 +dump.rdb
  15 +.jshintrc
  16 +
  17 +pids
  18 +logs
  19 +results
  20 +
  21 +/public/js/app.js
  22 +/public/css/style.css
  23 +npm-debug.log
  24 +/config/version.json
  25 +/config/local.json
  26 +/client/config.js
  27 +.build
  28 +/docs
  29 +
  30 +
  31 +/node_modules/googlemaps
  32 +/node_modules/baptize
  33 +/node_modules/boilerplate
  34 +/node_modules/challenges
  35 +/node_modules/calorie-calculator
  36 +/node_modules/equipment
  37 +/node_modules/interactions
  38 +/node_modules/log-workout
  39 +/node_modules/maps
  40 +/node_modules/user
  41 +/node_modules/tempest
  42 +/node_modules/admin
  43 +/node_modules/achievements
  44 +/node_modules/workout-manager
  45 +/node_modules/payment-api
  46 +/node_modules/media
  47 +/node_modules/action-pipeline
  48 +/node_modules/geolib
  49 +/node_modules/winston-pulse
  50 +/node_modules/paymentApi
  51 +/node_modules/legacy-api
  52 +/node_modules/log-biometric
  53 +/node_modules/gpx-parser
  54 +/node_modules/wpl2
  55 +/node_modules/soap
  56 +/node_modules/sketch
  57 +/node_modules/oauth
  58 +/node_modules/ifit-mail
  59 +/node_modules/static-map
  60 +/node_modules/workout-translator
  61 +
1  node_modules/.bin/_mocha
1  node_modules/.bin/mocha
6 node_modules/mocha/.npmignore
... ... @@ -0,0 +1,6 @@
  1 +test
  2 +examples
  3 +*.sock
  4 +lib-cov
  5 +editors
  6 +support
5 node_modules/mocha/.travis.yml
... ... @@ -0,0 +1,5 @@
  1 +language: node_js
  2 +node_js:
  3 + - 0.4
  4 + - 0.6
  5 + - 0.8
457 node_modules/mocha/History.md
Source Rendered
... ... @@ -0,0 +1,457 @@
  1 +
  2 +1.6.0 / 2012-10-02
  3 +==================
  4 +
  5 + * add object diffs when `err.showDiff` is present
  6 + * add hiding of empty suites when pass/failures are toggled
  7 + * add faster `.length` checks to `checkGlobals()` before performing the filter
  8 +
  9 +1.5.0 / 2012-09-21
  10 +==================
  11 +
  12 + * add `ms()` to `.slow()` and `.timeout()`
  13 + * add `Mocha#checkLeaks()` to re-enable global leak checks
  14 + * add `this.slow()` option [aheckmann]
  15 + * add tab, CR, LF to error diffs for now
  16 + * add faster `.checkGlobals()` solution [guille]
  17 + * remove `fn.call()` from reduce util
  18 + * remove `fn.call()` from filter util
  19 + * fix forEach. Closes #582
  20 + * fix relaying of signals [TooTallNate]
  21 + * fix TAP reporter grep number
  22 +
  23 +1.4.2 / 2012-09-01
  24 +==================
  25 +
  26 + * add support to multiple `Mocha#globals()` calls, and strings
  27 + * add `mocha.reporter()` constructor support [jfirebaugh]
  28 + * add `mocha.timeout()`
  29 + * move query-string parser to utils.js
  30 + * move highlight code to utils.js
  31 + * fix third-party reporter support [exogen]
  32 + * fix client-side API to match node-side [jfirebaugh]
  33 + * fix mocha in iframe [joliss]
  34 +
  35 +1.4.1 / 2012-08-28
  36 +==================
  37 +
  38 + * add missing `Markdown` export
  39 + * fix `Mocha#grep()`, escape regexp strings
  40 + * fix reference error when `devicePixelRatio` is not defined. Closes #549
  41 +
  42 +1.4.0 / 2012-08-22
  43 +==================
  44 +
  45 + * add mkdir -p to `mocha init`. Closes #539
  46 + * add `.only()`. Closes #524
  47 + * add `.skip()`. Closes #524
  48 + * change str.trim() to use utils.trim(). Closes #533
  49 + * fix HTML progress indicator retina display
  50 + * fix url-encoding of click-to-grep HTML functionality
  51 +
  52 +1.3.2 / 2012-08-01
  53 +==================
  54 +
  55 + * fix exports double-execution regression. Closes #531
  56 +
  57 +1.3.1 / 2012-08-01
  58 +==================
  59 +
  60 + * add passes/failures toggling to HTML reporter
  61 + * add pending state to `xit()` and `xdescribe()` [Brian Moore]
  62 + * add the @charset "UTF-8"; to fix #522 with FireFox. [Jonathan Creamer]
  63 + * add border-bottom to #stats links
  64 + * add check for runnable in `Runner#uncaught()`. Closes #494
  65 + * add 0.4 and 0.6 back to travis.yml
  66 + * add `-E, --growl-errors` to growl on failures only
  67 + * add prefixes to debug() names. Closes #497
  68 + * add `Mocha#invert()` to js api
  69 + * change dot reporter to use sexy unicode dots
  70 + * fix error when clicking pending test in HTML reporter
  71 + * fix `make tm`
  72 +
  73 +1.3.0 / 2012-07-05
  74 +==================
  75 +
  76 + * add window scrolling to `HTML` reporter
  77 + * add v8 `--trace-*` option support
  78 + * add support for custom reports via `--reporter MODULE`
  79 + * add `--invert` switch to invert `--grep` matches
  80 + * fix export of `Nyan` reporter. Closes #495
  81 + * fix escaping of `HTML` suite titles. Closes #486
  82 + * fix `done()` called multiple times with an error test
  83 + * change `--grep` - regexp escape the input
  84 +
  85 +1.2.2 / 2012-06-28
  86 +==================
  87 +
  88 + * Added 0.8.0 support
  89 +
  90 +1.2.1 / 2012-06-25
  91 +==================
  92 +
  93 + * Added `this.test.error(err)` support to after each hooks. Closes #287
  94 + * Added: export top-level suite on global mocha object (mocha.suite). Closes #448
  95 + * Fixed `js` code block format error in markdown reporter
  96 + * Fixed deprecation warning when using `path.existsSync`
  97 + * Fixed --globals with wildcard
  98 + * Fixed chars in nyan when his head moves back
  99 + * Remove `--growl` from test/mocha.opts. Closes #289
  100 +
  101 +1.2.0 / 2012-06-17
  102 +==================
  103 +
  104 + * Added `nyan` reporter [Atsuya Takagi]
  105 + * Added `mocha init <path>` to copy client files
  106 + * Added "specify" synonym for "it" [domenic]
  107 + * Added global leak wildcard support [nathanbowser]
  108 + * Fixed runner emitter leak. closes #432
  109 + * Fixed omission of .js extension. Closes #454
  110 +
  111 +1.1.0 / 2012-05-30
  112 +==================
  113 +
  114 + * Added: check each `mocha(1)` arg for directories to walk
  115 + * Added `--recursive` [tricknotes]
  116 + * Added `context` for BDD [hokaccha]
  117 + * Added styling for new clickable titles
  118 + * Added clickable suite titles to HTML reporter
  119 + * Added warning when strings are thrown as errors
  120 + * Changed: green arrows again in HTML reporter styling
  121 + * Changed ul/li elements instead of divs for better copy-and-pasting [joliss]
  122 + * Fixed issue #325 - add better grep support to js api
  123 + * Fixed: save timer references to avoid Sinon interfering.
  124 +
  125 +1.0.3 / 2012-04-30
  126 +==================
  127 +
  128 + * Fixed string diff newlines
  129 + * Fixed: removed mocha.css target. Closes #401
  130 +
  131 +1.0.2 / 2012-04-25
  132 +==================
  133 +
  134 + * Added HTML reporter duration. Closes #47
  135 + * Fixed: one postMessage event listener [exogen]
  136 + * Fixed: allow --globals to be used multiple times. Closes #100 [brendannee]
  137 + * Fixed #158: removes jquery include from browser tests
  138 + * Fixed grep. Closes #372 [brendannee]
  139 + * Fixed #166 - When grepping don't display the empty suites
  140 + * Removed test/browser/style.css. Closes #385
  141 +
  142 +1.0.1 / 2012-04-04
  143 +==================
  144 +
  145 + * Fixed `.timeout()` in hooks
  146 + * Fixed: allow callback for `mocha.run()` in client version
  147 + * Fixed browser hook error display. Closes #361
  148 +
  149 +1.0.0 / 2012-03-24
  150 +==================
  151 +
  152 + * Added js API. Closes #265
  153 + * Added: initial run of tests with `--watch`. Closes #345
  154 + * Added: mark `location` as a global on the CS. Closes #311
  155 + * Added `markdown` reporter (github flavour)
  156 + * Added: scrolling menu to coverage.html. Closes #335
  157 + * Added source line to html report for Safari [Tyson Tate]
  158 + * Added "min" reporter, useful for `--watch` [Jakub Nešetřil]
  159 + * Added support for arbitrary compilers via . Closes #338 [Ian Young]
  160 + * Added Teamcity export to lib/reporters/index [Michael Riley]
  161 + * Fixed chopping of first char in error reporting. Closes #334 [reported by topfunky]
  162 + * Fixed terrible FF / Opera stack traces
  163 +
  164 +0.14.1 / 2012-03-06
  165 +==================
  166 +
  167 + * Added lib-cov to _.npmignore_
  168 + * Added reporter to `mocha.run([reporter])` as argument
  169 + * Added some margin-top to the HTML reporter
  170 + * Removed jQuery dependency
  171 + * Fixed `--watch`: purge require cache. Closes #266
  172 +
  173 +0.14.0 / 2012-03-01
  174 +==================
  175 +
  176 + * Added string diff support for terminal reporters
  177 +
  178 +0.13.0 / 2012-02-23
  179 +==================
  180 +
  181 + * Added preliminary test coverage support. Closes #5
  182 + * Added `HTMLCov` reporter
  183 + * Added `JSONCov` reporter [kunklejr]
  184 + * Added `xdescribe()` and `xit()` to the BDD interface. Closes #263 (docs * Changed: make json reporter output pretty json
  185 + * Fixed node-inspector support, swapped `--debug` for `debug` to match node.
  186 +needed)
  187 +Closes #247
  188 +
  189 +0.12.1 / 2012-02-14
  190 +==================
  191 +
  192 + * Added `npm docs mocha` support [TooTallNate]
  193 + * Added a `Context` object used for hook and test-case this. Closes #253
  194 + * Fixed `Suite#clone()` `.ctx` reference. Closes #262
  195 +
  196 +0.12.0 / 2012-02-02
  197 +==================
  198 +
  199 + * Added .coffee `--watch` support. Closes #242
  200 + * Added support to `--require` files relative to the CWD. Closes #241
  201 + * Added quick n dirty syntax highlighting. Closes #248
  202 + * Changed: made HTML progress indicator smaller
  203 + * Fixed xunit errors attribute [dhendo]
  204 +
  205 +0.10.2 / 2012-01-21
  206 +==================
  207 +
  208 + * Fixed suite count in reporter stats. Closes #222
  209 + * Fixed `done()` after timeout error reporting [Phil Sung]
  210 + * Changed the 0-based errors to 1
  211 +
  212 +0.10.1 / 2012-01-17
  213 +==================
  214 +
  215 + * Added support for node 0.7.x
  216 + * Fixed absolute path support. Closes #215 [kompiro]
  217 + * Fixed `--no-colors` option [Jussi Virtanen]
  218 + * Fixed Arial CSS typo in the correct file
  219 +
  220 +0.10.0 / 2012-01-13
  221 +==================
  222 +
  223 + * Added `-b, --bail` to exit on first exception [guillermo]
  224 + * Added support for `-gc` / `--expose-gc` [TooTallNate]
  225 + * Added `qunit`-inspired interface
  226 + * Added MIT LICENSE. Closes #194
  227 + * Added: `--watch` all .js in the CWD. Closes #139
  228 + * Fixed `self.test` reference in runner. Closes #189
  229 + * Fixed double reporting of uncaught exceptions after timeout. Closes #195
  230 +
  231 +0.8.2 / 2012-01-05
  232 +==================
  233 +
  234 + * Added test-case context support. Closes #113
  235 + * Fixed exit status. Closes #187
  236 + * Update commander. Closes #190
  237 +
  238 +0.8.1 / 2011-12-30
  239 +==================
  240 +
  241 + * Fixed reporting of uncaught exceptions. Closes #183
  242 + * Fixed error message defaulting [indutny]
  243 + * Changed mocha(1) from bash to node for windows [Nathan Rajlich]
  244 +
  245 +0.8.0 / 2011-12-28
  246 +==================
  247 +
  248 + * Added `XUnit` reporter [FeeFighters/visionmedia]
  249 + * Added `say(1)` notification support [Maciej Małecki]
  250 + * Changed: fail when done() is invoked with a non-Error. Closes #171
  251 + * Fixed `err.stack`, defaulting to message. Closes #180
  252 + * Fixed: `make tm` mkdir -p the dest. Closes #137
  253 + * Fixed mocha(1) --help bin name
  254 + * Fixed `-d` for `--debug` support
  255 +
  256 +0.7.1 / 2011-12-22
  257 +==================
  258 +
  259 + * Removed `mocha-debug(1)`, use `mocha --debug`
  260 + * Fixed CWD relative requires
  261 + * Fixed growl issue on windows [Raynos]
  262 + * Fixed: platform specific line endings [TooTallNate]
  263 + * Fixed: escape strings in HTML reporter. Closes #164
  264 +
  265 +0.7.0 / 2011-12-18
  266 +==================
  267 +
  268 + * Added support for IE{7,8} [guille]
  269 + * Changed: better browser nextTick implementation [guille]
  270 +
  271 +0.6.0 / 2011-12-18
  272 +==================
  273 +
  274 + * Added setZeroTimeout timeout for browser (nicer stack traces). Closes #153
  275 + * Added "view source" on hover for HTML reporter to make it obvious
  276 + * Changed: replace custom growl with growl lib
  277 + * Fixed duplicate reporting for HTML reporter. Closes #154
  278 + * Fixed silent hook errors in the HTML reporter. Closes #150
  279 +
  280 +0.5.0 / 2011-12-14
  281 +==================
  282 +
  283 + * Added: push node_modules directory onto module.paths for relative require Closes #93
  284 + * Added teamcity reporter [blindsey]
  285 + * Fixed: recover from uncaught exceptions for tests. Closes #94
  286 + * Fixed: only emit "test end" for uncaught within test, not hook
  287 +
  288 +0.4.0 / 2011-12-14
  289 +==================
  290 +
  291 + * Added support for test-specific timeouts via `this.timeout(0)`. Closes #134
  292 + * Added guillermo's client-side EventEmitter. Closes #132
  293 + * Added progress indicator to the HTML reporter
  294 + * Fixed slow browser tests. Closes #135
  295 + * Fixed "suite" color for light terminals
  296 + * Fixed `require()` leak spotted by [guillermo]
  297 +
  298 +0.3.6 / 2011-12-09
  299 +==================
  300 +
  301 + * Removed suite merging (for now)
  302 +
  303 +0.3.5 / 2011-12-08
  304 +==================
  305 +
  306 + * Added support for `window.onerror` [guillermo]
  307 + * Fixed: clear timeout on uncaught exceptions. Closes #131 [guillermo]
  308 + * Added `mocha.css` to PHONY list.
  309 + * Added `mocha.js` to PHONY list.
  310 +
  311 +0.3.4 / 2011-12-08
  312 +==================
  313 +
  314 + * Added: allow `done()` to be called with non-Error
  315 + * Added: return Runner from `mocha.run()`. Closes #126
  316 + * Fixed: run afterEach even on failures. Closes #125
  317 + * Fixed clobbering of current runnable. Closes #121
  318 +
  319 +0.3.3 / 2011-12-08
  320 +==================
  321 +
  322 + * Fixed hook timeouts. Closes #120
  323 + * Fixed uncaught exceptions in hooks
  324 +
  325 +0.3.2 / 2011-12-05
  326 +==================
  327 +
  328 + * Fixed weird reporting when `err.message` is not present
  329 +
  330 +0.3.1 / 2011-12-04
  331 +==================
  332 +
  333 + * Fixed hook event emitter leak. Closes #117
  334 + * Fixed: export `Spec` constructor. Closes #116
  335 +
  336 +0.3.0 / 2011-12-04
  337 +==================
  338 +
  339 + * Added `-w, --watch`. Closes #72
  340 + * Added `--ignore-leaks` to ignore global leak checking
  341 + * Added browser `?grep=pattern` support
  342 + * Added `--globals <names>` to specify accepted globals. Closes #99
  343 + * Fixed `mocha-debug(1)` on some systems. Closes #232
  344 + * Fixed growl total, use `runner.total`
  345 +
  346 +0.2.0 / 2011-11-30
  347 +==================
  348 +
  349 + * Added `--globals <names>` to specify accepted globals. Closes #99
  350 + * Fixed funky highlighting of messages. Closes #97
  351 + * Fixed `mocha-debug(1)`. Closes #232
  352 + * Fixed growl total, use runner.total
  353 +
  354 +0.1.0 / 2011-11-29
  355 +==================
  356 +
  357 + * Added `suiteSetup` and `suiteTeardown` to TDD interface [David Henderson]
  358 + * Added growl icons. Closes #84
  359 + * Fixed coffee-script support
  360 +
  361 +0.0.8 / 2011-11-25
  362 +==================
  363 +
  364 + * Fixed: use `Runner#total` for accurate reporting
  365 +
  366 +0.0.7 / 2011-11-25
  367 +==================
  368 +
  369 + * Added `Hook`
  370 + * Added `Runnable`
  371 + * Changed: `Test` is `Runnable`
  372 + * Fixed global leak reporting in hooks
  373 + * Fixed: > 2 calls to done() only report the error once
  374 + * Fixed: clear timer on failure. Closes #80
  375 +
  376 +0.0.6 / 2011-11-25
  377 +==================
  378 +
  379 + * Fixed return on immediate async error. Closes #80
  380 +
  381 +0.0.5 / 2011-11-24
  382 +==================
  383 +
  384 + * Fixed: make mocha.opts whitespace less picky [kkaefer]
  385 +
  386 +0.0.4 / 2011-11-24
  387 +==================
  388 +
  389 + * Added `--interfaces`
  390 + * Added `--reporters`
  391 + * Added `-c, --colors`. Closes #69
  392 + * Fixed hook timeouts
  393 +
  394 +0.0.3 / 2011-11-23
  395 +==================
  396 +
  397 + * Added `-C, --no-colors` to explicitly disable
  398 + * Added coffee-script support
  399 +
  400 +0.0.2 / 2011-11-22
  401 +==================
  402 +
  403 + * Fixed global leak detection due to Safari bind() change
  404 + * Fixed: escape html entities in Doc reporter
  405 + * Fixed: escape html entities in HTML reporter
  406 + * Fixed pending test support for HTML reporter. Closes #66
  407 +
  408 +0.0.1 / 2011-11-22
  409 +==================
  410 +
  411 + * Added `--timeout` second shorthand support, ex `--timeout 3s`.
  412 + * Fixed "test end" event for uncaughtExceptions. Closes #61
  413 +
  414 +0.0.1-alpha6 / 2011-11-19
  415 +==================
  416 +
  417 + * Added travis CI support (needs enabling when public)
  418 + * Added preliminary browser support
  419 + * Added `make mocha.css` target. Closes #45
  420 + * Added stack trace to TAP errors. Closes #52
  421 + * Renamed tearDown to teardown. Closes #49
  422 + * Fixed: cascading hooksc. Closes #30
  423 + * Fixed some colors for non-tty
  424 + * Fixed errors thrown in sync test-cases due to nextTick
  425 + * Fixed Base.window.width... again give precedence to 0.6.x
  426 +
  427 +0.0.1-alpha5 / 2011-11-17
  428 +==================
  429 +
  430 + * Added `doc` reporter. Closes #33
  431 + * Added suite merging. Closes #28
  432 + * Added TextMate bundle and `make tm`. Closes #20
  433 +
  434 +0.0.1-alpha4 / 2011-11-15
  435 +==================
  436 +
  437 + * Fixed getWindowSize() for 0.4.x
  438 +
  439 +0.0.1-alpha3 / 2011-11-15
  440 +==================
  441 +
  442 + * Added `-s, --slow <ms>` to specify "slow" test threshold
  443 + * Added `mocha-debug(1)`
  444 + * Added `mocha.opts` support. Closes #31
  445 + * Added: default [files] to _test/*.js_
  446 + * Added protection against multiple calls to `done()`. Closes #35
  447 + * Changed: bright yellow for slow Dot reporter tests
  448 +
  449 +0.0.1-alpha1 / 2011-11-08
  450 +==================
  451 +
  452 + * Missed this one :)
  453 +
  454 +0.0.1-alpha1 / 2011-11-08
  455 +==================
  456 +
  457 + * Initial release
22 node_modules/mocha/LICENSE
... ... @@ -0,0 +1,22 @@
  1 +(The MIT License)
  2 +
  3 +Copyright (c) 20011-2012 TJ Holowaychuk <tj@vision-media.ca>
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining
  6 +a copy of this software and associated documentation files (the
  7 +'Software'), to deal in the Software without restriction, including
  8 +without limitation the rights to use, copy, modify, merge, publish,
  9 +distribute, sublicense, and/or sell copies of the Software, and to
  10 +permit persons to whom the Software is furnished to do so, subject to
  11 +the following conditions:
  12 +
  13 +The above copyright notice and this permission notice shall be
  14 +included in all copies or substantial portions of the Software.
  15 +
  16 +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  17 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  18 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  20 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  21 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  22 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
120 node_modules/mocha/Makefile
... ... @@ -0,0 +1,120 @@
  1 +
  2 +REPORTER ?= dot
  3 +TM_DEST = ~/Library/Application\ Support/TextMate/Bundles
  4 +TM_BUNDLE = JavaScript\ mocha.tmbundle
  5 +SRC = $(shell find lib -name "*.js" -type f | sort)
  6 +SUPPORT = $(wildcard support/*.js)
  7 +
  8 +all: mocha.js
  9 +
  10 +mocha.js: $(SRC) $(SUPPORT)
  11 + @node support/compile $(SRC)
  12 + @cat \
  13 + support/head.js \
  14 + _mocha.js \
  15 + support/tail.js \
  16 + support/foot.js \
  17 + > mocha.js
  18 +
  19 +clean:
  20 + rm -f mocha.js
  21 + rm -fr lib-cov
  22 + rm -f coverage.html
  23 +
  24 +test-cov: lib-cov
  25 + @COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
  26 +
  27 +lib-cov:
  28 + @rm -fr ./$@
  29 + @jscoverage lib $@
  30 +
  31 +test: test-unit
  32 +
  33 +test-all: test-bdd test-tdd test-qunit test-exports test-unit test-grep test-jsapi test-compilers
  34 +
  35 +test-jsapi:
  36 + @node test/jsapi
  37 +
  38 +test-unit:
  39 + @./bin/mocha \
  40 + --reporter $(REPORTER) \
  41 + test/acceptance/*.js \
  42 + test/*.js
  43 +
  44 +test-compilers:
  45 + @./bin/mocha \
  46 + --reporter $(REPORTER) \
  47 + --compilers coffee:coffee-script,foo:./test/compiler/foo \
  48 + test/acceptance/test.coffee \
  49 + test/acceptance/test.foo
  50 +
  51 +test-bdd:
  52 + @./bin/mocha \
  53 + --reporter $(REPORTER) \
  54 + --ui bdd \
  55 + test/acceptance/interfaces/bdd
  56 +
  57 +test-tdd:
  58 + @./bin/mocha \
  59 + --reporter $(REPORTER) \
  60 + --ui tdd \
  61 + test/acceptance/interfaces/tdd
  62 +
  63 +test-qunit:
  64 + @./bin/mocha \
  65 + --reporter $(REPORTER) \
  66 + --ui qunit \
  67 + test/acceptance/interfaces/qunit
  68 +
  69 +test-exports:
  70 + @./bin/mocha \
  71 + --reporter $(REPORTER) \
  72 + --ui exports \
  73 + test/acceptance/interfaces/exports
  74 +
  75 +test-grep:
  76 + @./bin/mocha \
  77 + --reporter $(REPORTER) \
  78 + --grep fast \
  79 + test/acceptance/misc/grep
  80 +
  81 +test-invert:
  82 + @./bin/mocha \
  83 + --reporter $(REPORTER) \
  84 + --grep slow \
  85 + --invert \
  86 + test/acceptance/misc/grep
  87 +
  88 +test-bail:
  89 + @./bin/mocha \
  90 + --reporter $(REPORTER) \
  91 + --bail \
  92 + test/acceptance/misc/bail
  93 +
  94 +non-tty:
  95 + @./bin/mocha \
  96 + --reporter dot \
  97 + test/acceptance/interfaces/bdd 2>&1 > /tmp/dot.out
  98 +
  99 + @echo dot:
  100 + @cat /tmp/dot.out
  101 +
  102 + @./bin/mocha \
  103 + --reporter list \
  104 + test/acceptance/interfaces/bdd 2>&1 > /tmp/list.out
  105 +
  106 + @echo list:
  107 + @cat /tmp/list.out
  108 +
  109 + @./bin/mocha \
  110 + --reporter spec \
  111 + test/acceptance/interfaces/bdd 2>&1 > /tmp/spec.out
  112 +
  113 + @echo spec:
  114 + @cat /tmp/spec.out
  115 +
  116 +tm:
  117 + mkdir -p $(TM_DEST)
  118 + cp -fr editors/$(TM_BUNDLE) $(TM_DEST)
  119 +
  120 +.PHONY: test-cov test-jsapi test-compilers watch test test-all test-bdd test-tdd test-qunit test-exports test-unit non-tty test-grep tm clean
41 node_modules/mocha/Readme.md
Source Rendered
... ... @@ -0,0 +1,41 @@
  1 + [![Build Status](https://secure.travis-ci.org/visionmedia/mocha.png)](http://travis-ci.org/visionmedia/mocha)
  2 +
  3 + [![Mocha test framework](http://f.cl.ly/items/3l1k0n2A1U3M1I1L210p/Screen%20Shot%202012-02-24%20at%202.21.43%20PM.png)](http://visionmedia.github.com/mocha)
  4 +
  5 + Mocha is a simple, flexible, fun JavaScript test framework for node.js and the browser. For more information view the [documentation](http://visionmedia.github.com/mocha).
  6 +
  7 +## Contributors
  8 +
  9 +```
  10 +project: mocha
  11 +commits: 502
  12 +files : 86
  13 +authors:
  14 + 352 Tj Holowaychuk 70.1%
  15 + 98 TJ Holowaychuk 19.5%
  16 + 21 Guillermo Rauch 4.2%
  17 + 6 James Carr 1.2%
  18 + 4 Joshua Krall 0.8%
  19 + 3 Ben Lindsey 0.6%
  20 + 3 Nathan Rajlich 0.6%
  21 + 2 FARKAS Máté 0.4%
  22 + 2 Quang Van 0.4%
  23 + 1 Steve Mason 0.2%
  24 + 1 Yuest Wang 0.2%
  25 + 1 hokaccha 0.2%
  26 + 1 David Henderson 0.2%
  27 + 1 Fedor Indutny 0.2%
  28 + 1 Fredrik Lindin 0.2%
  29 + 1 Harry Brundage 0.2%
  30 + 1 Konstantin Käfer 0.2%
  31 + 1 Maciej Małecki 0.2%
  32 + 1 Raynos 0.2%
  33 + 1 Ryunosuke SATO 0.2%
  34 +```
  35 +
  36 +## Links
  37 +
  38 + - [Chai](https://github.com/chaijs/chai) - BDD, TDD, and assert for node & the browser
  39 + - [Should.js](http://github.com/visionmedia/should.js) - BDD style assertions for node
  40 + - [Expect.js](https://github.com/LearnBoost/expect.js) - BDD style assertions for node & the browser
  41 + - [Google Group](http://groups.google.com/group/mochajs)
4,793 node_modules/mocha/_mocha.js
... ... @@ -0,0 +1,4793 @@
  1 +
  2 +// CommonJS require()
  3 +
  4 +function require(p){
  5 + var path = require.resolve(p)
  6 + , mod = require.modules[path];
  7 + if (!mod) throw new Error('failed to require "' + p + '"');
  8 + if (!mod.exports) {
  9 + mod.exports = {};
  10 + mod.call(mod.exports, mod, mod.exports, require.relative(path));
  11 + }
  12 + return mod.exports;
  13 + }
  14 +
  15 +require.modules = {};
  16 +
  17 +require.resolve = function (path){
  18 + var orig = path
  19 + , reg = path + '.js'
  20 + , index = path + '/index.js';
  21 + return require.modules[reg] && reg
  22 + || require.modules[index] && index
  23 + || orig;
  24 + };
  25 +
  26 +require.register = function (path, fn){
  27 + require.modules[path] = fn;
  28 + };
  29 +
  30 +require.relative = function (parent) {
  31 + return function(p){
  32 + if ('.' != p.charAt(0)) return require(p);
  33 +
  34 + var path = parent.split('/')
  35 + , segs = p.split('/');
  36 + path.pop();
  37 +
  38 + for (var i = 0; i < segs.length; i++) {
  39 + var seg = segs[i];
  40 + if ('..' == seg) path.pop();
  41 + else if ('.' != seg) path.push(seg);
  42 + }
  43 +
  44 + return require(path.join('/'));
  45 + };
  46 + };
  47 +
  48 +
  49 +require.register("browser/debug.js", function(module, exports, require){
  50 +
  51 +module.exports = function(type){
  52 + return function(){
  53 +
  54 + }
  55 +};
  56 +}); // module: browser/debug.js
  57 +
  58 +require.register("browser/diff.js", function(module, exports, require){
  59 +
  60 +}); // module: browser/diff.js
  61 +
  62 +require.register("browser/events.js", function(module, exports, require){
  63 +
  64 +/**
  65 + * Module exports.
  66 + */
  67 +
  68 +exports.EventEmitter = EventEmitter;
  69 +
  70 +/**
  71 + * Check if `obj` is an array.
  72 + */
  73 +
  74 +function isArray(obj) {
  75 + return '[object Array]' == {}.toString.call(obj);
  76 +}
  77 +
  78 +/**
  79 + * Event emitter constructor.
  80 + *
  81 + * @api public
  82 + */
  83 +
  84 +function EventEmitter(){};
  85 +
  86 +/**
  87 + * Adds a listener.
  88 + *
  89 + * @api public
  90 + */
  91 +
  92 +EventEmitter.prototype.on = function (name, fn) {
  93 + if (!this.$events) {
  94 + this.$events = {};
  95 + }
  96 +
  97 + if (!this.$events[name]) {
  98 + this.$events[name] = fn;
  99 + } else if (isArray(this.$events[name])) {
  100 + this.$events[name].push(fn);
  101 + } else {
  102 + this.$events[name] = [this.$events[name], fn];
  103 + }
  104 +
  105 + return this;
  106 +};
  107 +
  108 +EventEmitter.prototype.addListener = EventEmitter.prototype.on;
  109 +
  110 +/**
  111 + * Adds a volatile listener.
  112 + *
  113 + * @api public
  114 + */
  115 +
  116 +EventEmitter.prototype.once = function (name, fn) {
  117 + var self = this;
  118 +
  119 + function on () {
  120 + self.removeListener(name, on);
  121 + fn.apply(this, arguments);
  122 + };
  123 +
  124 + on.listener = fn;
  125 + this.on(name, on);
  126 +
  127 + return this;
  128 +};
  129 +
  130 +/**
  131 + * Removes a listener.
  132 + *
  133 + * @api public
  134 + */
  135 +
  136 +EventEmitter.prototype.removeListener = function (name, fn) {
  137 + if (this.$events && this.$events[name]) {
  138 + var list = this.$events[name];
  139 +
  140 + if (isArray(list)) {
  141 + var pos = -1;
  142 +
  143 + for (var i = 0, l = list.length; i < l; i++) {
  144 + if (list[i] === fn || (list[i].listener && list[i].listener === fn)) {
  145 + pos = i;
  146 + break;
  147 + }
  148 + }
  149 +
  150 + if (pos < 0) {
  151 + return this;
  152 + }
  153 +
  154 + list.splice(pos, 1);
  155 +
  156 + if (!list.length) {
  157 + delete this.$events[name];
  158 + }
  159 + } else if (list === fn || (list.listener && list.listener === fn)) {
  160 + delete this.$events[name];
  161 + }
  162 + }
  163 +
  164 + return this;
  165 +};
  166 +
  167 +/**
  168 + * Removes all listeners for an event.
  169 + *
  170 + * @api public
  171 + */
  172 +
  173 +EventEmitter.prototype.removeAllListeners = function (name) {
  174 + if (name === undefined) {
  175 + this.$events = {};
  176 + return this;
  177 + }
  178 +
  179 + if (this.$events && this.$events[name]) {
  180 + this.$events[name] = null;
  181 + }
  182 +
  183 + return this;
  184 +};
  185 +
  186 +/**
  187 + * Gets all listeners for a certain event.
  188 + *
  189 + * @api public
  190 + */
  191 +
  192 +EventEmitter.prototype.listeners = function (name) {
  193 + if (!this.$events) {
  194 + this.$events = {};
  195 + }
  196 +
  197 + if (!this.$events[name]) {
  198 + this.$events[name] = [];
  199 + }
  200 +
  201 + if (!isArray(this.$events[name])) {
  202 + this.$events[name] = [this.$events[name]];
  203 + }
  204 +
  205 + return this.$events[name];
  206 +};
  207 +
  208 +/**
  209 + * Emits an event.
  210 + *
  211 + * @api public
  212 + */
  213 +
  214 +EventEmitter.prototype.emit = function (name) {
  215 + if (!this.$events) {
  216 + return false;
  217 + }
  218 +
  219 + var handler = this.$events[name];
  220 +
  221 + if (!handler) {
  222 + return false;
  223 + }
  224 +
  225 + var args = [].slice.call(arguments, 1);
  226 +
  227 + if ('function' == typeof handler) {
  228 + handler.apply(this, args);
  229 + } else if (isArray(handler)) {
  230 + var listeners = handler.slice();
  231 +
  232 + for (var i = 0, l = listeners.length; i < l; i++) {
  233 + listeners[i].apply(this, args);
  234 + }
  235 + } else {
  236 + return false;
  237 + }
  238 +
  239 + return true;
  240 +};
  241 +}); // module: browser/events.js
  242 +
  243 +require.register("browser/fs.js", function(module, exports, require){
  244 +
  245 +}); // module: browser/fs.js
  246 +
  247 +require.register("browser/path.js", function(module, exports, require){
  248 +
  249 +}); // module: browser/path.js
  250 +
  251 +require.register("browser/progress.js", function(module, exports, require){
  252 +
  253 +/**
  254 + * Expose `Progress`.
  255 + */
  256 +
  257 +module.exports = Progress;
  258 +
  259 +/**
  260 + * Initialize a new `Progress` indicator.
  261 + */
  262 +
  263 +function Progress() {
  264 + this.percent = 0;
  265 + this.size(0);
  266 + this.fontSize(11);
  267 + this.font('helvetica, arial, sans-serif');
  268 +}
  269 +
  270 +/**
  271 + * Set progress size to `n`.
  272 + *
  273 + * @param {Number} n
  274 + * @return {Progress} for chaining
  275 + * @api public
  276 + */
  277 +
  278 +Progress.prototype.size = function(n){
  279 + this._size = n;
  280 + return this;
  281 +};
  282 +
  283 +/**
  284 + * Set text to `str`.
  285 + *
  286 + * @param {String} str
  287 + * @return {Progress} for chaining
  288 + * @api public
  289 + */
  290 +
  291 +Progress.prototype.text = function(str){
  292 + this._text = str;
  293 + return this;
  294 +};
  295 +
  296 +/**
  297 + * Set font size to `n`.
  298 + *
  299 + * @param {Number} n
  300 + * @return {Progress} for chaining
  301 + * @api public
  302 + */
  303 +
  304 +Progress.prototype.fontSize = function(n){
  305 + this._fontSize = n;
  306 + return this;
  307 +};
  308 +
  309 +/**
  310 + * Set font `family`.
  311 + *
  312 + * @param {String} family
  313 + * @return {Progress} for chaining
  314 + */
  315 +
  316 +Progress.prototype.font = function(family){
  317 + this._font = family;
  318 + return this;
  319 +};
  320 +