Permalink
Browse files

WIP

  • Loading branch information...
1 parent 959a20d commit ea449bbf116371c8600ba3cb419919174fb007d3 @airhorns airhorns committed Apr 27, 2012
Showing with 14,629 additions and 14,059 deletions.
  1. +8 −11 Cakefile
  2. +8,526 −7,965 lib/batman.js
  3. +92 −0 src/_batman.coffee
  4. +5 −0 src/accessible.coffee
  5. +135 −0 src/app.coffee
  6. +3 −6,065 src/batman.coffee
  7. +139 −0 src/controller.coffee
  8. 0 src/developer.coffee
  9. +31 −0 src/enumerable.coffee
  10. +55 −0 src/event_emitter/event.coffee
  11. +45 −0 src/event_emitter/event_emitter.coffee
  12. +79 −0 src/hash/hash.coffee
  13. +108 −0 src/hash/simple_hash.coffee
  14. +105 −0 src/inflector.coffee
  15. +22 −0 src/manifest.coffee
  16. +3 −0 src/mixins.coffee
  17. +58 −0 src/model/associations/association.coffee
  18. +10 −0 src/model/associations/association_api.coffee
  19. +35 −0 src/model/associations/association_curator.coffee
  20. +37 −0 src/model/associations/association_proxy.coffee
  21. +17 −0 src/model/associations/association_set.coffee
  22. +13 −0 src/model/associations/association_set_index.coffee
  23. +55 −0 src/model/associations/belongs_to_association.coffee
  24. +11 −0 src/model/associations/belongs_to_proxy.coffee
  25. +67 −0 src/model/associations/has_many_association.coffee
  26. +33 −0 src/model/associations/has_one_association.coffee
  27. +16 −0 src/model/associations/has_one_proxy.coffee
  28. +31 −0 src/model/associations/plural_association.coffee
  29. +11 −0 src/model/associations/polymorhpic_association_set.coffee
  30. +9 −0 src/model/associations/polymorphic_association_set_index.coffee
  31. +94 −0 src/model/associations/polymorphic_belongs_to_association.coffee
  32. +12 −0 src/model/associations/polymorphic_belongs_to_proxy.coffee
  33. +48 −0 src/model/associations/polymorphic_has_many_association.coffee
  34. +21 −0 src/model/associations/singular_association.coffee
  35. +5 −0 src/model/associations/unique_association_set_index.coffee
  36. +3 −0 src/model/encoders.coffee
  37. +481 −0 src/model/model.coffee
  38. +105 −0 src/model/storage_adapters/local_storage.coffee
  39. +210 −0 src/model/storage_adapters/rest_storage.coffee
  40. +8 −0 src/model/storage_adapters/session_storage.coffee
  41. +101 −0 src/model/storage_adapters/storage_adapter.coffee
  42. +11 −0 src/model/validations/errors_set.coffee
  43. +26 −0 src/model/validations/length_validator.coffee
  44. +11 −0 src/model/validations/numeric_validator.coffee
  45. +11 −0 src/model/validations/presence_validator.coffee
  46. +5 −0 src/model/validations/validation_error.coffee
  47. +19 −0 src/model/validations/validator.coffee
  48. +13 −0 src/model/validations/validators.coffee
  49. +116 −0 src/object.coffee
  50. +21 −0 src/observable/keypath.coffee
  51. +47 −0 src/observable/observable.coffee
  52. +202 −0 src/observable/property.coffee
  53. +3 −0 src/observable/property_event.coffee
  54. 0 src/{batman.jquery.coffee → platform/jquery.coffee}
  55. 0 src/{batman.node.coffee → platform/node.coffee}
  56. 0 src/{batman.solo.coffee → platform/solo.coffee}
  57. +66 −0 src/request.coffee
  58. +6 −0 src/routing/callback_action_route.coffee
  59. +16 −0 src/routing/controller_action_route.coffee
  60. +72 −0 src/routing/dispatcher.coffee
  61. +33 −0 src/routing/hash_bang_navigator.coffee
  62. +64 −0 src/routing/named_route_query.coffee
  63. +42 −0 src/routing/navigator.coffee
  64. +4 −0 src/routing/params_pusher.coffee
  65. +27 −0 src/routing/params_replacer.coffee
  66. +24 −0 src/routing/push_state_navigator.coffee
  67. +101 −0 src/routing/route.coffee
  68. +31 −0 src/routing/route_map.coffee
  69. +149 −0 src/routing/route_map_builder.coffee
  70. +23 −0 src/set/binary_set_operation.coffee
  71. +36 −0 src/set/set.coffee
  72. +44 −0 src/set/set_index.coffee
  73. +7 −0 src/set/set_intersection.coffee
  74. +38 −0 src/set/set_observer.coffee
  75. +37 −0 src/set/set_proxy.coffee
  76. +53 −0 src/set/set_sort.coffee
  77. +7 −0 src/set/set_union.coffee
  78. +74 −0 src/set/simple_set.coffee
  79. +18 −0 src/set/unique_set_index.coffee
  80. +68 −0 src/state_machine.coffee
  81. +40 −0 src/string_helpers.coffee
  82. +208 −0 src/utilities.coffee
  83. +4 −0 src/view/bindings/abstract_attribute_binding.coffee
  84. +199 −0 src/view/bindings/abstract_binding.coffee
  85. +35 −0 src/view/bindings/abstract_collection_binding.coffee
  86. +22 −0 src/view/bindings/add_class_binding.coffee
  87. +7 −0 src/view/bindings/attribute_binding.coffee
  88. +13 −0 src/view/bindings/binding.coffee
  89. +6 −0 src/view/bindings/checked_binding.coffee
  90. +24 −0 src/view/bindings/class_binding.coffee
  91. +16 −0 src/view/bindings/deferred_rendering_binding.coffee
  92. +38 −0 src/view/bindings/event_binding.coffee
  93. +10 −0 src/view/bindings/file_binding.coffee
  94. +38 −0 src/view/bindings/form_binding.coffee
  95. +217 −0 src/view/bindings/iterator_binding.coffee
  96. +4 −0 src/view/bindings/mixin_binding.coffee
  97. +7 −0 src/view/bindings/node_attribute_binding.coffee
  98. +16 −0 src/view/bindings/radio_binding.coffee
  99. +36 −0 src/view/bindings/route_binding.coffee
  100. +75 −0 src/view/bindings/select_binding.coffee
  101. +27 −0 src/view/bindings/show_hide_binding.coffee
  102. +55 −0 src/view/bindings/style_binding.coffee
  103. +3 −0 src/view/bindings/view_argument_binding.coffee
  104. +25 −0 src/view/bindings/view_binding.coffee
  105. +145 −0 src/view/data.coffee
  106. +48 −0 src/view/dom/attribute_readers.coffee
  107. +221 −0 src/view/dom/dom.coffee
  108. +58 −0 src/view/dom/events.coffee
  109. +75 −0 src/view/dom/readers.coffee
  110. +132 −0 src/view/filters.coffee
  111. +60 −0 src/view/render_cache.coffee
  112. +82 −0 src/view/render_context.coffee
  113. +109 −0 src/view/renderer.coffee
  114. +129 −0 src/view/view.coffee
  115. +36 −0 src/view/view_store.coffee
  116. +24 −0 src/view/yield.coffee
  117. +3 −18 tests/batman/test_static.html
  118. +10 −0 unincluded.coffee
