Permalink
Browse files

code

  • Loading branch information...
1 parent a6c7d60 commit e1c6457ac0210c6600a8ff8b8ebd0785ebe19f02 Raynos committed Dec 20, 2011
Showing with 14,540 additions and 2 deletions.
  1. +19 −0 LICENCE
  2. +3 −2 README.md
  3. +2 −0 node_modules/after/.gitignore
  4. +4 −0 node_modules/after/.travis.yml
  5. +19 −0 node_modules/after/LICENCE
  6. +105 −0 node_modules/after/README.md
  7. +19 −0 node_modules/after/package.json
  8. +63 −0 node_modules/after/src/after.js
  9. +155 −0 node_modules/after/test/main-test.js
  10. +13 −0 node_modules/eventemitter2/.gitignore
  11. +226 −0 node_modules/eventemitter2/README.md
  12. +1 −0 node_modules/eventemitter2/index.js
  13. +453 −0 node_modules/eventemitter2/lib/eventemitter2.js
  14. +32 −0 node_modules/eventemitter2/package.json
  15. +110 −0 node_modules/eventemitter2/test/common.js
  16. +53 −0 node_modules/eventemitter2/test/perf/benchmark.js
  17. +173 −0 node_modules/eventemitter2/test/simple/addListener.js
  18. +136 −0 node_modules/eventemitter2/test/simple/emit.js
  19. +199 −0 node_modules/eventemitter2/test/simple/removeListener.js
  20. +133 −0 node_modules/eventemitter2/test/simple/setMax.js
  21. +126 −0 node_modules/eventemitter2/test/simple/ttl.js
  22. +248 −0 node_modules/eventemitter2/test/wildcardEvents/addListener.js
  23. +804 −0 node_modules/eventemitter2/test/wildcardEvents/all.js
  24. +178 −0 node_modules/eventemitter2/test/wildcardEvents/customDelimiter.js
  25. +49 −0 node_modules/eventemitter2/test/wildcardEvents/k1.js
  26. +77 −0 node_modules/eventemitter2/test/wildcardEvents/options.js
  27. +213 −0 node_modules/eventemitter2/test/wildcardEvents/removeListener.js
  28. +163 −0 node_modules/eventemitter2/test/wildcardEvents/ttl.js
  29. +4 −0 node_modules/mocha/.npmignore
  30. +4 −0 node_modules/mocha/.travis.yml
  31. +194 −0 node_modules/mocha/History.md
  32. +84 −0 node_modules/mocha/Makefile
  33. +5 −0 node_modules/mocha/Readme.md
  34. +2,819 −0 node_modules/mocha/_mocha.js
  35. +304 −0 node_modules/mocha/bin/mocha
  36. +2 −0 node_modules/mocha/bin/mocha-debug
  37. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after each.tmSnippet
  38. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - after.tmSnippet
  39. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before each.tmSnippet
  40. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - before.tmSnippet
  41. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/bdd - it.tmSnippet
  42. +16 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/Snippets/untitled.tmSnippet
  43. +19 −0 node_modules/mocha/editors/JavaScript mocha.tmbundle/info.plist
  44. BIN node_modules/mocha/images/error.png
  45. BIN node_modules/mocha/images/ok.png
  46. +2 −0 node_modules/mocha/index.js
  47. +6 −0 node_modules/mocha/lib/browser/debug.js
  48. +178 −0 node_modules/mocha/lib/browser/events.js
  49. 0 node_modules/mocha/lib/browser/fs.js
  50. +125 −0 node_modules/mocha/lib/browser/progress.js
  51. +8 −0 node_modules/mocha/lib/browser/tty.js
  52. +30 −0 node_modules/mocha/lib/hook.js
  53. +86 −0 node_modules/mocha/lib/interfaces/bdd.js
  54. +60 −0 node_modules/mocha/lib/interfaces/exports.js
  55. +4 −0 node_modules/mocha/lib/interfaces/index.js
  56. +94 −0 node_modules/mocha/lib/interfaces/tdd.js
  57. +22 −0 node_modules/mocha/lib/mocha.js
  58. +223 −0 node_modules/mocha/lib/reporters/base.js
  59. +74 −0 node_modules/mocha/lib/reporters/doc.js
  60. +62 −0 node_modules/mocha/lib/reporters/dot.js
  61. +154 −0 node_modules/mocha/lib/reporters/html.js
  62. +12 −0 node_modules/mocha/lib/reporters/index.js
  63. +61 −0 node_modules/mocha/lib/reporters/json-stream.js
  64. +70 −0 node_modules/mocha/lib/reporters/json.js
  65. +97 −0 node_modules/mocha/lib/reporters/landing.js
  66. +61 −0 node_modules/mocha/lib/reporters/list.js
  67. +84 −0 node_modules/mocha/lib/reporters/progress.js
  68. +83 −0 node_modules/mocha/lib/reporters/spec.js
  69. +63 −0 node_modules/mocha/lib/reporters/tap.js
  70. +41 −0 node_modules/mocha/lib/reporters/teamcity.js
  71. +156 −0 node_modules/mocha/lib/runnable.js
  72. +414 −0 node_modules/mocha/lib/runner.js
  73. +220 −0 node_modules/mocha/lib/suite.js
  74. +32 −0 node_modules/mocha/lib/test.js
  75. +109 −0 node_modules/mocha/lib/utils.js
  76. +17 −0 node_modules/mocha/lib/watch.js
  77. +119 −0 node_modules/mocha/mocha.css
  78. +2,907 −0 node_modules/mocha/mocha.js
  79. +25 −0 node_modules/mocha/package.json
  80. +3 −0 node_modules/pd/.gitignore
  81. +4 −0 node_modules/pd/.npmignore
  82. +3 −0 node_modules/pd/.travis.yml
  83. +19 −0 node_modules/pd/LICENCE
  84. +223 −0 node_modules/pd/README.md
  85. +471 −0 node_modules/pd/docs/styleGuide.md
  86. +1 −0 node_modules/pd/index.js
  87. +18 −0 node_modules/pd/package.json
  88. +265 −0 node_modules/pd/src/pd.js
  89. +160 −0 node_modules/pd/test/pd-test.js
  90. +19 −0 package.json
  91. +169 −0 src/core.js
  92. +179 −0 test/test-core.js
View
19 LICENCE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Raynos.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -14,12 +14,13 @@ A Core library for your node application infrastructure.
});
}
});
+
Core.use({
- init: function (mediator) {
+ init: function (done, mediator) {
var server = http.createServer(function (req, res) {
mediator.emit("helloworld", res);
});
- server.listen(4000);
+ server.listen(4000, done);
}
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e1c6457

Please sign in to comment.