Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for ignoring files

  • Loading branch information...
commit 8ebe1d5aa39e3f1bae3eb771de58ac5066f784ee 1 parent f546ba3
@pvorb authored
Showing with 14 additions and 12,659 deletions.
  1. +4 −0 bin/bread.js
  2. +10 −1 node_modules/bake/bake.js
  3. +0 −2  node_modules/bake/node_modules/props/.npmignore
  4. +0 −18 node_modules/bake/node_modules/props/LICENSE.mkd
  5. +0 −79 node_modules/bake/node_modules/props/README.mkd
  6. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/.npmignore
  7. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/.travis.yml
  8. +0 −64 node_modules/bake/node_modules/props/node_modules/js-yaml/HISTORY.md
  9. +0 −21 node_modules/bake/node_modules/props/node_modules/js-yaml/LICENSE
  10. +0 −80 node_modules/bake/node_modules/props/node_modules/js-yaml/Makefile
  11. +0 −172 node_modules/bake/node_modules/props/node_modules/js-yaml/README.md
  12. +0 −32 node_modules/bake/node_modules/props/node_modules/js-yaml/doc/gotchas.md
  13. +0 −10 node_modules/bake/node_modules/props/node_modules/js-yaml/examples/single.js
  14. +0 −195 node_modules/bake/node_modules/props/node_modules/js-yaml/examples/single.yml
  15. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/index.js
  16. +0 −92 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml.js
  17. +0 −240 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/common.js
  18. +0 −209 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/composer.js
  19. +0 −651 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/constructor.js
  20. +0 −160 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/errors.js
  21. +0 −122 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/events.js
  22. +0 −73 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/loader.js
  23. +0 −53 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/nodes.js
  24. +0 −757 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/parser.js
  25. +0 −197 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/reader.js
  26. +0 −138 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/resolver.js
  27. +0 −1,889 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/scanner.js
  28. +0 −171 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/tokens.js
  29. +0 −31 node_modules/bake/node_modules/props/node_modules/js-yaml/package.json
  30. +0 −312 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/__init__.py
  31. +0 −139 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/composer.py
  32. +0 −686 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/constructor.py
  33. +0 −85 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/cyaml.py
  34. +0 −62 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/dumper.py
  35. +0 −1,137 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/emitter.py
  36. +0 −75 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/error.py
  37. +0 −86 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/events.py
  38. +0 −40 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/loader.py
  39. +0 −49 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/nodes.py
  40. +0 −589 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/parser.py
  41. +0 −192 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/reader.py
  42. +0 −374 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/representer.py
  43. +0 −224 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/resolver.py
  44. +0 −1,448 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/scanner.py
  45. +0 −111 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/serializer.py
  46. +0 −104 node_modules/bake/node_modules/props/node_modules/js-yaml/support/pyyaml-src/tokens.py
  47. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional-test.js
  48. +0 −294 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/canonical.js
  49. +0 −1  ..._modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/a-nasty-libyaml-bug.loader-error
  50. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/bool.data
  51. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/bool.detect
  52. +0 −1  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/colon-in-flow-context.loader-error
  53. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/construct-map.code
  54. +0 −11 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/construct-map.data
  55. +0 −11 ...de_modules/props/node_modules/js-yaml/test/functional/data/document-separator-in-quoted-scalar.loader-error
  56. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/duplicate-anchor-1.loader-error
  57. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/duplicate-anchor-2.loader-error
  58. +0 −3  ...ules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/duplicate-tag-directive.loader-error
  59. +0 −3  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/duplicate-yaml-directive.loader-error
  60. +0 −6 ...dules/props/node_modules/js-yaml/test/functional/data/emit-block-scalar-in-simple-key-context-bug.canonical
  61. +0 −4 ...de_modules/props/node_modules/js-yaml/test/functional/data/emit-block-scalar-in-simple-key-context-bug.data
  62. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/empty-document-bug.canonical
  63. +0 −2  ...dules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/empty-documents.single-loader-error
  64. +0 −1  ..._modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/empty-python-module.loader-error
  65. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/empty-python-name.loader-error
  66. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/expected-mapping.loader-error
  67. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/expected-scalar.loader-error
  68. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/expected-sequence.loader-error
  69. +0 −4 ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/explicit-document.single-loader-error
  70. +0 −2  ...ules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/fetch-complex-value-bug.loader-error
  71. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/float.data
  72. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/float.detect
  73. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/forbidden-entry.loader-error
  74. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/forbidden-key.loader-error
  75. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/forbidden-value.loader-error
  76. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/function.data
  77. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/function.detect
  78. +0 −3  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/implicit-document.single-loader-error
  79. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/int.data
  80. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/int.detect
  81. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-anchor-1.loader-error
  82. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-anchor-2.loader-error
  83. +0 −2  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-base64-data-2.loader-error
  84. +0 −2  ..._modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-base64-data.loader-error
  85. +0 −2  ...ke/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-block-scalar-indicator.loader-error
  86. BIN  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-character.loader-error
  87. +0 −2  ...dules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-directive-line.loader-error
  88. +0 −2  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-directive-name-1.loader-error
  89. +0 −2  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-directive-name-2.loader-error
  90. +0 −1  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-escape-character.loader-error
  91. +0 −1  ...dules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-escape-numbers.loader-error
  92. +0 −2  ...e/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-indentation-indicator-1.loader-error
  93. +0 −2  ...e/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-indentation-indicator-2.loader-error
  94. +0 −2  ...de_modules/props/node_modules/js-yaml/test/functional/data/invalid-item-without-trailing-break.loader-error
  95. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-merge-1.loader-error
  96. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-merge-2.loader-error
  97. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-omap-1.loader-error
  98. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-omap-2.loader-error
  99. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-omap-3.loader-error
  100. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-pairs-1.loader-error
  101. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-pairs-2.loader-error
  102. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-pairs-3.loader-error
  103. +0 −2  ...s/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-bytes-2-py3.loader-error
  104. +0 −2  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-bytes-py3.loader-error
  105. +0 −1  ...s/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-module-kind.loader-error
  106. +0 −1  .../bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-module-value.loader-error
  107. +0 −1  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-module.loader-error
  108. +0 −1  ...les/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-name-kind.loader-error
  109. +0 −1  ...bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-name-module-2.loader-error
  110. +0 −1  ...s/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-name-module.loader-error
  111. +0 −1  ...s/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-name-object.loader-error
  112. +0 −1  ...es/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-python-name-value.loader-error
  113. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-simple-key.loader-error
  114. +0 −1  ...s/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-starting-character.loader-error
  115. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-1.loader-error
  116. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-2.loader-error
  117. +0 −2  ...bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-directive-handle.loader-error
  118. +0 −2  ...bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-directive-prefix.loader-error
  119. +0 −2  ...modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-handle-1.loader-error
  120. +0 −2  ...modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-tag-handle-2.loader-error
  121. +0 −1  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-uri-escapes-1.loader-error
  122. +0 −1  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-uri-escapes-2.loader-error
  123. +0 −1  ...odules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-uri-escapes-3.loader-error
  124. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-uri.loader-error
  125. +0 −3  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-1.loader-error
  126. +0 −2  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-2.loader-error
  127. +0 −2  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-3.loader-error
  128. +0 −2  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-4.loader-error
  129. +0 −2  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-5.loader-error
  130. +0 −2  .../node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-directive-version-6.loader-error
  131. +0 −2  ...modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/invalid-yaml-version.loader-error
  132. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/merge.data
  133. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/merge.detect
  134. +0 −3  ...ules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-block-collection-end.loader-error
  135. +0 −3  ...dules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-block-mapping-end-2.loader-error
  136. +0 −1  ...modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-block-mapping-end.loader-error
  137. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-document-start.loader-error
  138. +0 −1  ..._modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-flow-mapping-end.loader-error
  139. +0 −1  ...modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-flow-sequence-end.loader-error
  140. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-node-1.loader-error
  141. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/no-node-2.loader-error
  142. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/null.data
  143. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/null.detect
  144. +0 −3  ...ke/node_modules/props/node_modules/js-yaml/test/functional/data/remove-possible-simple-key-bug.loader-error
  145. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/scan-document-end-bug.canonical
  146. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/scan-document-end-bug.data
  147. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/scan-line-break-bug.canonical
  148. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/scan-line-break-bug.data
  149. +0 −18 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/sloppy-indentation.canonical
  150. +0 −17 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/sloppy-indentation.data
  151. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-01.data
  152. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-01.structure
  153. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-01.tokens
  154. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-02.data
  155. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-02.structure
  156. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-02.tokens
  157. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-03.data
  158. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-03.structure
  159. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-03.tokens
  160. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-04.data
  161. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-04.structure
  162. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-04.tokens
  163. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-05.data
  164. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-05.structure
  165. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-05.tokens
  166. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-06.data
  167. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-06.structure
  168. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-06.tokens
  169. +0 −10 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-07.data
  170. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-07.structure
  171. +0 −12 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-07.tokens
  172. +0 −10 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-08.data
  173. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-08.structure
  174. +0 −15 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-08.tokens
  175. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-09.data
  176. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-09.structure
  177. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-09.tokens
  178. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-10.data
  179. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-10.structure
  180. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-10.tokens
  181. +0 −9 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-11.data
  182. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-11.structure
  183. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-11.tokens
  184. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-12.data
  185. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-12.structure
  186. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-12.tokens
  187. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-13.data
  188. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-13.structure
  189. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-13.tokens
  190. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-14.data
  191. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-14.structure
  192. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-14.tokens
  193. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-15.data
  194. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-15.structure
  195. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-15.tokens
  196. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-16.data
  197. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-16.structure
  198. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-16.tokens
  199. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-17.data
  200. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-17.structure
  201. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-17.tokens
  202. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-18.data
  203. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-18.structure
  204. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-18.tokens
  205. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-19.data
  206. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-19.structure
  207. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-19.tokens
  208. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-20.data
  209. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-20.structure
  210. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-20.tokens
  211. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-21.data
  212. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-21.structure
  213. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-21.tokens
  214. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-22.data
  215. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-22.structure
  216. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-22.tokens
  217. +0 −13 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-23.data
  218. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-23.structure
  219. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-23.tokens
  220. +0 −14 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-24.data
  221. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-24.structure
  222. +0 −20 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-24.tokens
  223. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-25.data
  224. +0 −1  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-25.structure
  225. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-25.tokens
  226. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-26.data
  227. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-26.structure
  228. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-26.tokens
  229. +0 −29 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-27.data
  230. +0 −17 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-27.structure
  231. +0 −20 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-27.tokens
  232. +0 −26 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-28.data
  233. +0 −10 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-28.structure
  234. +0 −23 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-02-28.tokens
  235. +0 −14 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-03.canonical
  236. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-03.data
  237. +0 −13 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-04.canonical
  238. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-04.data
  239. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-06.canonical
  240. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-06.data
  241. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-07.canonical
  242. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-07.data
  243. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-08.canonical
  244. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-08.data
  245. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-09.canonical
  246. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-09.data
  247. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-11.canonical
  248. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-11.data
  249. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-13.canonical
  250. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-13.data
  251. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-14.canonical
  252. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-05-14.data
  253. +0 −15 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-01.canonical
  254. +0 −14 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-01.data
  255. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-03.canonical
  256. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-03.data
  257. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-04.canonical
  258. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-04.data
  259. +0 −16 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-05.canonical
  260. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-05.data
  261. +0 −10 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-06.canonical
  262. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-06.data
  263. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-07.canonical
  264. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-07.data
  265. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-08.canonical
  266. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-06-08.data
  267. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-01.canonical
  268. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-01.data
  269. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-02.canonical
  270. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-02.data
  271. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-04.canonical
  272. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-04.data
  273. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-06.canonical
  274. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-06.data
  275. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-07a.canonical
  276. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-07a.data
  277. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-07b.canonical
  278. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-07b.data
  279. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-08.canonical
  280. +0 −9 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-08.data
  281. +0 −9 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-09.canonical
  282. +0 −11 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-09.data
  283. +0 −15 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-10.canonical
  284. +0 −11 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-10.data
  285. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-12a.canonical
  286. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-12a.data
  287. +0 −3  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-12b.canonical
  288. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-12b.data
  289. +0 −9 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-13.canonical
  290. +0 −9 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-07-13.data
  291. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-01.canonical
  292. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-01.data
  293. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-02.canonical
  294. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-02.data
  295. +0 −6 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-03.canonical
  296. +0 −2  node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-03.data
  297. +0 −7 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-05.canonical
  298. +0 −5 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-05.data
  299. +0 −8 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-07.canonical
  300. +0 −4 node_modules/bake/node_modules/props/node_modules/js-yaml/test/functional/data/spec-08-07.data