View
@@ -29,21 +29,18 @@ pipedExec = do ->
callback(code)
task 'build', 'compile Batman.js and all the tools', (options) ->
- files = glob.sync('./src/**/*').concat(glob.sync('./tests/lib/*'))
+ files = glob.sync('./src/**/*').concat(glob.sync('./tests/**/*'))
muffin.run
files: files
options: options
map:
- 'src/batman\.coffee' : (matches) -> muffin.compileScript(matches[0], 'lib/batman.js', options)
- 'src/batman\.(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "lib/batman.#{matches[1]}.js", options)
- 'src/extras/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "lib/extras/#{matches[1]}.js", options)
- 'src/tools/batman\.coffee' : (matches) ->
- source = muffin.readFile(matches[0], options).then (source) ->
- compiled = muffin.compileString(source, options)
- compiled = "#!/usr/bin/env node\n\n" + compiled
- muffin.writeFile "tools/batman", compiled, muffin.extend({}, options, {mode: 0o755})
- 'src/tools/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "tools/#{matches[1]}.js", options)
- 'tests/run\.coffee' : (matches) -> muffin.compileScript(matches[0], 'tests/run.js', options)
+ 'src/manifest\.coffee' : (matches) -> muffin.compileTree(matches[0], 'lib/batman.js', options)
+ 'src/platform/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "lib/batman.#{matches[1]}.js", options)
+ 'src/extras/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "lib/extras/#{matches[1]}.js", options)
+ 'src/tools/batman\.coffee' : (matches) -> muffin.compileScript(matches[0], "tools/batman", muffin.extend({}, options, {mode: 0o755, hashbang: true}))
+ 'src/tools/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "tools/#{matches[1]}.js", options)
+ 'tests/run\.coffee' : (matches) -> muffin.compileScript(matches[0], 'tests/run.js', options)
+ 'tests/batman/(.+)\.coffee' : (matches) -> muffin.compileScript(matches[0], "build/tests/batman/#{matches[1]}.js", muffin.extend({}, options, notify: false))
if options.dist
temp = require 'temp'
Oops, something went wrong.

0 comments on commit ea449bb

Please sign in to comment.