jass 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (503) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +47 -0
  3. data/README.md +45 -0
  4. data/lib/jass.rb +55 -0
  5. data/lib/jass/base.rb +141 -0
  6. data/lib/jass/bundle_processor.rb +28 -0
  7. data/lib/jass/compiler.rb +112 -0
  8. data/lib/jass/dependency.rb +14 -0
  9. data/lib/jass/errors.rb +29 -0
  10. data/lib/jass/es6_processor.rb +17 -0
  11. data/lib/jass/function.rb +13 -0
  12. data/lib/jass/global_directive_processor.rb +12 -0
  13. data/lib/jass/plugin.rb +13 -0
  14. data/lib/jass/railtie.rb +12 -0
  15. data/lib/jass/version.rb +3 -0
  16. data/vendor/node_modules/@types/acorn/index.d.ts +256 -0
  17. data/vendor/node_modules/@types/acorn/package.json +29 -0
  18. data/vendor/node_modules/@types/estree/index.d.ts +546 -0
  19. data/vendor/node_modules/@types/estree/package.json +22 -0
  20. data/vendor/node_modules/acorn-dynamic-import/lib/index.js +17 -0
  21. data/vendor/node_modules/acorn-dynamic-import/lib/inject.js +72 -0
  22. data/vendor/node_modules/acorn-dynamic-import/lib/walk.js +22 -0
  23. data/vendor/node_modules/acorn-dynamic-import/package.json +45 -0
  24. data/vendor/node_modules/acorn-dynamic-import/src/index.js +4 -0
  25. data/vendor/node_modules/acorn-dynamic-import/src/inject.js +52 -0
  26. data/vendor/node_modules/acorn-dynamic-import/src/walk.js +12 -0
  27. data/vendor/node_modules/acorn-es7-plugin/acorn-es7-plugin.js +17 -0
  28. data/vendor/node_modules/acorn-es7-plugin/acorn-v3.js +333 -0
  29. data/vendor/node_modules/acorn-es7-plugin/acorn-v4.js +194 -0
  30. data/vendor/node_modules/acorn-es7-plugin/package.json +29 -0
  31. data/vendor/node_modules/acorn-jsx/index.js +3 -0
  32. data/vendor/node_modules/acorn-jsx/inject.js +449 -0
  33. data/vendor/node_modules/acorn-jsx/package.json +28 -0
  34. data/vendor/node_modules/acorn-jsx/xhtml.js +255 -0
  35. data/vendor/node_modules/acorn/bin/_acorn.js +69 -0
  36. data/vendor/node_modules/acorn/bin/acorn +4 -0
  37. data/vendor/node_modules/acorn/bin/run_test262.js +22 -0
  38. data/vendor/node_modules/acorn/bin/test262.whitelist +409 -0
  39. data/vendor/node_modules/acorn/dist/acorn.es.js +5305 -0
  40. data/vendor/node_modules/acorn/dist/acorn.js +5336 -0
  41. data/vendor/node_modules/acorn/dist/acorn_loose.es.js +1412 -0
  42. data/vendor/node_modules/acorn/dist/acorn_loose.js +1422 -0
  43. data/vendor/node_modules/acorn/dist/walk.es.js +419 -0
  44. data/vendor/node_modules/acorn/dist/walk.js +439 -0
  45. data/vendor/node_modules/acorn/package.json +56 -0
  46. data/vendor/node_modules/ansi-styles/index.js +165 -0
  47. data/vendor/node_modules/ansi-styles/package.json +56 -0
  48. data/vendor/node_modules/arr-diff/index.js +58 -0
  49. data/vendor/node_modules/arr-diff/package.json +49 -0
  50. data/vendor/node_modules/arr-flatten/index.js +22 -0
  51. data/vendor/node_modules/arr-flatten/package.json +76 -0
  52. data/vendor/node_modules/array-unique/index.js +28 -0
  53. data/vendor/node_modules/array-unique/package.json +37 -0
  54. data/vendor/node_modules/braces/index.js +399 -0
  55. data/vendor/node_modules/braces/package.json +83 -0
  56. data/vendor/node_modules/buble/bin/buble +24 -0
  57. data/vendor/node_modules/buble/bin/handleError.js +58 -0
  58. data/vendor/node_modules/buble/bin/runBuble.js +150 -0
  59. data/vendor/node_modules/buble/bin/showHelp.js +16 -0
  60. data/vendor/node_modules/buble/dist/buble-browser-deps.umd.js +14857 -0
  61. data/vendor/node_modules/buble/dist/buble-browser.cjs.js +9941 -0
  62. data/vendor/node_modules/buble/dist/buble-browser.es.js +9933 -0
  63. data/vendor/node_modules/buble/dist/buble.cjs.js +9433 -0
  64. data/vendor/node_modules/buble/dist/buble.es.js +9425 -0
  65. data/vendor/node_modules/buble/package.json +74 -0
  66. data/vendor/node_modules/buble/register.js +90 -0
  67. data/vendor/node_modules/buble/src/index.js +98 -0
  68. data/vendor/node_modules/buble/src/program/BlockStatement.js +373 -0
  69. data/vendor/node_modules/buble/src/program/Node.js +112 -0
  70. data/vendor/node_modules/buble/src/program/Program.js +74 -0
  71. data/vendor/node_modules/buble/src/program/Scope.js +116 -0
  72. data/vendor/node_modules/buble/src/program/extractNames.js +35 -0
  73. data/vendor/node_modules/buble/src/program/keys.js +4 -0
  74. data/vendor/node_modules/buble/src/program/types/ArrayExpression.js +70 -0
  75. data/vendor/node_modules/buble/src/program/types/ArrowFunctionExpression.js +52 -0
  76. data/vendor/node_modules/buble/src/program/types/AssignmentExpression.js +185 -0
  77. data/vendor/node_modules/buble/src/program/types/BinaryExpression.js +12 -0
  78. data/vendor/node_modules/buble/src/program/types/BreakStatement.js +26 -0
  79. data/vendor/node_modules/buble/src/program/types/CallExpression.js +104 -0
  80. data/vendor/node_modules/buble/src/program/types/ClassBody.js +237 -0
  81. data/vendor/node_modules/buble/src/program/types/ClassDeclaration.js +79 -0
  82. data/vendor/node_modules/buble/src/program/types/ClassExpression.js +51 -0
  83. data/vendor/node_modules/buble/src/program/types/ContinueStatement.js +17 -0
  84. data/vendor/node_modules/buble/src/program/types/ExportDefaultDeclaration.js +10 -0
  85. data/vendor/node_modules/buble/src/program/types/ExportNamedDeclaration.js +10 -0
  86. data/vendor/node_modules/buble/src/program/types/ForInStatement.js +76 -0
  87. data/vendor/node_modules/buble/src/program/types/ForOfStatement.js +89 -0
  88. data/vendor/node_modules/buble/src/program/types/ForStatement.js +54 -0
  89. data/vendor/node_modules/buble/src/program/types/FunctionDeclaration.js +25 -0
  90. data/vendor/node_modules/buble/src/program/types/FunctionExpression.js +74 -0
  91. data/vendor/node_modules/buble/src/program/types/Identifier.js +54 -0
  92. data/vendor/node_modules/buble/src/program/types/IfStatement.js +29 -0
  93. data/vendor/node_modules/buble/src/program/types/ImportDeclaration.js +10 -0
  94. data/vendor/node_modules/buble/src/program/types/ImportDefaultSpecifier.js +8 -0
  95. data/vendor/node_modules/buble/src/program/types/ImportSpecifier.js +8 -0
  96. data/vendor/node_modules/buble/src/program/types/JSXAttribute.js +20 -0
  97. data/vendor/node_modules/buble/src/program/types/JSXClosingElement.js +27 -0
  98. data/vendor/node_modules/buble/src/program/types/JSXClosingFragment.js +22 -0
  99. data/vendor/node_modules/buble/src/program/types/JSXElement.js +57 -0
  100. data/vendor/node_modules/buble/src/program/types/JSXExpressionContainer.js +10 -0
  101. data/vendor/node_modules/buble/src/program/types/JSXFragment.js +4 -0
  102. data/vendor/node_modules/buble/src/program/types/JSXOpeningElement.js +93 -0
  103. data/vendor/node_modules/buble/src/program/types/JSXOpeningFragment.js +7 -0
  104. data/vendor/node_modules/buble/src/program/types/JSXSpreadAttribute.js +10 -0
  105. data/vendor/node_modules/buble/src/program/types/Literal.js +43 -0
  106. data/vendor/node_modules/buble/src/program/types/MemberExpression.js +13 -0
  107. data/vendor/node_modules/buble/src/program/types/NewExpression.js +55 -0
  108. data/vendor/node_modules/buble/src/program/types/ObjectExpression.js +250 -0
  109. data/vendor/node_modules/buble/src/program/types/Property.js +52 -0
  110. data/vendor/node_modules/buble/src/program/types/ReturnStatement.js +32 -0
  111. data/vendor/node_modules/buble/src/program/types/SpreadElement.js +12 -0
  112. data/vendor/node_modules/buble/src/program/types/Super.js +88 -0
  113. data/vendor/node_modules/buble/src/program/types/TaggedTemplateExpression.js +63 -0
  114. data/vendor/node_modules/buble/src/program/types/TemplateElement.js +7 -0
  115. data/vendor/node_modules/buble/src/program/types/TemplateLiteral.js +80 -0
  116. data/vendor/node_modules/buble/src/program/types/ThisExpression.js +31 -0
  117. data/vendor/node_modules/buble/src/program/types/UpdateExpression.js +32 -0
  118. data/vendor/node_modules/buble/src/program/types/VariableDeclaration.js +101 -0
  119. data/vendor/node_modules/buble/src/program/types/VariableDeclarator.js +43 -0
  120. data/vendor/node_modules/buble/src/program/types/index.js +98 -0
  121. data/vendor/node_modules/buble/src/program/types/shared/LoopStatement.js +105 -0
  122. data/vendor/node_modules/buble/src/program/types/shared/ModuleDeclaration.js +10 -0
  123. data/vendor/node_modules/buble/src/program/wrap.js +68 -0
  124. data/vendor/node_modules/buble/src/support.js +97 -0
  125. data/vendor/node_modules/buble/src/utils/CompileError.js +30 -0
  126. data/vendor/node_modules/buble/src/utils/array.js +11 -0
  127. data/vendor/node_modules/buble/src/utils/checkConst.js +8 -0
  128. data/vendor/node_modules/buble/src/utils/deindent.js +30 -0
  129. data/vendor/node_modules/buble/src/utils/destructure.js +377 -0
  130. data/vendor/node_modules/buble/src/utils/getSnippet.js +30 -0
  131. data/vendor/node_modules/buble/src/utils/isReference.js +41 -0
  132. data/vendor/node_modules/buble/src/utils/locate.js +20 -0
  133. data/vendor/node_modules/buble/src/utils/patterns.js +1 -0
  134. data/vendor/node_modules/buble/src/utils/removeTrailingComma.js +13 -0
  135. data/vendor/node_modules/buble/src/utils/reserved.js +6 -0
  136. data/vendor/node_modules/buble/src/utils/spread.js +70 -0
  137. data/vendor/node_modules/builtin-modules/builtin-modules.json +39 -0
  138. data/vendor/node_modules/builtin-modules/index.js +10 -0
  139. data/vendor/node_modules/builtin-modules/package.json +40 -0
  140. data/vendor/node_modules/builtin-modules/static.js +2 -0
  141. data/vendor/node_modules/chalk/index.js +228 -0
  142. data/vendor/node_modules/chalk/package.json +66 -0
  143. data/vendor/node_modules/chalk/templates.js +128 -0
  144. data/vendor/node_modules/chalk/types/index.d.ts +97 -0
  145. data/vendor/node_modules/color-convert/conversions.js +861 -0
  146. data/vendor/node_modules/color-convert/index.js +78 -0
  147. data/vendor/node_modules/color-convert/package.json +46 -0
  148. data/vendor/node_modules/color-convert/route.js +97 -0
  149. data/vendor/node_modules/color-name/index.js +152 -0
  150. data/vendor/node_modules/color-name/package.json +25 -0
  151. data/vendor/node_modules/color-name/test.js +7 -0
  152. data/vendor/node_modules/date-time/index.js +33 -0
  153. data/vendor/node_modules/date-time/package.json +39 -0
  154. data/vendor/node_modules/escape-string-regexp/index.js +11 -0
  155. data/vendor/node_modules/escape-string-regexp/package.json +41 -0
  156. data/vendor/node_modules/estree-walker/dist/estree-walker.es.js +57 -0
  157. data/vendor/node_modules/estree-walker/dist/estree-walker.umd.js +68 -0
  158. data/vendor/node_modules/estree-walker/package.json +34 -0
  159. data/vendor/node_modules/estree-walker/src/estree-walker.js +51 -0
  160. data/vendor/node_modules/expand-brackets/index.js +163 -0
  161. data/vendor/node_modules/expand-brackets/package.json +62 -0
  162. data/vendor/node_modules/expand-range/index.js +43 -0
  163. data/vendor/node_modules/expand-range/package.json +73 -0
  164. data/vendor/node_modules/extglob/index.js +178 -0
  165. data/vendor/node_modules/extglob/package.json +60 -0
  166. data/vendor/node_modules/filename-regex/index.js +10 -0
  167. data/vendor/node_modules/filename-regex/package.json +50 -0
  168. data/vendor/node_modules/fill-range/index.js +408 -0
  169. data/vendor/node_modules/fill-range/package.json +61 -0
  170. data/vendor/node_modules/for-in/index.js +16 -0
  171. data/vendor/node_modules/for-in/package.json +68 -0
  172. data/vendor/node_modules/for-own/index.js +19 -0
  173. data/vendor/node_modules/for-own/package.json +70 -0
  174. data/vendor/node_modules/glob-base/index.js +51 -0
  175. data/vendor/node_modules/glob-base/package.json +52 -0
  176. data/vendor/node_modules/glob-parent/index.js +10 -0
  177. data/vendor/node_modules/glob-parent/package.json +35 -0
  178. data/vendor/node_modules/glob-parent/test.js +28 -0
  179. data/vendor/node_modules/has-flag/index.js +8 -0
  180. data/vendor/node_modules/has-flag/package.json +44 -0
  181. data/vendor/node_modules/irregular-plurals/irregular-plurals.json +146 -0
  182. data/vendor/node_modules/irregular-plurals/package.json +39 -0
  183. data/vendor/node_modules/is-buffer/index.js +21 -0
  184. data/vendor/node_modules/is-buffer/package.json +51 -0
  185. data/vendor/node_modules/is-dotfile/index.js +14 -0
  186. data/vendor/node_modules/is-dotfile/package.json +69 -0
  187. data/vendor/node_modules/is-equal-shallow/index.js +27 -0
  188. data/vendor/node_modules/is-equal-shallow/package.json +54 -0
  189. data/vendor/node_modules/is-extendable/index.js +13 -0
  190. data/vendor/node_modules/is-extendable/package.json +51 -0
  191. data/vendor/node_modules/is-extglob/index.js +11 -0
  192. data/vendor/node_modules/is-extglob/package.json +48 -0
  193. data/vendor/node_modules/is-glob/index.js +14 -0
  194. data/vendor/node_modules/is-glob/package.json +60 -0
  195. data/vendor/node_modules/is-module/index.js +11 -0
  196. data/vendor/node_modules/is-module/package.json +20 -0
  197. data/vendor/node_modules/is-number/index.js +19 -0
  198. data/vendor/node_modules/is-number/package.json +59 -0
  199. data/vendor/node_modules/is-posix-bracket/index.js +10 -0
  200. data/vendor/node_modules/is-posix-bracket/package.json +64 -0
  201. data/vendor/node_modules/is-primitive/index.js +13 -0
  202. data/vendor/node_modules/is-primitive/package.json +46 -0
  203. data/vendor/node_modules/is-reference/dist/is-reference.es.js +26 -0
  204. data/vendor/node_modules/is-reference/dist/is-reference.js +34 -0
  205. data/vendor/node_modules/is-reference/dist/types/index.d.ts +2 -0
  206. data/vendor/node_modules/is-reference/package.json +47 -0
  207. data/vendor/node_modules/isarray/index.js +5 -0
  208. data/vendor/node_modules/isarray/package.json +45 -0
  209. data/vendor/node_modules/isarray/test.js +20 -0
  210. data/vendor/node_modules/isobject/index.js +14 -0
  211. data/vendor/node_modules/isobject/package.json +67 -0
  212. data/vendor/node_modules/kind-of/index.js +116 -0
  213. data/vendor/node_modules/kind-of/package.json +90 -0
  214. data/vendor/node_modules/locate-character/dist/locate-character.es.js +43 -0
  215. data/vendor/node_modules/locate-character/dist/locate-character.umd.js +54 -0
  216. data/vendor/node_modules/locate-character/dist/types/index.d.ts +17 -0
  217. data/vendor/node_modules/locate-character/package.json +41 -0
  218. data/vendor/node_modules/magic-string/dist/magic-string.cjs.js +1300 -0
  219. data/vendor/node_modules/magic-string/dist/magic-string.es.js +1296 -0
  220. data/vendor/node_modules/magic-string/dist/magic-string.umd.js +1352 -0
  221. data/vendor/node_modules/magic-string/index.d.ts +83 -0
  222. data/vendor/node_modules/magic-string/node_modules/vlq/dist/vlq.js +91 -0
  223. data/vendor/node_modules/magic-string/node_modules/vlq/package.json +27 -0
  224. data/vendor/node_modules/magic-string/node_modules/vlq/src/vlq.js +78 -0
  225. data/vendor/node_modules/magic-string/package.json +55 -0
  226. data/vendor/node_modules/micromatch/index.js +431 -0
  227. data/vendor/node_modules/micromatch/lib/chars.js +67 -0
  228. data/vendor/node_modules/micromatch/lib/expand.js +304 -0
  229. data/vendor/node_modules/micromatch/lib/glob.js +193 -0
  230. data/vendor/node_modules/micromatch/lib/utils.js +149 -0
  231. data/vendor/node_modules/micromatch/package.json +114 -0
  232. data/vendor/node_modules/minimist/index.js +236 -0
  233. data/vendor/node_modules/minimist/package.json +45 -0
  234. data/vendor/node_modules/nodent-compiler/compiler.js +171 -0
  235. data/vendor/node_modules/nodent-compiler/lib/arboriculture.js +2694 -0
  236. data/vendor/node_modules/nodent-compiler/lib/output.js +934 -0
  237. data/vendor/node_modules/nodent-compiler/lib/parser.js +291 -0
  238. data/vendor/node_modules/nodent-compiler/package.json +37 -0
  239. data/vendor/node_modules/normalize-path/index.js +19 -0
  240. data/vendor/node_modules/normalize-path/package.json +78 -0
  241. data/vendor/node_modules/object.omit/index.js +40 -0
  242. data/vendor/node_modules/object.omit/package.json +67 -0
  243. data/vendor/node_modules/os-homedir/index.js +24 -0
  244. data/vendor/node_modules/os-homedir/package.json +41 -0
  245. data/vendor/node_modules/parse-glob/index.js +156 -0
  246. data/vendor/node_modules/parse-glob/package.json +62 -0
  247. data/vendor/node_modules/parse-ms/index.js +16 -0
  248. data/vendor/node_modules/parse-ms/package.json +34 -0
  249. data/vendor/node_modules/path-parse/index.js +93 -0
  250. data/vendor/node_modules/path-parse/index.min.js +1 -0
  251. data/vendor/node_modules/path-parse/package.json +33 -0
  252. data/vendor/node_modules/path-parse/test.js +77 -0
  253. data/vendor/node_modules/path-parse/test.min.js +1 -0
  254. data/vendor/node_modules/plur/index.js +20 -0
  255. data/vendor/node_modules/plur/package.json +42 -0
  256. data/vendor/node_modules/preserve/index.js +54 -0
  257. data/vendor/node_modules/preserve/package.json +48 -0
  258. data/vendor/node_modules/preserve/test.js +48 -0
  259. data/vendor/node_modules/pretty-ms/index.js +48 -0
  260. data/vendor/node_modules/pretty-ms/package.json +48 -0
  261. data/vendor/node_modules/randomatic/index.js +82 -0
  262. data/vendor/node_modules/randomatic/node_modules/is-number/index.js +22 -0
  263. data/vendor/node_modules/randomatic/node_modules/is-number/node_modules/kind-of/index.js +116 -0
  264. data/vendor/node_modules/randomatic/node_modules/is-number/node_modules/kind-of/package.json +90 -0
  265. data/vendor/node_modules/randomatic/node_modules/is-number/package.json +83 -0
  266. data/vendor/node_modules/randomatic/node_modules/kind-of/index.js +119 -0
  267. data/vendor/node_modules/randomatic/node_modules/kind-of/package.json +90 -0
  268. data/vendor/node_modules/randomatic/package.json +78 -0
  269. data/vendor/node_modules/regex-cache/index.js +68 -0
  270. data/vendor/node_modules/regex-cache/package.json +64 -0
  271. data/vendor/node_modules/remove-trailing-separator/index.js +17 -0
  272. data/vendor/node_modules/remove-trailing-separator/package.json +37 -0
  273. data/vendor/node_modules/repeat-element/index.js +18 -0
  274. data/vendor/node_modules/repeat-element/package.json +44 -0
  275. data/vendor/node_modules/repeat-string/index.js +70 -0
  276. data/vendor/node_modules/repeat-string/package.json +77 -0
  277. data/vendor/node_modules/require-relative/index.js +33 -0
  278. data/vendor/node_modules/require-relative/package.json +22 -0
  279. data/vendor/node_modules/resolve/index.js +8 -0
  280. data/vendor/node_modules/resolve/lib/async.js +203 -0
  281. data/vendor/node_modules/resolve/lib/caller.js +8 -0
  282. data/vendor/node_modules/resolve/lib/core.js +53 -0
  283. data/vendor/node_modules/resolve/lib/core.json +69 -0
  284. data/vendor/node_modules/resolve/lib/node-modules-paths.js +45 -0
  285. data/vendor/node_modules/resolve/lib/sync.js +93 -0
  286. data/vendor/node_modules/resolve/package.json +40 -0
  287. data/vendor/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js +804 -0
  288. data/vendor/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js +800 -0
  289. data/vendor/node_modules/rollup-plugin-commonjs/package.json +52 -0
  290. data/vendor/node_modules/rollup-plugin-commonjs/src/ast-utils.js +104 -0
  291. data/vendor/node_modules/rollup-plugin-commonjs/src/defaultResolver.js +39 -0
  292. data/vendor/node_modules/rollup-plugin-commonjs/src/helpers.js +19 -0
  293. data/vendor/node_modules/rollup-plugin-commonjs/src/index.js +198 -0
  294. data/vendor/node_modules/rollup-plugin-commonjs/src/transform.js +431 -0
  295. data/vendor/node_modules/rollup-plugin-commonjs/src/utils.js +13 -0
  296. data/vendor/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +218 -0
  297. data/vendor/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +214 -0
  298. data/vendor/node_modules/rollup-plugin-node-resolve/package.json +51 -0
  299. data/vendor/node_modules/rollup-plugin-node-resolve/src/empty.js +1 -0
  300. data/vendor/node_modules/rollup-plugin-node-resolve/src/index.js +205 -0
  301. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +223 -0
  302. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.es.js +214 -0
  303. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.es6.js +217 -0
  304. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.es.js +55 -0
  305. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.es6.js +59 -0
  306. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js +65 -0
  307. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json +33 -0
  308. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js +49 -0
  309. data/vendor/node_modules/rollup-pluginutils/package.json +40 -0
  310. data/vendor/node_modules/rollup-pluginutils/src/addExtension.js +6 -0
  311. data/vendor/node_modules/rollup-pluginutils/src/attachScopes.js +147 -0
  312. data/vendor/node_modules/rollup-pluginutils/src/createFilter.js +33 -0
  313. data/vendor/node_modules/rollup-pluginutils/src/index.js +4 -0
  314. data/vendor/node_modules/rollup-pluginutils/src/makeLegalIdentifier.js +15 -0
  315. data/vendor/node_modules/rollup-pluginutils/src/utils/ensureArray.js +5 -0
  316. data/vendor/node_modules/rollup/bin/rollup +4085 -0
  317. data/vendor/node_modules/rollup/dist/rollup.browser.js +19829 -0
  318. data/vendor/node_modules/rollup/dist/rollup.es.js +23586 -0
  319. data/vendor/node_modules/rollup/dist/rollup.js +23597 -0
  320. data/vendor/node_modules/rollup/dist/typings/Chunk.d.ts +85 -0
  321. data/vendor/node_modules/rollup/dist/typings/ExternalModule.d.ts +30 -0
  322. data/vendor/node_modules/rollup/dist/typings/Graph.d.ts +47 -0
  323. data/vendor/node_modules/rollup/dist/typings/Module.d.ts +130 -0
  324. data/vendor/node_modules/rollup/dist/typings/ast/CallOptions.d.ts +20 -0
  325. data/vendor/node_modules/rollup/dist/typings/ast/Entity.d.ts +16 -0
  326. data/vendor/node_modules/rollup/dist/typings/ast/ExecutionPathOptions.d.ts +57 -0
  327. data/vendor/node_modules/rollup/dist/typings/ast/clone.d.ts +1 -0
  328. data/vendor/node_modules/rollup/dist/typings/ast/enhance.d.ts +3 -0
  329. data/vendor/node_modules/rollup/dist/typings/ast/keys.d.ts +4 -0
  330. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ArrayExpression.d.ts +14 -0
  331. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ArrayPattern.d.ts +14 -0
  332. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ArrowFunctionExpression.d.ts +25 -0
  333. data/vendor/node_modules/rollup/dist/typings/ast/nodes/AssignmentExpression.d.ts +13 -0
  334. data/vendor/node_modules/rollup/dist/typings/ast/nodes/AssignmentPattern.d.ts +16 -0
  335. data/vendor/node_modules/rollup/dist/typings/ast/nodes/AssignmentProperty.d.ts +10 -0
  336. data/vendor/node_modules/rollup/dist/typings/ast/nodes/AwaitExpression.d.ts +8 -0
  337. data/vendor/node_modules/rollup/dist/typings/ast/nodes/BinaryExpression.d.ts +13 -0
  338. data/vendor/node_modules/rollup/dist/typings/ast/nodes/BlockStatement.d.ts +19 -0
  339. data/vendor/node_modules/rollup/dist/typings/ast/nodes/BreakStatement.d.ts +9 -0
  340. data/vendor/node_modules/rollup/dist/typings/ast/nodes/CallExpression.d.ts +22 -0
  341. data/vendor/node_modules/rollup/dist/typings/ast/nodes/CatchClause.d.ts +14 -0
  342. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ClassBody.d.ts +13 -0
  343. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ClassDeclaration.d.ts +14 -0
  344. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ClassExpression.d.ts +10 -0
  345. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ConditionalExpression.d.ts +28 -0
  346. data/vendor/node_modules/rollup/dist/typings/ast/nodes/DoWhileStatement.d.ts +9 -0
  347. data/vendor/node_modules/rollup/dist/typings/ast/nodes/EmptyStatement.d.ts +8 -0
  348. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ExportAllDeclaration.d.ts +12 -0
  349. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ExportDefaultDeclaration.d.ts +21 -0
  350. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ExportNamedDeclaration.d.ts +21 -0
  351. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ExportSpecifier.d.ts +8 -0
  352. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ExpressionStatement.d.ts +10 -0
  353. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ForInStatement.d.ts +20 -0
  354. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ForOfStatement.d.ts +21 -0
  355. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ForStatement.d.ts +19 -0
  356. data/vendor/node_modules/rollup/dist/typings/ast/nodes/FunctionDeclaration.d.ts +9 -0
  357. data/vendor/node_modules/rollup/dist/typings/ast/nodes/FunctionExpression.d.ts +6 -0
  358. data/vendor/node_modules/rollup/dist/typings/ast/nodes/Identifier.d.ts +29 -0
  359. data/vendor/node_modules/rollup/dist/typings/ast/nodes/IfStatement.d.ts +17 -0
  360. data/vendor/node_modules/rollup/dist/typings/ast/nodes/Import.d.ts +14 -0
  361. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ImportDeclaration.d.ts +17 -0
  362. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ImportDefaultSpecifier.d.ts +7 -0
  363. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ImportNamespaceSpecifier.d.ts +7 -0
  364. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ImportSpecifier.d.ts +8 -0
  365. data/vendor/node_modules/rollup/dist/typings/ast/nodes/LabeledStatement.d.ts +10 -0
  366. data/vendor/node_modules/rollup/dist/typings/ast/nodes/Literal.d.ts +22 -0
  367. data/vendor/node_modules/rollup/dist/typings/ast/nodes/LogicalExpression.d.ts +23 -0
  368. data/vendor/node_modules/rollup/dist/typings/ast/nodes/MemberExpression.d.ts +34 -0
  369. data/vendor/node_modules/rollup/dist/typings/ast/nodes/MethodDefinition.d.ts +16 -0
  370. data/vendor/node_modules/rollup/dist/typings/ast/nodes/NewExpression.d.ts +14 -0
  371. data/vendor/node_modules/rollup/dist/typings/ast/nodes/NodeType.d.ts +64 -0
  372. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ObjectExpression.d.ts +22 -0
  373. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ObjectPattern.d.ts +15 -0
  374. data/vendor/node_modules/rollup/dist/typings/ast/nodes/Program.d.ts +9 -0
  375. data/vendor/node_modules/rollup/dist/typings/ast/nodes/Property.d.ts +30 -0
  376. data/vendor/node_modules/rollup/dist/typings/ast/nodes/RestElement.d.ts +14 -0
  377. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ReturnStatement.d.ts +9 -0
  378. data/vendor/node_modules/rollup/dist/typings/ast/nodes/SequenceExpression.d.ts +13 -0
  379. data/vendor/node_modules/rollup/dist/typings/ast/nodes/SpreadElement.d.ts +6 -0
  380. data/vendor/node_modules/rollup/dist/typings/ast/nodes/SwitchCase.d.ts +11 -0
  381. data/vendor/node_modules/rollup/dist/typings/ast/nodes/SwitchStatement.d.ts +12 -0
  382. data/vendor/node_modules/rollup/dist/typings/ast/nodes/TaggedTemplateExpression.d.ts +13 -0
  383. data/vendor/node_modules/rollup/dist/typings/ast/nodes/TemplateElement.d.ts +12 -0
  384. data/vendor/node_modules/rollup/dist/typings/ast/nodes/TemplateLiteral.d.ts +12 -0
  385. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ThisExpression.d.ts +17 -0
  386. data/vendor/node_modules/rollup/dist/typings/ast/nodes/ThrowStatement.d.ts +8 -0
  387. data/vendor/node_modules/rollup/dist/typings/ast/nodes/UnaryExpression.d.ts +16 -0
  388. data/vendor/node_modules/rollup/dist/typings/ast/nodes/UnknownNode.d.ts +5 -0
  389. data/vendor/node_modules/rollup/dist/typings/ast/nodes/UpdateExpression.d.ts +13 -0
  390. data/vendor/node_modules/rollup/dist/typings/ast/nodes/VariableDeclaration.d.ts +21 -0
  391. data/vendor/node_modules/rollup/dist/typings/ast/nodes/VariableDeclarator.d.ts +13 -0
  392. data/vendor/node_modules/rollup/dist/typings/ast/nodes/WhileStatement.d.ts +9 -0
  393. data/vendor/node_modules/rollup/dist/typings/ast/nodes/YieldExpression.d.ts +9 -0
  394. data/vendor/node_modules/rollup/dist/typings/ast/nodes/index.d.ts +6 -0
  395. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/ClassNode.d.ts +17 -0
  396. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/Expression.d.ts +21 -0
  397. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/FunctionNode.d.ts +25 -0
  398. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/Node.d.ts +133 -0
  399. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/Pattern.d.ts +4 -0
  400. data/vendor/node_modules/rollup/dist/typings/ast/nodes/shared/pureFunctions.d.ts +4 -0
  401. data/vendor/node_modules/rollup/dist/typings/ast/scopes/BlockScope.d.ts +9 -0
  402. data/vendor/node_modules/rollup/dist/typings/ast/scopes/CatchScope.d.ts +10 -0
  403. data/vendor/node_modules/rollup/dist/typings/ast/scopes/FunctionScope.d.ts +20 -0
  404. data/vendor/node_modules/rollup/dist/typings/ast/scopes/GlobalScope.d.ts +7 -0
  405. data/vendor/node_modules/rollup/dist/typings/ast/scopes/ModuleScope.d.ts +11 -0
  406. data/vendor/node_modules/rollup/dist/typings/ast/scopes/ParameterScope.d.ts +16 -0
  407. data/vendor/node_modules/rollup/dist/typings/ast/scopes/ReturnValueScope.d.ts +11 -0
  408. data/vendor/node_modules/rollup/dist/typings/ast/scopes/Scope.d.ts +42 -0
  409. data/vendor/node_modules/rollup/dist/typings/ast/utils/extractNames.d.ts +2 -0
  410. data/vendor/node_modules/rollup/dist/typings/ast/values.d.ts +31 -0
  411. data/vendor/node_modules/rollup/dist/typings/ast/variables/ArgumentsVariable.d.ts +15 -0
  412. data/vendor/node_modules/rollup/dist/typings/ast/variables/ExportDefaultVariable.d.ts +16 -0
  413. data/vendor/node_modules/rollup/dist/typings/ast/variables/ExternalVariable.d.ts +12 -0
  414. data/vendor/node_modules/rollup/dist/typings/ast/variables/GlobalVariable.d.ts +11 -0
  415. data/vendor/node_modules/rollup/dist/typings/ast/variables/LocalVariable.d.ts +21 -0
  416. data/vendor/node_modules/rollup/dist/typings/ast/variables/NamespaceVariable.d.ts +20 -0
  417. data/vendor/node_modules/rollup/dist/typings/ast/variables/ParameterVariable.d.ts +5 -0
  418. data/vendor/node_modules/rollup/dist/typings/ast/variables/ReplaceableInitializationVariable.d.ts +14 -0
  419. data/vendor/node_modules/rollup/dist/typings/ast/variables/ThisVariable.d.ts +4 -0
  420. data/vendor/node_modules/rollup/dist/typings/ast/variables/Variable.d.ts +43 -0
  421. data/vendor/node_modules/rollup/dist/typings/ast/variables/VariableReassignmentTracker.d.ts +11 -0
  422. data/vendor/node_modules/rollup/dist/typings/finalisers/amd.d.ts +11 -0
  423. data/vendor/node_modules/rollup/dist/typings/finalisers/cjs.d.ts +10 -0
  424. data/vendor/node_modules/rollup/dist/typings/finalisers/es.d.ts +9 -0
  425. data/vendor/node_modules/rollup/dist/typings/finalisers/iife.d.ts +10 -0
  426. data/vendor/node_modules/rollup/dist/typings/finalisers/index.d.ts +15 -0
  427. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/esModuleExport.d.ts +2 -0
  428. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/getExportBlock.d.ts +2 -0
  429. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/getGlobalNameMaker.d.ts +4 -0
  430. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/getInteropBlock.d.ts +3 -0
  431. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/sanitize.d.ts +2 -0
  432. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/setupNamespace.d.ts +2 -0
  433. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/trimEmptyImports.d.ts +2 -0
  434. data/vendor/node_modules/rollup/dist/typings/finalisers/shared/warnOnBuiltins.d.ts +2 -0
  435. data/vendor/node_modules/rollup/dist/typings/finalisers/system.d.ts +8 -0
  436. data/vendor/node_modules/rollup/dist/typings/finalisers/umd.d.ts +10 -0
  437. data/vendor/node_modules/rollup/dist/typings/node-entry.d.ts +6 -0
  438. data/vendor/node_modules/rollup/dist/typings/rollup/index.d.ts +167 -0
  439. data/vendor/node_modules/rollup/dist/typings/utils/callIfFunction.d.ts +1 -0
  440. data/vendor/node_modules/rollup/dist/typings/utils/collapseSourcemaps.d.ts +5 -0
  441. data/vendor/node_modules/rollup/dist/typings/utils/commondir.d.ts +1 -0
  442. data/vendor/node_modules/rollup/dist/typings/utils/defaults.d.ts +6 -0
  443. data/vendor/node_modules/rollup/dist/typings/utils/deprecateOptions.d.ts +6 -0
  444. data/vendor/node_modules/rollup/dist/typings/utils/ensureArray.d.ts +2 -0
  445. data/vendor/node_modules/rollup/dist/typings/utils/entryHashing.d.ts +3 -0
  446. data/vendor/node_modules/rollup/dist/typings/utils/error.d.ts +18 -0
  447. data/vendor/node_modules/rollup/dist/typings/utils/first-sync.d.ts +1 -0
  448. data/vendor/node_modules/rollup/dist/typings/utils/first.d.ts +1 -0
  449. data/vendor/node_modules/rollup/dist/typings/utils/flushTime.d.ts +5 -0
  450. data/vendor/node_modules/rollup/dist/typings/utils/fs.d.ts +3 -0
  451. data/vendor/node_modules/rollup/dist/typings/utils/getCodeFrame.d.ts +1 -0
  452. data/vendor/node_modules/rollup/dist/typings/utils/getExportMode.d.ts +3 -0
  453. data/vendor/node_modules/rollup/dist/typings/utils/getIndentString.d.ts +4 -0
  454. data/vendor/node_modules/rollup/dist/typings/utils/identifierHelpers.d.ts +3 -0
  455. data/vendor/node_modules/rollup/dist/typings/utils/mergeOptions.d.ts +19 -0
  456. data/vendor/node_modules/rollup/dist/typings/utils/object.d.ts +7 -0
  457. data/vendor/node_modules/rollup/dist/typings/utils/path.d.ts +6 -0
  458. data/vendor/node_modules/rollup/dist/typings/utils/promise.d.ts +2 -0
  459. data/vendor/node_modules/rollup/dist/typings/utils/relativeId.d.ts +1 -0
  460. data/vendor/node_modules/rollup/dist/typings/utils/renderHelpers.d.ts +26 -0
  461. data/vendor/node_modules/rollup/dist/typings/utils/sourceMappingURL.d.ts +3 -0
  462. data/vendor/node_modules/rollup/dist/typings/utils/timers.d.ts +7 -0
  463. data/vendor/node_modules/rollup/dist/typings/utils/transform.d.ts +25 -0
  464. data/vendor/node_modules/rollup/dist/typings/utils/transformBundle.d.ts +3 -0
  465. data/vendor/node_modules/rollup/dist/typings/watch/chokidar.d.ts +3 -0
  466. data/vendor/node_modules/rollup/dist/typings/watch/fileWatchers.d.ts +14 -0
  467. data/vendor/node_modules/rollup/dist/typings/watch/index.d.ts +47 -0
  468. data/vendor/node_modules/rollup/package.json +122 -0
  469. data/vendor/node_modules/rollup/typings/package.json.d.ts +3 -0
  470. data/vendor/node_modules/signal-exit/index.js +157 -0
  471. data/vendor/node_modules/signal-exit/package.json +38 -0
  472. data/vendor/node_modules/signal-exit/signals.js +53 -0
  473. data/vendor/node_modules/source-map/dist/source-map.debug.js +3091 -0
  474. data/vendor/node_modules/source-map/dist/source-map.js +3090 -0
  475. data/vendor/node_modules/source-map/dist/source-map.min.js +2 -0
  476. data/vendor/node_modules/source-map/lib/array-set.js +121 -0
  477. data/vendor/node_modules/source-map/lib/base64-vlq.js +140 -0
  478. data/vendor/node_modules/source-map/lib/base64.js +67 -0
  479. data/vendor/node_modules/source-map/lib/binary-search.js +111 -0
  480. data/vendor/node_modules/source-map/lib/mapping-list.js +79 -0
  481. data/vendor/node_modules/source-map/lib/quick-sort.js +114 -0
  482. data/vendor/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  483. data/vendor/node_modules/source-map/lib/source-map-generator.js +416 -0
  484. data/vendor/node_modules/source-map/lib/source-node.js +413 -0
  485. data/vendor/node_modules/source-map/lib/util.js +417 -0
  486. data/vendor/node_modules/source-map/package.json +72 -0
  487. data/vendor/node_modules/source-map/source-map.js +8 -0
  488. data/vendor/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +129 -0
  489. data/vendor/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +140 -0
  490. data/vendor/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  491. data/vendor/node_modules/sourcemap-codec/package.json +52 -0
  492. data/vendor/node_modules/supports-color/browser.js +5 -0
  493. data/vendor/node_modules/supports-color/index.js +135 -0
  494. data/vendor/node_modules/supports-color/package.json +53 -0
  495. data/vendor/node_modules/time-zone/index.js +10 -0
  496. data/vendor/node_modules/time-zone/package.json +35 -0
  497. data/vendor/node_modules/vlq/dist/types/vlq.d.ts +2 -0
  498. data/vendor/node_modules/vlq/dist/vlq.es.js +64 -0
  499. data/vendor/node_modules/vlq/dist/vlq.js +75 -0
  500. data/vendor/node_modules/vlq/package.json +30 -0
  501. data/vendor/package.json +15 -0
  502. data/vendor/yarn.lock +453 -0
  503. metadata +641 -0