Sorry, we could not display the entire diff because too many files (443) changed.
View
4 bin/bread.js
@@ -19,6 +19,9 @@ confdir(process.cwd(), 'conf', function (err, confdir) {
},
properties: function (cb) {
fs.readFile(path.resolve(confdir, 'properties.json'), 'utf8', cb);
+ },
+ ignore: function (cb) {
+ fs.readFile(path.resolve(confdir, 'ignore.json'), 'utf8', cb);
}
}, function (err, files) {
if (err)
@@ -27,6 +30,7 @@ confdir(process.cwd(), 'conf', function (err, confdir) {
// parse JSON and setup conf object
var conf = JSON.parse(files.conf);
conf.properties = JSON.parse(files.properties);
+ conf.ignore = JSON.parse(files.ignore);
conf.confdir = confdir;
conf.root = path.resolve(confdir, '..');
View
11 node_modules/bake/bake.js
@@ -12,6 +12,7 @@ var bake = function(conf, hooks, cb) {
// File counter
var todo = 0;
+ var matched = 0;
if (typeof conf != 'object')
return cb(new Error('parameter conf must be a valid configuration object'));
@@ -31,6 +32,8 @@ var bake = function(conf, hooks, cb) {
var fileExtPattern
= new RegExp('\\.(' + Object.keys(fileExt).join('|') + ')$', 'i');
+ var ignore = conf.ignore || [];
+
// Status log
console.log('Beginning to bake ' + inputDir + '.');
@@ -42,15 +45,18 @@ var bake = function(conf, hooks, cb) {
// Matching variable
var match;
+ var pathFromRoot = master.replace(inputDir, '').substr(1);
// Match the master-file's name against enabled file extensions
- if (match = master.match(fileExtPattern)) {
+ if ((match = master.match(fileExtPattern))
+ && ignore.indexOf(pathFromRoot) == -1) {
// Get the file extension of the master file
var masterExt = match[1];
// Increase file counter
++todo;
+ ++matched;
// Read the master-file's contents
fs.readFile(master, 'utf8', function(err, data) {
@@ -177,6 +183,9 @@ var bake = function(conf, hooks, cb) {
}
});
}
+ }, function () {
+ if (todo == 0)
+ return cb();
});
};
View
2  node_modules/bake/node_modules/props/.npmignore
@@ -1,2 +0,0 @@
-node_modules/
-test/
View
18 node_modules/bake/node_modules/props/LICENSE.mkd
@@ -1,18 +0,0 @@
-Copyright © 2011 Paul Vorbach <paul@vorb.de>
-
-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, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
79 node_modules/bake/node_modules/props/README.mkd
@@ -1,79 +0,0 @@
-# props
-
-a module for node that is able to extract either JSON or YAML from the beginning
-of a string
-
-## Installation
-
-`npm install props` or `npm install -g props`
-
-## Usage
-
-```js
-var props = require("props");
-
-// Use JSON
-
-var json =
-'{\n\
- "title": "How to use node.js",\n\
- "date": "2011-08-09T17:56:00",\n\
- "tags": [ "example", "node.js" ]\n\
-}\n\
-\n\
-\n\
-Node.js is a new technology...';
-
-console.log(props(json));
-
-// or YAML
-
-var yaml =
-'title: How to use node.js\n\
-date: 2011-08-09T17:56:00\n\
-tags:\n\
- - example\n\
- - node.js\n\
-\n\
-\n\
-Node.js is a new technology...';
-
-console.log(props(yaml));
-```
-
-This will print nearly the same object twice, since `json` and `yaml` define the
-same object:
-
-_JSON_:
-
-```js
-{ title: 'How to use node.js',
- date: '2011-08-09T17:56:00',
- tags: [ 'example', 'node.js' ],
- __content: 'Node.js is a new technology...' }
-
-```
-
-_YAML_:
-
-```js
-{ title: 'How to use node.js',
- date: Tue, 09 Aug 2011 15:56:00 GMT,
- tags: [ 'example', 'node.js' ],
- __content: 'Node.js is a new technology...' }
-```
-
-The difference is that, due to it's JS implementation, the Date is parsed in the
-YAML version.
-
-The JSON/YAML part has to be **always** seperated from the content by three
-newline characters (`\n\n\n` or `\r\n\r\n\r\n`).
-
-## Bugs and Issues
-
-If you encounter any bugs or issues, feel free to open an issue at
-[github](//github.com/pvorb/node-props/issues).
-
-## License
-
-The [MIT license](http://vorb.de/license/mit.html).
View
8 node_modules/bake/node_modules/props/node_modules/js-yaml/.npmignore
@@ -1,8 +0,0 @@
-/src/
-/test/unported/
-
-/demo/
-/js-yaml.js
-/js-yaml.min.js
-/support/browserify/
-!/lib/js-yaml.js
View
6 node_modules/bake/node_modules/props/node_modules/js-yaml/.travis.yml
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
-before_script: "npm install --dev"
-script: "make test"
View
64 node_modules/bake/node_modules/props/node_modules/js-yaml/HISTORY.md
@@ -1,64 +0,0 @@
-0.3.5 / 2012-01-10
-
-* Workagound for .npmignore fuckup under windows. Thanks to airportyh.
-
-0.3.4 / 2011-12-24
-------------------
-
-* Fixes str[] for oldIEs support.
-* Adds better has change support for browserified demo.
-* improves compact output of Error. Closes #33.
-
-0.3.3 / 2011-12-20
-------------------
-
-* jsyaml executable moved to separate module.
-* adds `compact` stringification of Errors.
-
-0.3.2 / 2011-12-16
-------------------
-
-* Fixes ug with block style scalars. Closes #26.
-* All sources are passing JSLint now.
-* Fixes bug in Safari. Closes #28.
-* Fixes bug in Opers. Closes #29.
-* Improves browser support. Closes #20.
-* Added jsyaml executable.
-* Added !!js/function support. Closes #12.
-
-0.3.1 / 2011-11-18
-------------------
-
-* Added AMD support for browserified version.
-* Wrapped browserified js-yaml into closure.
-* Fixed the resolvement of non-specific tags. Closes #17.
-* Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
-* Added !!js/regexp and !!js/undefined types. Partially solves #12.
-* Fixed !!set mapping.
-* Fixed month parse in dates. Closes #19.
-
-0.3.0 / 2011-11-09
-------------------
-
-* Removed JS.Class dependency. Closes #3.
-* Added browserified version. Closes #13.
-* Added live demo of browserified version.
-* Ported some of the PyYAML tests. See #14.
-* Fixed timestamp bug when fraction was given.
-
-0.2.2 / 2011-11-06
-------------------
-
-* Fixed crash on docs without ---. Closes #8.
-* Fixed miltiline string parse
-* Fixed tests/comments for using array as key
-
-0.2.1 / 2011-11-02
-------------------
-
-* Fixed short file read (<4k). Closes #9.
-
-0.2.0 / 2011-11-02
-------------------
-
-* First public release
View
21 node_modules/bake/node_modules/props/node_modules/js-yaml/LICENSE
@@ -1,21 +0,0 @@
-(The MIT License)
-
-Copyright (C) 2011 by Vitaly Puzrin
-
-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
80 node_modules/bake/node_modules/props/node_modules/js-yaml/Makefile
@@ -1,80 +0,0 @@
-PATH := $(shell pwd)/node_modules/.bin:${PATH}
-
-PROJECT := $(notdir ${PWD})
-TMP_PATH := /tmp/${PROJECT}-$(shell date +%s)
-
-REMOTE_NAME ?= origin
-REMOTE_REPO ?= $(shell git config --get remote.${REMOTE_NAME}.url)
-
-CURR_HEAD := $(firstword $(shell git show-ref --hash HEAD | cut --bytes=-6) master)
-GITHUB_NAME := nodeca/js-yaml
-SRC_URL_FMT := https://github.com/${GITHUB_NAME}/blob/${CURR_HEAD}/{file}\#L{line}
-
-JS_FILES := $(shell find ./bin ./lib ./test -type f -name '*.js' -print)
-
-lint:
- @if test ! `which jslint` ; then \
- echo "You need 'jslint' installed in order to run lint." >&2 ; \
- echo " $ make dev-deps" >&2 ; \
- exit 128 ; \
- fi
- # (node) -> Node.JS compatibility mode
- # (indent) -> indentation level (2 spaces)
- # (nomen) -> tolerate underscores in identifiers (e.g. `var _val = 1`)
- # (bitwise) -> tolerate bitwise operators (used in base64)
- # (white) -> tolerate messy whitespace
- jslint --node --nomen --bitwise --white --indent=2 ./index.js ${JS_FILES}
-
-test: lint
- @if test ! `which vows` ; then \
- echo "You need 'vows' installed in order to run tests." >&2 ; \
- echo " $ make dev-deps" >&2 ; \
- exit 128 ; \
- fi
- NODE_ENV=test vows --spec
-
-dev-deps:
- @if test ! `which npm` ; then \
- echo "You need 'npm' installed." >&2 ; \
- echo " See: http://npmjs.org/" >&2 ; \
- exit 128 ; \
- fi
- npm install --dev
-
-build: browserify uglify
-
-browserify:
- if test ! `which browserify` ; then npm install browserify ; fi
- cp -r support/browserify/ ${TMP_PATH}
- browserify index.js -o ${TMP_PATH}/50_js-yaml.js
- cat ${TMP_PATH}/* > js-yaml.js
- rm -rf ${TMP_PATH}
- cp js-yaml.js demo/js/
-
-uglify:
- if test ! `which uglifyjs` ; then npm install uglify-js ; fi
- uglifyjs js-yaml.js > js-yaml.min.js
-
-
-gh-pages:
- @if test -z ${REMOTE_REPO} ; then \
- echo 'Remote repo URL not found' >&2 ; \
- exit 128 ; \
- fi
- mkdir ${TMP_PATH}
- cp -r demo/* ${TMP_PATH}
- touch ${TMP_PATH}/.nojekyll
- cd ${TMP_PATH} && \
- git init && \
- git add . && \
- git commit -q -m 'Update browserified demo'
- cd ${TMP_PATH} && \
- git remote add remote ${REMOTE_REPO} && \
- git push --force remote +master:gh-pages
- rm -rf ${TMP_PATH}
-
-todo:
- grep 'TODO' -n -r ./lib 2>/dev/null || test true
-
-.PHONY: test lint dev-deps gh-pages todo
-.SILENT: todo test test-functional test-issues
View
172 node_modules/bake/node_modules/props/node_modules/js-yaml/README.md
@@ -1,172 +0,0 @@
-JS-YAML - YAML 1.1 parser for JavaScript
-========================================
-
-[![Build Status](https://secure.travis-ci.org/nodeca/js-yaml.png)](http://travis-ci.org/nodeca/js-yaml)
-
-[Online Demo](http://nodeca.github.com/js-yaml/)
-
-This is a native port of [PyYAML](http://pyyaml.org/), the most advanced YAML parser.
-Now you can use all modern YAML feature right in JavaScript. Originally snapshoted version - PyYAML 3.10 (2011-05-30).
-
-## Installation
-
-### YAML module for node.js
-
-```
-npm install js-yaml
-```
-
-If you want to inspect your YAML files from CLI,
-install [js-yaml.bin](https://github.com/nodeca/js-yaml.bin).
-
-
-### bundled YAML library for browser
-
-``` html
-<script src="js-yaml.min.js"></script>
-<script type="text/javascript">
-var doc = jsyaml.load('greeting: hello\nname: world');
-</script>
-```
-
-Also we support AMD loaders, e.g. [RequireJS](http://requirejs.org/).
-
-## API
-
-JS-YAML automatically registers handlers for `.yml` and `.yaml` files. You can load them just with `require`.
-That's mostly equivalent to calling loadAll() on file handler ang gathering all documents into array.
-Just with one string!
-
-``` javascript
-require('js-yaml');
-
-// Get array of documents, or throw exception on error
-var docs = require('/home/ixti/examples.yml');
-
-console.log(docs);
-```
-
-If you are sure, that file has only one document, chained `shift()` will help to exclude array wrapper:
-
-``` javascript
-require('js-yaml');
-
-// Get array of documents, or throw exception on error
-var singleDoc = require('/home/ixti/examples.yml').shift();
-
-console.log(singleDoc);
-```
-
-
-### load (string|buffer|file\_resource)
-
-Parses source as single YAML document. Returns JS object or throws exception on error.
-
-This function does NOT understands multi-doc sources, it throws exception on those.
-
-``` javascript
-var yaml = require('js-yaml');
-
-// pass the string
-fs.readFile('/home/ixti/example.yml', 'utf8', function (err, data) {
- if (err) {
- // handle error
- return;
- }
- try {
- console.log( yaml.load(data) );
- } catch(e) {
- console.log(e);
- }
-});
-```
-
-
-### loadAll (string|buffer|file\_resource, iterator)
-
-Same as `Load`, but understands multi-doc sources and apply iterator to each document.
-
-``` javascript
-var yaml = require('js-yaml');
-
-// pass the string
-fs.readFile('/home/ixti/example.yml', 'utf8', function (err, data) {
- if (err) {
- // handle error
- return;
- }
-
- try {
- yaml.loadAll(data, function (doc) {
- console.log(doc);
- });
- } catch(e) {
- console.log(e);
- }
-});
-```
-
-
-### safeLoad (string|buffer|file\_resource)
-
-Same as `load()` but uses _safe_ schema - only recommended tags of YAML
-specification (no JavaScript-specific tags, e.g. `!!js/regexp`).
-
-
-### safeLoadAll (string|buffer|file\_resource, iterator)
-
-Same as `loadAll()` but uses _safe_ schema - only recommended tags of YAML
-specification (no JavaScript-specific tags, e.g. `!!js/regexp`).
-
-
-## JavaScript YAML tags scheme
-
-The list of standard YAML tags and corresponding JavaScipt types. See also
-[YAML Tag Discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and [Yaml Types](http://yaml.org/type/).
-
-```
-!!null '' # null
-!!bool 'yes' # bool
-!!int '3...' # number
-!!float '3.14...' # number
-!!binary '...base64...' # buffer
-!!timestamp 'YYYY-...' # date
-!!omap [ ... ] # array of key-value pairs
-!!pairs [ ... ] # array or array pairs
-!!set { ... } # array of objects with given keys and null values
-!!str '...' # string
-!!seq [ ... ] # array
-!!map { ... } # object
-```
-
-**JavaScript-specific tags**
-
-```
-!!js/regexp /pattern/gim # RegExp
-!!js/undefined '' # Undefined
-!!js/function 'function () {...}' # Function
-```
-
-### Caveats
-
-Note, that you use arrays or objects as key in JS-YAML. JS do not allows objects
-or array as keys, and stringifies them at the moment of adding them.
-
-``` yaml
----
-? [ foo, bar ]
-: - baz
-? { foo: bar }
-: - baz
- - baz
-```
-
-=>
-
-``` javascript
-{ "": ["baz"], "[object Object]": ["baz", "baz"] }
-```
-
-## License
-
-View the [LICENSE](https://github.com/nodeca/js-yaml/blob/master/LICENSE) file (MIT).
View
32 node_modules/bake/node_modules/props/node_modules/js-yaml/doc/gotchas.md
@@ -1,32 +0,0 @@
-Gotchas and Kludges
--------------------
-
-Expose class properties into instance
-=====================================
-
-Example:
-
-``` javascript
-function BaseConstructor() {
- // ...
- this.yamlConstructors = BaseConstructor.yamlConstructors;
- // ...
-}
-
-BaseConstructor.yamlConstructors = {};
-```
-
-Some of instance methods needs access to "class properties". Normally we would
-use:
-
-``` javascript
-Foo.prototype.bar = function bar(key) {
- return this.constructor.yamlConstructors[key];
-}
-```
-
-And this will work, if you will work ONLY with Foo or its childs. But we glue
-modules (like SafeConstructor, Resolver, Composer, etc.) together via Loader.
-So we call `BaseResolver#resolve` via `Resolver` from within `Loader` instance.
-So `this.constructor` in the exampe above will be `Loader()` and not `Resolver`
-as we might expect it.
View
10 node_modules/bake/node_modules/props/node_modules/js-yaml/examples/single.js
@@ -1,10 +0,0 @@
-var inspect = require('util').inspect,
- jsyaml = require(__dirname + '/../lib/js-yaml'),
- doc;
-
-try {
- doc = require(__dirname + '/single.yml');
- console.log(inspect(doc, false, 10, true));
-} catch (e) {
- console.log(e.stack || e.toString());
-}
View
195 node_modules/bake/node_modules/props/node_modules/js-yaml/examples/single.yml
@@ -1,195 +0,0 @@
----
-# Collection Types #############################################################
-################################################################################
-
-# http://yaml.org/type/map.html -----------------------------------------------#
-
-map:
- # Unordered set of key: value pairs.
- Block style: !!map
- Clark : Evans
- Ingy : döt Net
- Oren : Ben-Kiki
- Flow style: !!map { Clark: Evans, Ingy: döt Net, Oren: Ben-Kiki }
-
-# http://yaml.org/type/omap.html ----------------------------------------------#
-
-omap:
- # Explicitly typed ordered map (dictionary).
- Bestiary: !!omap
- - aardvark: African pig-like ant eater. Ugly.
- - anteater: South-American ant eater. Two species.
- - anaconda: South-American constrictor snake. Scaly.
- # Etc.
- # Flow style
- Numbers: !!omap [ one: 1, two: 2, three : 3 ]
-
-# http://yaml.org/type/pairs.html ---------------------------------------------#
-
-pairs:
- # Explicitly typed pairs.
- Block tasks: !!pairs
- - meeting: with team.
- - meeting: with boss.
- - break: lunch.
- - meeting: with client.
- Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
-
-# http://yaml.org/type/set.html -----------------------------------------------#
-
-set:
- # Explicitly typed set.
- baseball players: !!set
- ? Mark McGwire
- ? Sammy Sosa
- ? Ken Griffey
- # Flow style
- baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
-
-# http://yaml.org/type/seq.html -----------------------------------------------#
-
-seq:
- # Ordered sequence of nodes
- Block style: !!seq
- - Mercury # Rotates - no light/dark sides.
- - Venus # Deadliest. Aptly named.
- - Earth # Mostly dirt.
- - Mars # Seems empty.
- - Jupiter # The king.
- - Saturn # Pretty.
- - Uranus # Where the sun hardly shines.
- - Neptune # Boring. No rings.
- - Pluto # You call this a planet?
- Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
- Jupiter, Saturn, Uranus, Neptune, # Gas
- Pluto ] # Overrated
-
-
-# Scalar Types #################################################################
-################################################################################
-
-# http://yaml.org/type/binary.html --------------------------------------------#
-
-binary:
- canonical: !!binary "\
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
- generic: !!binary |
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
- description:
- The binary value above is a tiny arrow encoded as a gif image.
-
-# http://yaml.org/type/bool.html ----------------------------------------------#
-
-bool:
- canonical: y
- answer: NO
- logical: True
- option: on
-
-# http://yaml.org/type/float.html ---------------------------------------------#
-
-float:
- canonical: 6.8523015e+5
- exponentioal: 685.230_15e+03
- fixed: 685_230.15
- sexagesimal: 190:20:30.15
- negative infinity: -.inf
- not a number: .NaN
-
-# http://yaml.org/type/int.html -----------------------------------------------#
-
-int:
- canonical: 685230
- decimal: +685_230
- octal: 02472256
- hexadecimal: 0x_0A_74_AE
- binary: 0b1010_0111_0100_1010_1110
- sexagesimal: 190:20:30
-
-# http://yaml.org/type/merge.html ---------------------------------------------#
-
-merge:
- - &CENTER { x: 1, y: 2 }
- - &LEFT { x: 0, y: 2 }
- - &BIG { r: 10 }
- - &SMALL { r: 1 }
-
- # All the following maps are equal:
-
- - # Explicit keys
- x: 1
- y: 2
- r: 10
- label: nothing
-
- - # Merge one map
- << : *CENTER
- r: 10
- label: center
-
- - # Merge multiple maps
- << : [ *CENTER, *BIG ]
- label: center/big
-
- - # Override
- << : [ *BIG, *LEFT, *SMALL ]
- x: 1
- label: big/left/small
-
-# http://yaml.org/type/null.html ----------------------------------------------#
-
-null:
- # This mapping has four keys,
- # one has a value.
- empty:
- canonical: ~
- english: null
- ~: null key
- # This sequence has five
- # entries, two have values.
- sparse:
- - ~
- - 2nd entry
- -
- - 4th entry
- - Null
-
-# http://yaml.org/type/str.html -----------------------------------------------#
-
-string: abcd
-
-# http://yaml.org/type/timestamp.html -----------------------------------------#
-
-timestamp:
- canonical: 2001-12-15T02:59:43.1Z
- valid iso8601: 2001-12-14t21:59:43.10-05:00
- space separated: 2001-12-14 21:59:43.10 -5
- no time zone (Z): 2001-12-15 2:59:43.10
- date (00:00:00Z): 2002-12-14
-
-
-# JavaScript Specific Types ####################################################
-################################################################################
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp
-
-regexp:
- simple: !!js/regexp foobar
- modifiers: !!js/regexp /foobar/mi
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined
-
-undefined: !!js/undefined ~
-
-# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function
-
-function: !!js/function >
- function foobar() {
- return 'Wow! JS-YAML Rocks!';
- }
View
1  node_modules/bake/node_modules/props/node_modules/js-yaml/index.js
@@ -1 +0,0 @@
-module.exports = require('./lib/js-yaml.js');
View
92 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml.js
@@ -1,92 +0,0 @@
-'use strict';
-
-
-var fs = require('fs');
-var _loader = require('./js-yaml/loader');
-
-
-var jsyaml = module.exports = {};
-
-
-jsyaml.scan = function scan(stream, callback, Loader) {
- Loader = (Loader || _loader.SafeLoader);
-
- var loader = new Loader(stream);
- while (loader.checkToken()) {
- callback(loader.getToken());
- }
-};
-
-
-jsyaml.compose = function compose(stream, Loader) {
- Loader = (Loader || _loader.SafeLoader);
-
- var loader = new Loader(stream);
- return loader.getSingleNode();
-};
-
-
-jsyaml.load = function load(stream, Loader) {
- Loader = (Loader || _loader.Loader);
-
- var loader = new Loader(stream);
- return loader.getSingleData();
-};
-
-
-jsyaml.loadAll = function loadAll(stream, callback, Loader) {
- Loader = (Loader || _loader.Loader);
-
- var loader = new Loader(stream);
- while (loader.checkData()) {
- callback(loader.getData());
- }
-};
-
-
-jsyaml.safeLoad = function load(stream) {
- return jsyaml.load(stream, _loader.SafeLoader);
-};
-
-
-jsyaml.safeLoadAll = function loadAll(stream, callback) {
- jsyaml.loadAll(stream, callback, _loader.SafeLoader);
-};
-
-
-/**
- * jsyaml.addConstructor(tag, constructor[, Loader]) -> Void
- * Add a constructor for the given tag.
- *
- * Constructor is a function that accepts a Loader instance
- * and a node object and produces the corresponding JavaScript object.
- **/
-jsyaml.addConstructor = function addConstructor(tag, constructor, Loader) {
- (Loader || _loader.Loader).addConstructor(tag, constructor);
-};
-
-
-// Register extensions handler
-(function () {
- var require_handler = function (module, filename) {
- var fd = fs.openSync(filename, 'r');
-
- // fill in documents
- module.exports = [];
- jsyaml.loadAll(fd, function (doc) { module.exports.push(doc); });
-
- fs.closeSync(fd);
- };
-
- // register require extensions only if we're on node.js
- // hack for browserify
- if (undefined !== require.extensions) {
- require.extensions['.yml'] = require_handler;
- require.extensions['.yaml'] = require_handler;
- }
-}());
-
-
-////////////////////////////////////////////////////////////////////////////////
-// vim:ts=2:sw=2
-////////////////////////////////////////////////////////////////////////////////
View
240 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/common.js
@@ -1,240 +0,0 @@
-'use strict';
-
-
-var $$ = module.exports = {};
-
-
-// UTILITY METHODS
-////////////////////////////////////////////////////////////////////////////////
-
-
-// <object> $$.extend(receiver, *sources)
-//
-// Copy all of the properties in the source objects over to the target object.
-// It's in-order, so the last source will override properties of the same name
-// in previous arguments.
-//
-// Example: var o = $$.extend({}, a, b, c);
-$$.extend = function extend(receiver) {
- var i, l, key, skip = [];
-
- receiver = receiver || {};
- l = arguments.length;
-
- if (!!arguments[l - 1] && !!arguments[l - 1].except) {
- skip = arguments[l - 1].except;
- l -= 1;
- }
-
- for (i = 1; i < l; i += 1) {
- if (!!arguments[i] && 'object' === typeof arguments[i]) {
- for (key in arguments[i]) {
- if (arguments[i].hasOwnProperty(key) && -1 === skip.indexOf(key)) {
- receiver[key] = arguments[i][key];
- }
- }
- }
- }
-
- return receiver;
-};
-
-
-// simple inheritance algorithm
-$$.inherits = function inherits(child, parent) {
- var InheritanceGlue = function () {};
-
- InheritanceGlue.prototype = parent.prototype;
- child.prototype = new InheritanceGlue();
-
- // copy parent prototype' methods into child, so mixing made possible
- // think of it as of caching of parent's prototype methods in child
- $$.extend(child.prototype, parent.prototype, {except: [
- 'arguments', 'length', 'name', 'prototype', 'caller'
- ]});
-
- // restore constructor
- $$.extend(child.prototype, {constructor: child});
-
- child.__parent__ = parent;
-};
-
-
-// wrapper for instanceof that allows to check inheritance after $$.inherits
-$$.isInstanceOf = function isInstanceOf(obj, klass) {
- var parent;
-
- if (obj instanceof klass) {
- return true;
- }
-
- if (!!obj && !!obj.constructor) {
- parent = obj.constructor.__parent__;
- return (parent === klass || $$.isInstanceOf(parent, klass));
- }
-
- return false;
-};
-
-
-// iterates through all object keys-value pairs calling iterator on each one
-// example: $$.each(objOrArr, function (val, key) { /* ... */ });
-$$.each = function each(obj, iterator, context) {
- var keys, i, l;
-
- if (null === obj || undefined === obj) {
- return;
- }
-
- context = context || iterator;
-
- if (obj.forEach === Array.prototype.forEach) {
- obj.forEach(iterator, context);
- } else {
- keys = Object.getOwnPropertyNames(obj);
- for (i = 0, l = keys.length; i < l; i += 1) {
- iterator.call(context, obj[keys[i]], keys[i], obj);
- }
- }
-};
-
-
-// returns reversed copy of array
-$$.reverse = function reverse(arr) {
- var result = [], i, l;
- for (i = 0, l = arr.length; i < l; i += 1) {
- result.unshift(arr[i]);
- }
- return result;
-};
-
-
-// Modified from:
-// https://raw.github.com/kanaka/noVNC/d890e8640f20fba3215ba7be8e0ff145aeb8c17c/include/base64.js
-$$.decodeBase64 = (function () {
- var padding = '=', binTable = [
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1,
- -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
- -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
- 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1
- ];
-
- return function decode(data) {
- var value, code, idx = 0, result = [], leftbits, leftdata;
-
- leftbits = 0; // number of bits decoded, but yet to be appended
- leftdata = 0; // bits decoded, but yet to be appended
-
- // Convert one by one.
- for (idx = 0; idx < data.length; idx += 1) {
- code = data.charCodeAt(idx);
- value = binTable[code & 0x7F];
-
- // Skip LF(NL) || CR
- if (0x0A !== code && 0x0D !== code) {
- // Fail on illegal characters
- if (-1 === value) {
- throw new Error("Illegal characters (code=" + code + ") in position " +
- idx + ": ordinal not in range(0..128)");
- }
-
- // Collect data into leftdata, update bitcount
- leftdata = (leftdata << 6) | value;
- leftbits += 6;
-
- // If we have 8 or more bits, append 8 bits to the result
- if (leftbits >= 8) {
- leftbits -= 8;
- // Append if not padding.
- if (padding !== data.charAt(idx)) {
- result.push((leftdata >> leftbits) & 0xFF);
- }
- leftdata &= (1 << leftbits) - 1;
- }
- }
- }
-
- // If there are any bits left, the base64 string was corrupted
- if (leftbits) {
- throw new Error("Corrupted base64 string");
- }
-
- return new Buffer(result);
- };
-}());
-
-
-// CLASSES
-////////////////////////////////////////////////////////////////////////////////
-
-
-// Dummy alternative of delayed population based on generators in PyYAML
-$$.Populator = function Populator(data, callback, context) {
- if (!(this instanceof $$.Populator)) {
- return new $$.Populator(data, callback, context);
- }
-
- this.data = data;
- this.execute = function () {
- callback.call(context || callback);
- };
-};
-
-
-// Simple implementation of hashtable
-$$.Hash = function Hash(defaultValue) {
- var keys, values, index;
-
- if (!(this instanceof $$.Hash)) {
- return new $$.Hash(defaultValue);
- }
-
- index = 0;
- keys = [];
- values = [];
-
- this.store = function store(key, value) {
- var i = keys.indexOf(key);
-
- if (0 <= i) {
- values[i] = value;
- return;
- }
-
- i = index;
- index += 1;
-
- keys[i] = key;
- values[i] = value;
- };
-
-
- this.remove = function remove(key) {
- var i = keys.indexOf(key);
-
- if (0 <= i) {
- delete keys[i];
- delete values[i];
- }
- };
-
-
- this.hasKey = function hasKey(key) {
- return 0 <= keys.indexOf(key);
- };
-
-
- this.get = function get(key) {
- var i = keys.indexOf(key);
- return (0 <= i) ? values[i] : defaultValue;
- };
-};
-
-
-////////////////////////////////////////////////////////////////////////////////
-// vim:ts=2:sw=2
-////////////////////////////////////////////////////////////////////////////////
View
209 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/composer.js
@@ -1,209 +0,0 @@
-'use strict';
-
-
-var $$ = require('./common');
-var _nodes = require('./nodes');
-var _events = require('./events');
-var _errors = require('./errors');
-
-
-function ComposerError() {
- _errors.MarkedYAMLError.apply(this, arguments);
- this.name = 'ComposerError';
-}
-$$.inherits(ComposerError, _errors.MarkedYAMLError);
-
-
-function Composer() {
- this.anchors = {};
-}
-
-
-Composer.prototype.checkNode = function checkNode() {
- // Drop the STREAM-START event
- if (this.checkEvent(_events.StreamStartEvent)) {
- this.getEvent();
- }
-
- // If there are more documents vailable?
- return !this.checkEvent(_events.StreamEndEvent);
-};
-
-Composer.prototype.getNode = function getNode() {
- // Get the root node of the next document.
- if (!this.checkEvent(_events.StreamEndEvent)) {
- return this.composeDocument();
- }
-
- return null;
-};
-
-Composer.prototype.getSingleNode = function getSingleNode() {
- var document = null;
-
- // Drop the STREAM-START event.
- this.getEvent();
-
- // Compose a document if the stream is not empty.
- if (!this.checkEvent(_events.StreamEndEvent)) {
- document = this.composeDocument();
- }
-
- // Ensure that the stream contains no more documents.
- if (!this.checkEvent(_events.StreamEndEvent)) {
- throw new ComposerError("expected a single document in the stream",
- document.startMark, "but found another document",
- this.getEvent().startMark);
- }
-
- // Drop the STREAM-END event.
- this.getEvent();
-
- return document;
-};
-
-Composer.prototype.composeDocument = function composeDocument() {
- var node;
-
- // Drop the DOCUMENT-START event.
- this.getEvent();
-
- // Compose the root node.
- node = this.composeNode(null, null);
-
- // Drop the DOCUMENT-END event.
- this.getEvent();
-
- this.anchors = {};
-
- return node;
-};
-
-Composer.prototype.composeNode = function composeNode(parent, index) {
- var node = null, event, anchor;
-
- if (this.checkEvent(_events.AliasEvent)) {
- event = this.getEvent();
- anchor = event.anchor;
-
- if (undefined === this.anchors[anchor]) {
- throw new ComposerError(null, null, "found undefined alias " + anchor,
- event.startMark);
- }
-
- return this.anchors[anchor];
- }
-
- event = this.peekEvent();
- anchor = event.anchor;
-
- if (null !== anchor && undefined !== this.anchors[anchor]) {
- throw new ComposerError("found duplicate anchor " + anchor + "; first occurence",
- this.anchors[anchor].startMark, "second occurence",
- event.startMark);
- }
-
- if (this.checkEvent(_events.ScalarEvent)) {
- node = this.composeScalarNode(anchor);
- } else if (this.checkEvent(_events.SequenceStartEvent)) {
- node = this.composeSequenceNode(anchor);
- } else if (this.checkEvent(_events.MappingStartEvent)) {
- node = this.composeMappingNode(anchor);
- }
-
- return node;
-};
-
-Composer.prototype.composeScalarNode = function composeScalarNode(anchor) {
- var event, tag, node;
-
- event = this.getEvent();
- tag = event.tag;
-
- if (null === tag) {
- tag = this.resolve(_nodes.ScalarNode, event.value, event.implicit);
- } else if ("!" === tag) {
- tag = this.resolve(_nodes.ScalarNode, event.value, false);
- }
-
- node = new _nodes.ScalarNode(tag, event.value, event.startMark, event.endMark,
- event.style);
-
- if (null !== anchor) {
- this.anchors[anchor] = node;
- }
-
- return node;
-};
-
-Composer.prototype.composeSequenceNode = function composeSequenceNode(anchor) {
- var start_event, event, tag, node, index, end_event;
-
- start_event = this.getEvent();
- tag = start_event.tag;
-
- if (null === tag) {
- tag = this.resolve(_nodes.SequenceNode, null, start_event.implicit);
- } else if ("!" === tag) {
- tag = this.resolve(_nodes.SequenceNode, null, false);
- }
-
- node = new _nodes.SequenceNode(tag, [], start_event.startMark, null,
- start_event.flowStyle);
-
- if (null !== anchor) {
- this.anchors[anchor] = node;
- }
-
- index = 0;
-
- while (!this.checkEvent(_events.SequenceEndEvent)) {
- node.value.push(this.composeNode(node, index));
- index += 1;
- }
-
- end_event = this.getEvent();
- node.endMark = end_event.endMark;
-
- return node;
-};
-
-
-Composer.prototype.composeMappingNode = function composeMappingNode(anchor) {
- var startEvent, event, tag, node, itemKey, itemValue, endEvent;
-
- startEvent = this.getEvent();
- tag = startEvent.tag;
-
- if (null === tag) {
- tag = this.resolve(_nodes.MappingNode, null, startEvent.implicit);
- } else if ("!" === tag) {
- tag = this.resolve(_nodes.MappingNode, null, false);
- }
-
- node = new _nodes.MappingNode(tag, [], startEvent.startMark, null,
- startEvent.flowStyle);
-
- if (null !== anchor) {
- this.anchors[anchor] = node;
- }
-
- while (!this.checkEvent(_events.MappingEndEvent)) {
- itemKey = this.composeNode(node, null);
- itemValue = this.composeNode(node, itemKey);
- node.value.push([itemKey, itemValue]);
- }
-
- endEvent = this.getEvent();
- node.endMark = endEvent.endMark;
-
- return node;
-};
-
-
-module.exports.Composer = Composer;
-
-
-////////////////////////////////////////////////////////////////////////////////
-// vim:ts=2:sw=2
-////////////////////////////////////////////////////////////////////////////////
View
651 node_modules/bake/node_modules/props/node_modules/js-yaml/lib/js-yaml/constructor.js
@@ -1,651 +0,0 @@
-'use strict';
-
-
-var $$ = require('./common');
-var _errors = require('./errors');
-var _nodes = require('./nodes');
-
-
-function ConstructorError() {
- _errors.MarkedYAMLError.apply(this, arguments);
- this.name = 'ConstructorError';
-}
-$$.inherits(ConstructorError, _errors.MarkedYAMLError);
-
-
-var BOOL_VALUES = {
- 'y': true,
- 'yes': true,
- 'n': false,
- 'no': false,
- 'true': true,
- 'false': false,
- 'on': true,
- 'off': false
-};
-
-
-var TIMESTAMP_REGEXP = new RegExp(
- '^([0-9][0-9][0-9][0-9])' + // [1] year
- '-([0-9][0-9]?)' + // [2] month
- '-([0-9][0-9]?)' + // [3] day
- '(?:(?:[Tt]|[ \\t]+)' + // ...
- '([0-9][0-9]?)' + // [4] hour
- ':([0-9][0-9])' + // [5] minute
- ':([0-9][0-9])' + // [6] second
- '(?:\\.([0-9]*))?' + // [7] fraction
- '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
- '(?::([0-9][0-9]))?))?)?$' // [11] tz_minute
-);
-
-
-function BaseConstructor() {
- this.constructedObjects = new $$.Hash();
- this.recursiveObjects = new $$.Hash();
- this.statePopulators = []; // was state_generators
- this.deepConstruct = false;
-
- this.yamlConstructors = BaseConstructor.yamlConstructors;
-}
-
-BaseConstructor.yamlConstructors = {};
-BaseConstructor.addConstructor = function addConstructor(tag, constructor) {
- this.yamlConstructors[tag] = constructor;
-};
-
-BaseConstructor.prototype.checkData = function checkData() {
- return this.checkNode();
-};
-
-BaseConstructor.prototype.getData = function getData() {
- if (this.checkNode()) {
- return this.constructDocument(this.getNode());
- }
-};
-
-BaseConstructor.prototype.getSingleData = function getSingleData() {
- var node = this.getSingleNode();
- if (null !== node) {
- return this.constructDocument(node);
- }
- return null;
-};
-
-BaseConstructor.prototype.constructDocument = function constructDocument(node) {
- var data = this.constructObject(node),
- stateIterator, statePopulators;
-
- stateIterator = function (populator) { populator.execute(); };
-
- while (!!this.statePopulators.length) {
- statePopulators = this.statePopulators;
- this.statePopulators = [];
-
- statePopulators.forEach(stateIterator);
- }
-
- this.constructedObjects = new $$.Hash();
- this.recursiveObjects = new $$.Hash();
- this.deepConstruct = false;
-
- return data;
-};
-
-BaseConstructor.prototype.constructObject = function constructObject(node, deep) {
- var data, old_deep, constructor, populator;
-
- if (this.constructedObjects.hasKey(node)) {
- return this.constructedObjects.get(node);
- }
-
- if (!!deep) {
- old_deep = this.deepConstruct;
- this.deepConstruct = true;
- }
-
- if (this.recursiveObjects.hasKey(node)) {
- throw new ConstructorError(null, null,
- "found unconstructable recursive node",
- node.startMark);
- }
-
- this.recursiveObjects.store(node, null);
-
- if (undefined !== this.yamlConstructors[node.tag]) {
- constructor = this.yamlConstructors[node.tag];
- } else {
- if (undefined !== this.yamlConstructors[null]) {
- constructor = this.yamlConstructors[null];
- } else {
- throw new ConstructorError(null, null,
- "can't find any constructor for tag=" + node.tag,
- node.startMark);
- }
- }
-
- data = constructor.call(this, node);
-
- if (data instanceof $$.Populator) {
- populator = data;
- data = populator.data;
-
- if (this.deepConstruct) {
- populator.execute();
- } else {
- this.statePopulators.push(populator);
- }
- }
-
- this.constructedObjects.store(node, data);
- this.recursiveObjects.remove(node);
-
- if (deep) {
- this.deepConstruct = old_deep;
- }
-
- return data;
-};
-
-BaseConstructor.prototype.constructScalar = function constructScalar(node) {
- if (!$$.isInstanceOf(node, _nodes.ScalarNode)) {
- throw new ConstructorError(null, null,
- "expected a scalar node, but found " + node.id,
- node.startMark);
- }
-
- return node.value;
-};
-
-BaseConstructor.prototype.constructSequence = function constructSequence(node, deep) {
- if (!$$.isInstanceOf(node, _nodes.SequenceNode)) {
- throw new ConstructorError(null, null,
- "expected a sequence node, but found " + node.id,
- node.startMark);
- }
-
- return node.value.map(function (child) {
- return this.constructObject(child, deep);
- }, this);
-};
-
-BaseConstructor.prototype.constructMapping = function constructMapping(node, deep) {
- var mapping;
-
- if (!$$.isInstanceOf(node, _nodes.MappingNode)) {
- throw new ConstructorError(null, null,
- "expected a mapping node, but found " + node.id,
- node.startMark);
- }
-
- mapping = {};
-
- $$.each(node.value, function (pair) {
- var key_node = pair[0], value_node = pair[1], key, value;
-
- key = this.constructObject(key_node, deep);
- // TODO: Do we need to check
- if (undefined === key_node.hash) {
- throw new ConstructorError("while constructing a mapping", key_node.startMark,
- "found unhashable key", key_node.startMark);
- }
- value = this.constructObject(value_node, deep);
-
- mapping[key] = value;
- }, this);
-
- return mapping;
-};
-
-BaseConstructor.prototype.constructPairs = function constructPairs(node, deep) {
- var pairs;
-
- if (!$$.isInstanceOf(node, _nodes.MappingNode)) {
- throw new ConstructorError(null, null,
- "expected a mapping node, but found " + node.id,
- node.startMark);
- }
-
- pairs = [];
-
- $$.each(node.value, function (pair) {
- var key, value;
- key = this.constructObject(pair[0], deep);
- value = this.constructObject(pair[1], deep);
- pairs.store(key, value);
- }, this);
-
- return pairs;
-};
-
-
-function SafeConstructor() {
- BaseConstructor.apply(this);
- this.yamlConstructors = SafeConstructor.yamlConstructors;
-}
-
-$$.inherits(SafeConstructor, BaseConstructor);
-
-SafeConstructor.yamlConstructors = $$.extend({}, BaseConstructor.yamlConstructors);
-SafeConstructor.addConstructor = BaseConstructor.addConstructor;
-
-SafeConstructor.prototype.constructScalar = function constructScalar(node) {
- var result;
-
- if ($$.isInstanceOf(node, _nodes.MappingNode)) {
- $$.each(node.value, function (pair) {
- var key_node = pair[0], value_node = pair[1], value;
-
- if ('tag:yaml.org,2002:value' === key_node.tag) {
- result = this.constructScalar(value_node);
- }
- }, this);
-
- if (undefined !== result) {
- return result;
- }
- }
-
- return BaseConstructor.prototype.constructScalar.call(this, node);
-};
-
-SafeConstructor.prototype.flattenMapping = function flattenMapping(node) {
- var self = this, merge = [], index = 0, keyNode, valueNode, submerge,
- pushSingleValue, pushMultipleValues, submergeIterator;
-
- pushSingleValue = function (value) {
- merge.push(value);
- };
-
- pushMultipleValues = function (values) {
- values.forEach(pushSingleValue);
- };
-
- submergeIterator = function (subnode) {
- if (!$$.isInstanceOf(subnode, _nodes.MappingNode)) {
- throw new ConstructorError("while constructing a mapping", node.startMark,
- "expected a mapping for merging, but found " + subnode.id,
- subnode.startMark);
- }
- self.flattenMapping(subnode);
- submerge.push(subnode.value);
- };
-
- while (index < node.value.length) {
- keyNode = node.value[index][0];
- valueNode = node.value[index][1];
-
- if ('tag:yaml.org,2002:merge' === keyNode.tag) {
- node.value.splice(index, 1);
-
- if ($$.isInstanceOf(valueNode, _nodes.MappingNode)) {
- self.flattenMapping(valueNode);
- $$.each(valueNode.value, pushSingleValue);
- } else if ($$.isInstanceOf(valueNode, _nodes.SequenceNode)) {
- submerge = [];
- $$.each(valueNode.value, submergeIterator);
- $$.reverse(submerge).forEach(pushMultipleValues);
- } else {
- throw new ConstructorError("while constructing a mapping", node.startMark,
- "expected a mapping or list of mappings for merging, but found " + valueNode.id,
- valueNode.startMark);
- }
- } else if ('tag:yaml.org,2002:value' === keyNode.tag) {
- keyNode.tag = 'tag:yaml.org,2002:str';
- index += 1;
- } else {
- index += 1;
- }
- }
-
- if (!!merge.length) {
- $$.each(node.value, function (value) { merge.push(value); });
- node.value = merge;
- }
-};
-
-SafeConstructor.prototype.constructMapping = function constructMapping(node, deep) {
- if ($$.isInstanceOf(node, _nodes.MappingNode)) {
- this.flattenMapping(node);
- }
- return BaseConstructor.prototype.constructMapping.call(this, node);
-};
-
-SafeConstructor.prototype.constructYamlNull = function constructYamlNull(node) {
- this.constructScalar(node);
- return null;
-};
-
-SafeConstructor.prototype.constructYamlBool = function constructYamlBool(node) {
- var value = this.constructScalar(node);
- return BOOL_VALUES[value.toLowerCase()];
-};
-
-SafeConstructor.prototype.constructYamlInt = function constructYamlInt(node) {
- var value = this.constructScalar(node).replace(/_/g, ''),
- sign = ('-' === value[0]) ? -1 : 1,
- base, digits = [];
-
- if (0 <= '+-'.indexOf(value[0])) {
- value = value.slice(1);
- }
-
- if ('0' === value) {
- return 0;
- } else if (/^0b/.test(value)) {
- return sign * parseInt(value.slice(2), 2);
- } else if (/^0x/.test(value)) {
- return sign * parseInt(value, 16);
- } else if ('0' === value[0]) {
- return sign * parseInt(value, 8);
- } else if (0 <= value.indexOf(':')) {
- value.split(':').forEach(function (v) {
- digits.unshift(parseInt(v, 10));
- });
- value = 0;
- base = 1;
- digits.forEach(function (d) {
- value += (d * base);
- base *= 60;
- });
- return sign * value;
- } else {
- return sign * parseInt(value, 10);
- }
-};
-
-SafeConstructor.prototype.constructYamlFloat = function constructYamlFloat(node) {
- var value = this.constructScalar(node).replace(/_/g, ''),
- sign = ('-' === value[0]) ? -1 : 1,
- base, digits = [];
-
- if (0 <= '+-'.indexOf(value[0])) {
- value = value.slice(1);
- }
-
- if ('.inf' === value) {
- return (1 === sign) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
- } else if ('.nan' === value) {
- return NaN;
- } else if (0 <= value.indexOf(':')) {
- value.split(':').forEach(function (v) {
- digits.unshift(parseFloat(v, 10));
- });
- value = 0.0;
- base = 1;
- digits.forEach(function (d) {
- value += d * base;
- base *= 60;
- });
- return sign * value;
- } else {
- return sign * parseFloat(value, 10);
- }
-};
-
-SafeConstructor.prototype.constructYamlBinary = function constructYamlBinary(node) {
- try {
- return $$.decodeBase64(this.constructScalar(node));
- } catch (err) {
- throw new ConstructorError(null, null,
- "failed to decode base64 data: " + err.toString(), node.startMark);
- }
-};
-
-SafeConstructor.prototype.constructYamlTimestamp = function constructYamlTimestamp(node) {
- var match, year, month, day, hour, minute, second, fraction = 0,
- delta = null, tz_hour, tz_minute, data;
-
- match = TIMESTAMP_REGEXP.exec(this.constructScalar(node));
-
- // match: [1] year [2] month [3] day
-
- year = +(match[1]);
- month = +(match[2]) - 1; // JS month starts with 0
- day = +(match[3]);
-
- if (!match[4]) { // no hour
- return new Date(year, month, day);
- }
-
- // match: [4] hour [5] minute [6] second [7] fraction
-
- hour = +(match[4]);
- minute = +(match[5]);
- second = +(match[6]);
-
- if (!!match[7]) {
- fraction = match[7].slice(0,3);
- while (fraction.length < 3) { // milli-seconds
- fraction += '0';
- }
- fraction = +fraction;
- }
-
- // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
-
- if (!!match[9]) {
- tz_hour = +(match[10]);
- tz_minute = +(match[11] || 0);
- delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
- if ('-' === match[9]) {
- delta = -delta;
- }
- }
-
- data = new Date(year, month, day, hour, minute, second, fraction);
-
- if (!!delta) {
- data.setTime(data.getTime() - delta);
- }
-
- return data;
-};
-
-SafeConstructor.prototype.constructYamlOmap = function constructYamlOmap(node) {
- var self = this, omap = [];
- return $$.Populator(omap, function () {
- if (!$$.isInstanceOf(node, _nodes.SequenceNode)) {
- throw new ConstructorError("while constructing an ordered map", node.startMark,
- "expected a sequence, but found " + node.id, node.startMark);
- }
-
- node.value.forEach(function (subnode) {
- var data, key, value;
-
- if (!$$.isInstanceOf(subnode, _nodes.MappingNode)) {
- throw new ConstructorError("while constructing an ordered map", node.startMark,
- "expected a mapping of length 1, but found " + subnode.id,
- subnode.startMark);
- }
-
- if (1 !== subnode.value.length) {
- throw new ConstructorError("while constructing an ordered map", node.startMark,
- "expected a single mapping item, but found " + subnode.value.length + " items",
- subnode.startMark);
- }
-
- key = self.constructObject(subnode.value[0][0]);
- value = self.constructObject(subnode.value[0][1]);
- data = Object.create(null);
-
- data[key] = value;
-
- omap.push(data);
- });
- });
-};
-
-SafeConstructor.prototype.constructYamlPairs = function constructYamlPairs(node) {
- var self = this, pairs = [];
- return $$.Populator(pairs, function () {
- if (!$$.isInstanceOf(node, _nodes.SequenceNode)) {
- throw new ConstructorError("while constructing pairs", node.startMark,
- "expected a sequence, but found " + node.id, node.startMark);
- }
-
- node.value.forEach(function (subnode) {
- var key, value;
-
- if (!$$.isInstanceOf(subnode, _nodes.MappingNode)) {
- throw new ConstructorError("while constructing pairs", node.startMark,
- "expected a mapping of length 1, but found " + subnode.id,
- subnode.startMark);
- }
-
- if (1 !== subnode.value.length) {
- throw new ConstructorError("while constructing pairs", node.startMark,
- "expected a single mapping item, but found " + subnode.value.length + " items",
- subnode.startMark);
- }
-
- key = self.constructObject(subnode.value[0][0]);
- value = self.constructObject(subnode.value[0][1]);
- </