@@ -0,0 +1,43 @@
1
+ /*!
2
+ * expand-range <https://github.com/jonschlinkert/expand-range>
3
+ *
4
+ * Copyright (c) 2014-2015, Jon Schlinkert.
5
+ * Licensed under the MIT license.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ var fill = require('fill-range');
11
+
12
+ module.exports = function expandRange(str, options, fn) {
13
+ if (typeof str !== 'string') {
14
+ throw new TypeError('expand-range expects a string.');
15
+ }
16
+
17
+ if (typeof options === 'function') {
18
+ fn = options;
19
+ options = {};
20
+ }
21
+
22
+ if (typeof options === 'boolean') {
23
+ options = {};
24
+ options.makeRe = true;
25
+ }
26
+
27
+ // create arguments to pass to fill-range
28
+ var opts = options || {};
29
+ var args = str.split('..');
30
+ var len = args.length;
31
+ if (len > 3) { return str; }
32
+
33
+ // if only one argument, it can't expand so return it
34
+ if (len === 1) { return args; }
35
+
36
+ // if `true`, tell fill-range to regexify the string
37
+ if (typeof fn === 'boolean' && fn === true) {
38
+ opts.makeRe = true;
39
+ }
40
+
41
+ args.push(opts);
42
+ return fill.apply(null, args.concat(fn));
43
+ };
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "expand-range",
3
+ "description": "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.",
4
+ "version": "1.8.2",
5
+ "homepage": "https://github.com/jonschlinkert/expand-range",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "repository": "jonschlinkert/expand-range",
8
+ "bugs": {
9
+ "url": "https://github.com/jonschlinkert/expand-range/issues"
10
+ },
11
+ "license": "MIT",
12
+ "files": [
13
+ "index.js"
14
+ ],
15
+ "main": "index.js",
16
+ "engines": {
17
+ "node": ">=0.10.0"
18
+ },
19
+ "scripts": {
20
+ "test": "mocha"
21
+ },
22
+ "dependencies": {
23
+ "fill-range": "^2.1.0"
24
+ },
25
+ "devDependencies": {
26
+ "benchmarked": "^0.2.4",
27
+ "brace-expansion": "^1.1.4",
28
+ "glob": "^7.0.3",
29
+ "gulp-format-md": "^0.1.9",
30
+ "minimatch": "^3.0.0",
31
+ "mocha": "^2.4.5"
32
+ },
33
+ "keywords": [
34
+ "alpha",
35
+ "alphabetical",
36
+ "bash",
37
+ "brace",
38
+ "expand",
39
+ "expansion",
40
+ "glob",
41
+ "match",
42
+ "matches",
43
+ "matching",
44
+ "number",
45
+ "numerical",
46
+ "range",
47
+ "ranges",
48
+ "sh"
49
+ ],
50
+ "verb": {
51
+ "plugins": [
52
+ "gulp-format-md"
53
+ ],
54
+ "reflinks": [
55
+ "verb"
56
+ ],
57
+ "toc": false,
58
+ "layout": "default",
59
+ "lint": {
60
+ "reflinks": true
61
+ },
62
+ "tasks": [
63
+ "readme"
64
+ ],
65
+ "related": {
66
+ "list": [
67
+ "micromatch",
68
+ "fill-range",
69
+ "braces"
70
+ ]
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,178 @@
1
+ /*!
2
+ * extglob <https://github.com/jonschlinkert/extglob>
3
+ *
4
+ * Copyright (c) 2015, Jon Schlinkert.
5
+ * Licensed under the MIT License.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ /**
11
+ * Module dependencies
12
+ */
13
+
14
+ var isExtglob = require('is-extglob');
15
+ var re, cache = {};
16
+
17
+ /**
18
+ * Expose `extglob`
19
+ */
20
+
21
+ module.exports = extglob;
22
+
23
+ /**
24
+ * Convert the given extglob `string` to a regex-compatible
25
+ * string.
26
+ *
27
+ * ```js
28
+ * var extglob = require('extglob');
29
+ * extglob('!(a?(b))');
30
+ * //=> '(?!a(?:b)?)[^/]*?'
31
+ * ```
32
+ *
33
+ * @param {String} `str` The string to convert.
34
+ * @param {Object} `options`
35
+ * @option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.
36
+ * @option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.
37
+ * @return {String}
38
+ * @api public
39
+ */
40
+
41
+
42
+ function extglob(str, opts) {
43
+ opts = opts || {};
44
+ var o = {}, i = 0;
45
+
46
+ // fix common character reversals
47
+ // '*!(.js)' => '*.!(js)'
48
+ str = str.replace(/!\(([^\w*()])/g, '$1!(');
49
+
50
+ // support file extension negation
51
+ str = str.replace(/([*\/])\.!\([*]\)/g, function (m, ch) {
52
+ if (ch === '/') {
53
+ return escape('\\/[^.]+');
54
+ }
55
+ return escape('[^.]+');
56
+ });
57
+
58
+ // create a unique key for caching by
59
+ // combining the string and options
60
+ var key = str
61
+ + String(!!opts.regex)
62
+ + String(!!opts.contains)
63
+ + String(!!opts.escape);
64
+
65
+ if (cache.hasOwnProperty(key)) {
66
+ return cache[key];
67
+ }
68
+
69
+ if (!(re instanceof RegExp)) {
70
+ re = regex();
71
+ }
72
+
73
+ opts.negate = false;
74
+ var m;
75
+
76
+ while (m = re.exec(str)) {
77
+ var prefix = m[1];
78
+ var inner = m[3];
79
+ if (prefix === '!') {
80
+ opts.negate = true;
81
+ }
82
+
83
+ var id = '__EXTGLOB_' + (i++) + '__';
84
+ // use the prefix of the _last_ (outtermost) pattern
85
+ o[id] = wrap(inner, prefix, opts.escape);
86
+ str = str.split(m[0]).join(id);
87
+ }
88
+
89
+ var keys = Object.keys(o);
90
+ var len = keys.length;
91
+
92
+ // we have to loop again to allow us to convert
93
+ // patterns in reverse order (starting with the
94
+ // innermost/last pattern first)
95
+ while (len--) {
96
+ var prop = keys[len];
97
+ str = str.split(prop).join(o[prop]);
98
+ }
99
+
100
+ var result = opts.regex
101
+ ? toRegex(str, opts.contains, opts.negate)
102
+ : str;
103
+
104
+ result = result.split('.').join('\\.');
105
+
106
+ // cache the result and return it
107
+ return (cache[key] = result);
108
+ }
109
+
110
+ /**
111
+ * Convert `string` to a regex string.
112
+ *
113
+ * @param {String} `str`
114
+ * @param {String} `prefix` Character that determines how to wrap the string.
115
+ * @param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.
116
+ * @return {String}
117
+ */
118
+
119
+ function wrap(inner, prefix, esc) {
120
+ if (esc) inner = escape(inner);
121
+
122
+ switch (prefix) {
123
+ case '!':
124
+ return '(?!' + inner + ')[^/]' + (esc ? '%%%~' : '*?');
125
+ case '@':
126
+ return '(?:' + inner + ')';
127
+ case '+':
128
+ return '(?:' + inner + ')+';
129
+ case '*':
130
+ return '(?:' + inner + ')' + (esc ? '%%' : '*')
131
+ case '?':
132
+ return '(?:' + inner + '|)';
133
+ default:
134
+ return inner;
135
+ }
136
+ }
137
+
138
+ function escape(str) {
139
+ str = str.split('*').join('[^/]%%%~');
140
+ str = str.split('.').join('\\.');
141
+ return str;
142
+ }
143
+
144
+ /**
145
+ * extglob regex.
146
+ */
147
+
148
+ function regex() {
149
+ return /(\\?[@?!+*$]\\?)(\(([^()]*?)\))/;
150
+ }
151
+
152
+ /**
153
+ * Negation regex
154
+ */
155
+
156
+ function negate(str) {
157
+ return '(?!^' + str + ').*$';
158
+ }
159
+
160
+ /**
161
+ * Create the regex to do the matching. If
162
+ * the leading character in the `pattern` is `!`
163
+ * a negation regex is returned.
164
+ *
165
+ * @param {String} `pattern`
166
+ * @param {Boolean} `contains` Allow loose matching.
167
+ * @param {Boolean} `isNegated` True if the pattern is a negation pattern.
168
+ */
169
+
170
+ function toRegex(pattern, contains, isNegated) {
171
+ var prefix = contains ? '^' : '';
172
+ var after = contains ? '$' : '';
173
+ pattern = ('(?:' + pattern + ')' + after);
174
+ if (isNegated) {
175
+ pattern = prefix + negate(pattern);
176
+ }
177
+ return new RegExp(prefix + pattern);
178
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "extglob",
3
+ "description": "Convert extended globs to regex-compatible strings. Add (almost) the expressive power of regular expressions to glob patterns.",
4
+ "version": "0.3.2",
5
+ "homepage": "https://github.com/jonschlinkert/extglob",
6
+ "author": {
7
+ "name": "Jon Schlinkert",
8
+ "url": "https://github.com/jonschlinkert"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git://github.com/jonschlinkert/extglob.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/jonschlinkert/extglob/issues"
16
+ },
17
+ "license": "MIT",
18
+ "files": [
19
+ "index.js"
20
+ ],
21
+ "main": "index.js",
22
+ "engines": {
23
+ "node": ">=0.10.0"
24
+ },
25
+ "scripts": {
26
+ "test": "mocha"
27
+ },
28
+ "dependencies": {
29
+ "is-extglob": "^1.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "ansi-green": "^0.1.1",
33
+ "micromatch": "^2.1.6",
34
+ "minimatch": "^2.0.1",
35
+ "minimist": "^1.1.0",
36
+ "mocha": "*",
37
+ "should": "*",
38
+ "success-symbol": "^0.1.0"
39
+ },
40
+ "keywords": [
41
+ "bash",
42
+ "extended",
43
+ "extglob",
44
+ "glob",
45
+ "ksh",
46
+ "match",
47
+ "wildcard"
48
+ ],
49
+ "verb": {
50
+ "related": {
51
+ "list": [
52
+ "micromatch",
53
+ "expand-brackets",
54
+ "braces",
55
+ "fill-range",
56
+ "expand-range"
57
+ ]
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * filename-regex <https://github.com/regexps/filename-regex>
3
+ *
4
+ * Copyright (c) 2014-2015, Jon Schlinkert
5
+ * Licensed under the MIT license.
6
+ */
7
+
8
+ module.exports = function filenameRegex() {
9
+ return /([^\\\/]+)$/;
10
+ };
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "filename-regex",
3
+ "description": "Regular expression for matching file names, with or without extension.",
4
+ "version": "2.0.1",
5
+ "homepage": "https://github.com/regexhq/filename-regex",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "repository": "regexhq/filename-regex",
8
+ "bugs": {
9
+ "url": "https://github.com/regexhq/filename-regex/issues"
10
+ },
11
+ "license": "MIT",
12
+ "files": [
13
+ "index.js"
14
+ ],
15
+ "main": "index.js",
16
+ "engines": {
17
+ "node": ">=0.10.0"
18
+ },
19
+ "scripts": {
20
+ "test": "mocha"
21
+ },
22
+ "keywords": [
23
+ "basename",
24
+ "file",
25
+ "filename",
26
+ "filepath",
27
+ "match",
28
+ "name",
29
+ "path",
30
+ "regex",
31
+ "regexp",
32
+ "regular expression"
33
+ ],
34
+ "devDependencies": {
35
+ "gulp-format-md": "^0.1.12"
36
+ },
37
+ "verb": {
38
+ "toc": false,
39
+ "layout": "default",
40
+ "tasks": [
41
+ "readme"
42
+ ],
43
+ "plugins": [
44
+ "gulp-format-md"
45
+ ],
46
+ "lint": {
47
+ "reflinks": true
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,408 @@
1
+ /*!
2
+ * fill-range <https://github.com/jonschlinkert/fill-range>
3
+ *
4
+ * Copyright (c) 2014-2015, Jon Schlinkert.
5
+ * Licensed under the MIT License.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ var isObject = require('isobject');
11
+ var isNumber = require('is-number');
12
+ var randomize = require('randomatic');
13
+ var repeatStr = require('repeat-string');
14
+ var repeat = require('repeat-element');
15
+
16
+ /**
17
+ * Expose `fillRange`
18
+ */
19
+
20
+ module.exports = fillRange;
21
+
22
+ /**
23
+ * Return a range of numbers or letters.
24
+ *
25
+ * @param {String} `a` Start of the range
26
+ * @param {String} `b` End of the range
27
+ * @param {String} `step` Increment or decrement to use.
28
+ * @param {Function} `fn` Custom function to modify each element in the range.
29
+ * @return {Array}
30
+ */
31
+
32
+ function fillRange(a, b, step, options, fn) {
33
+ if (a == null || b == null) {
34
+ throw new Error('fill-range expects the first and second args to be strings.');
35
+ }
36
+
37
+ if (typeof step === 'function') {
38
+ fn = step; options = {}; step = null;
39
+ }
40
+
41
+ if (typeof options === 'function') {
42
+ fn = options; options = {};
43
+ }
44
+
45
+ if (isObject(step)) {
46
+ options = step; step = '';
47
+ }
48
+
49
+ var expand, regex = false, sep = '';
50
+ var opts = options || {};
51
+
52
+ if (typeof opts.silent === 'undefined') {
53
+ opts.silent = true;
54
+ }
55
+
56
+ step = step || opts.step;
57
+
58
+ // store a ref to unmodified arg
59
+ var origA = a, origB = b;
60
+
61
+ b = (b.toString() === '-0') ? 0 : b;
62
+
63
+ if (opts.optimize || opts.makeRe) {
64
+ step = step ? (step += '~') : step;
65
+ expand = true;
66
+ regex = true;
67
+ sep = '~';
68
+ }
69
+
70
+ // handle special step characters
71
+ if (typeof step === 'string') {
72
+ var match = stepRe().exec(step);
73
+
74
+ if (match) {
75
+ var i = match.index;
76
+ var m = match[0];
77
+
78
+ // repeat string
79
+ if (m === '+') {
80
+ return repeat(a, b);
81
+
82
+ // randomize a, `b` times
83
+ } else if (m === '?') {
84
+ return [randomize(a, b)];
85
+
86
+ // expand right, no regex reduction
87
+ } else if (m === '>') {
88
+ step = step.substr(0, i) + step.substr(i + 1);
89
+ expand = true;
90
+
91
+ // expand to an array, or if valid create a reduced
92
+ // string for a regex logic `or`
93
+ } else if (m === '|') {
94
+ step = step.substr(0, i) + step.substr(i + 1);
95
+ expand = true;
96
+ regex = true;
97
+ sep = m;
98
+
99
+ // expand to an array, or if valid create a reduced
100
+ // string for a regex range
101
+ } else if (m === '~') {
102
+ step = step.substr(0, i) + step.substr(i + 1);
103
+ expand = true;
104
+ regex = true;
105
+ sep = m;
106
+ }
107
+ } else if (!isNumber(step)) {
108
+ if (!opts.silent) {
109
+ throw new TypeError('fill-range: invalid step.');
110
+ }
111
+ return null;
112
+ }
113
+ }
114
+
115
+ if (/[.&*()[\]^%$#@!]/.test(a) || /[.&*()[\]^%$#@!]/.test(b)) {
116
+ if (!opts.silent) {
117
+ throw new RangeError('fill-range: invalid range arguments.');
118
+ }
119
+ return null;
120
+ }
121
+
122
+ // has neither a letter nor number, or has both letters and numbers
123
+ // this needs to be after the step logic
124
+ if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {
125
+ if (!opts.silent) {
126
+ throw new RangeError('fill-range: invalid range arguments.');
127
+ }
128
+ return null;
129
+ }
130
+
131
+ // validate arguments
132
+ var isNumA = isNumber(zeros(a));
133
+ var isNumB = isNumber(zeros(b));
134
+
135
+ if ((!isNumA && isNumB) || (isNumA && !isNumB)) {
136
+ if (!opts.silent) {
137
+ throw new TypeError('fill-range: first range argument is incompatible with second.');
138
+ }
139
+ return null;
140
+ }
141
+
142
+ // by this point both are the same, so we
143
+ // can use A to check going forward.
144
+ var isNum = isNumA;
145
+ var num = formatStep(step);
146
+
147
+ // is the range alphabetical? or numeric?
148
+ if (isNum) {
149
+ // if numeric, coerce to an integer
150
+ a = +a; b = +b;
151
+ } else {
152
+ // otherwise, get the charCode to expand alpha ranges
153
+ a = a.charCodeAt(0);
154
+ b = b.charCodeAt(0);
155
+ }
156
+
157
+ // is the pattern descending?
158
+ var isDescending = a > b;
159
+
160
+ // don't create a character class if the args are < 0
161
+ if (a < 0 || b < 0) {
162
+ expand = false;
163
+ regex = false;
164
+ }
165
+
166
+ // detect padding
167
+ var padding = isPadded(origA, origB);
168
+ var res, pad, arr = [];
169
+ var ii = 0;
170
+
171
+ // character classes, ranges and logical `or`
172
+ if (regex) {
173
+ if (shouldExpand(a, b, num, isNum, padding, opts)) {
174
+ // make sure the correct separator is used
175
+ if (sep === '|' || sep === '~') {
176
+ sep = detectSeparator(a, b, num, isNum, isDescending);
177
+ }
178
+ return wrap([origA, origB], sep, opts);
179
+ }
180
+ }
181
+
182
+ while (isDescending ? (a >= b) : (a <= b)) {
183
+ if (padding && isNum) {
184
+ pad = padding(a);
185
+ }
186
+
187
+ // custom function
188
+ if (typeof fn === 'function') {
189
+ res = fn(a, isNum, pad, ii++);
190
+
191
+ // letters
192
+ } else if (!isNum) {
193
+ if (regex && isInvalidChar(a)) {
194
+ res = null;
195
+ } else {
196
+ res = String.fromCharCode(a);
197
+ }
198
+
199
+ // numbers
200
+ } else {
201
+ res = formatPadding(a, pad);
202
+ }
203
+
204
+ // add result to the array, filtering any nulled values
205
+ if (res !== null) arr.push(res);
206
+
207
+ // increment or decrement
208
+ if (isDescending) {
209
+ a -= num;
210
+ } else {
211
+ a += num;
212
+ }
213
+ }
214
+
215
+ // now that the array is expanded, we need to handle regex
216
+ // character classes, ranges or logical `or` that wasn't
217
+ // already handled before the loop
218
+ if ((regex || expand) && !opts.noexpand) {
219
+ // make sure the correct separator is used
220
+ if (sep === '|' || sep === '~') {
221
+ sep = detectSeparator(a, b, num, isNum, isDescending);
222
+ }
223
+ if (arr.length === 1 || a < 0 || b < 0) { return arr; }
224
+ return wrap(arr, sep, opts);
225
+ }
226
+
227
+ return arr;
228
+ }
229
+
230
+ /**
231
+ * Wrap the string with the correct regex
232
+ * syntax.
233
+ */
234
+
235
+ function wrap(arr, sep, opts) {
236
+ if (sep === '~') { sep = '-'; }
237
+ var str = arr.join(sep);
238
+ var pre = opts && opts.regexPrefix;
239
+
240
+ // regex logical `or`
241
+ if (sep === '|') {
242
+ str = pre ? pre + str : str;
243
+ str = '(' + str + ')';
244
+ }
245
+
246
+ // regex character class
247
+ if (sep === '-') {
248
+ str = (pre && pre === '^')
249
+ ? pre + str
250
+ : str;
251
+ str = '[' + str + ']';
252
+ }
253
+ return [str];
254
+ }
255
+
256
+ /**
257
+ * Check for invalid characters
258
+ */
259
+
260
+ function isCharClass(a, b, step, isNum, isDescending) {
261
+ if (isDescending) { return false; }
262
+ if (isNum) { return a <= 9 && b <= 9; }
263
+ if (a < b) { return step === 1; }
264
+ return false;
265
+ }
266
+
267
+ /**
268
+ * Detect the correct separator to use
269
+ */
270
+
271
+ function shouldExpand(a, b, num, isNum, padding, opts) {
272
+ if (isNum && (a > 9 || b > 9)) { return false; }
273
+ return !padding && num === 1 && a < b;
274
+ }
275
+
276
+ /**
277
+ * Detect the correct separator to use
278
+ */
279
+
280
+ function detectSeparator(a, b, step, isNum, isDescending) {
281
+ var isChar = isCharClass(a, b, step, isNum, isDescending);
282
+ if (!isChar) {
283
+ return '|';
284
+ }
285
+ return '~';
286
+ }
287
+
288
+ /**
289
+ * Correctly format the step based on type
290
+ */
291
+
292
+ function formatStep(step) {
293
+ return Math.abs(step >> 0) || 1;
294
+ }
295
+
296
+ /**
297
+ * Format padding, taking leading `-` into account
298
+ */
299
+
300
+ function formatPadding(ch, pad) {
301
+ var res = pad ? pad + ch : ch;
302
+ if (pad && ch.toString().charAt(0) === '-') {
303
+ res = '-' + pad + ch.toString().substr(1);
304
+ }
305
+ return res.toString();
306
+ }
307
+
308
+ /**
309
+ * Check for invalid characters
310
+ */
311
+
312
+ function isInvalidChar(str) {
313
+ var ch = toStr(str);
314
+ return ch === '\\'
315
+ || ch === '['
316
+ || ch === ']'
317
+ || ch === '^'
318
+ || ch === '('
319
+ || ch === ')'
320
+ || ch === '`';
321
+ }
322
+
323
+ /**
324
+ * Convert to a string from a charCode
325
+ */
326
+
327
+ function toStr(ch) {
328
+ return String.fromCharCode(ch);
329
+ }
330
+
331
+
332
+ /**
333
+ * Step regex
334
+ */
335
+
336
+ function stepRe() {
337
+ return /\?|>|\||\+|\~/g;
338
+ }
339
+
340
+ /**
341
+ * Return true if `val` has either a letter
342
+ * or a number
343
+ */
344
+
345
+ function noAlphaNum(val) {
346
+ return /[a-z0-9]/i.test(val);
347
+ }
348
+
349
+ /**
350
+ * Return true if `val` has both a letter and
351
+ * a number (invalid)
352
+ */
353
+
354
+ function hasBoth(val) {
355
+ return /[a-z][0-9]|[0-9][a-z]/i.test(val);
356
+ }
357
+
358
+ /**
359
+ * Normalize zeros for checks
360
+ */
361
+
362
+ function zeros(val) {
363
+ if (/^-*0+$/.test(val.toString())) {
364
+ return '0';
365
+ }
366
+ return val;
367
+ }
368
+
369
+ /**
370
+ * Return true if `val` has leading zeros,
371
+ * or a similar valid pattern.
372
+ */
373
+
374
+ function hasZeros(val) {
375
+ return /[^.]\.|^-*0+[0-9]/.test(val);
376
+ }
377
+
378
+ /**
379
+ * If the string is padded, returns a curried function with
380
+ * the a cached padding string, or `false` if no padding.
381
+ *
382
+ * @param {*} `origA` String or number.
383
+ * @return {String|Boolean}
384
+ */
385
+
386
+ function isPadded(origA, origB) {
387
+ if (hasZeros(origA) || hasZeros(origB)) {
388
+ var alen = length(origA);
389
+ var blen = length(origB);
390
+
391
+ var len = alen >= blen
392
+ ? alen
393
+ : blen;
394
+
395
+ return function (a) {
396
+ return repeatStr('0', len - length(a));
397
+ };
398
+ }
399
+ return false;
400
+ }
401
+
402
+ /**
403
+ * Get the string length of `val`
404
+ */
405
+
406
+ function length(val) {
407
+ return val.toString().length;
408
+ }