@emulsify/cli 1.1.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/README.md +5 -4
  2. package/dist/handlers/componentInstall.js +35 -16
  3. package/dist/handlers/componentList.js +11 -11
  4. package/dist/handlers/hofs/withProgressBar.js +16 -0
  5. package/dist/handlers/init.js +63 -59
  6. package/dist/handlers/systemInstall.js +46 -18
  7. package/dist/handlers/systemList.js +1 -1
  8. package/dist/index.js +3 -1
  9. package/dist/lib/constants.js +4 -3
  10. package/dist/lib/log.js +5 -4
  11. package/dist/node_modules/.package-lock.json +68 -7
  12. package/dist/node_modules/@types/node/LICENSE +21 -0
  13. package/dist/node_modules/@types/node/README.md +16 -0
  14. package/dist/node_modules/@types/node/assert.d.ts +128 -0
  15. package/dist/node_modules/@types/node/async_hooks.d.ts +229 -0
  16. package/dist/node_modules/@types/node/buffer.d.ts +25 -0
  17. package/dist/node_modules/@types/node/child_process.d.ts +514 -0
  18. package/dist/node_modules/@types/node/cluster.d.ts +265 -0
  19. package/dist/node_modules/@types/node/console.d.ts +142 -0
  20. package/dist/node_modules/@types/node/constants.d.ts +18 -0
  21. package/dist/node_modules/@types/node/crypto.d.ts +1189 -0
  22. package/dist/node_modules/@types/node/dgram.d.ts +144 -0
  23. package/dist/node_modules/@types/node/dns.d.ts +387 -0
  24. package/dist/node_modules/@types/node/domain.d.ts +27 -0
  25. package/dist/node_modules/@types/node/events.d.ts +82 -0
  26. package/dist/node_modules/@types/node/fs/promises.d.ts +568 -0
  27. package/dist/node_modules/@types/node/fs.d.ts +2273 -0
  28. package/dist/node_modules/@types/node/globals.d.ts +613 -0
  29. package/dist/node_modules/@types/node/globals.global.d.ts +1 -0
  30. package/dist/node_modules/@types/node/http.d.ts +490 -0
  31. package/dist/node_modules/@types/node/http2.d.ts +961 -0
  32. package/dist/node_modules/@types/node/https.d.ts +142 -0
  33. package/dist/node_modules/@types/node/index.d.ts +99 -0
  34. package/dist/node_modules/@types/node/inspector.d.ts +3051 -0
  35. package/dist/node_modules/@types/node/module.d.ts +56 -0
  36. package/dist/node_modules/@types/node/net.d.ts +296 -0
  37. package/dist/node_modules/@types/node/os.d.ts +242 -0
  38. package/dist/node_modules/@types/node/package.json +230 -0
  39. package/dist/node_modules/@types/node/path.d.ts +157 -0
  40. package/dist/node_modules/@types/node/perf_hooks.d.ts +274 -0
  41. package/dist/node_modules/@types/node/process.d.ts +413 -0
  42. package/dist/node_modules/@types/node/punycode.d.ts +78 -0
  43. package/dist/node_modules/@types/node/querystring.d.ts +31 -0
  44. package/dist/node_modules/@types/node/readline.d.ts +174 -0
  45. package/dist/node_modules/@types/node/repl.d.ts +398 -0
  46. package/dist/node_modules/@types/node/stream.d.ts +359 -0
  47. package/dist/node_modules/@types/node/string_decoder.d.ts +10 -0
  48. package/dist/node_modules/@types/node/timers.d.ts +19 -0
  49. package/dist/node_modules/@types/node/tls.d.ts +783 -0
  50. package/dist/node_modules/@types/node/trace_events.d.ts +64 -0
  51. package/dist/node_modules/@types/node/tty.d.ts +69 -0
  52. package/dist/node_modules/@types/node/url.d.ts +119 -0
  53. package/dist/node_modules/@types/node/util.d.ts +216 -0
  54. package/dist/node_modules/@types/node/v8.d.ts +190 -0
  55. package/dist/node_modules/@types/node/vm.d.ts +155 -0
  56. package/dist/node_modules/@types/node/wasi.d.ts +89 -0
  57. package/dist/node_modules/@types/node/worker_threads.d.ts +241 -0
  58. package/dist/node_modules/@types/node/zlib.d.ts +364 -0
  59. package/dist/node_modules/@types/progress/LICENSE +21 -0
  60. package/dist/node_modules/@types/progress/README.md +16 -0
  61. package/dist/node_modules/@types/progress/index.d.ts +148 -0
  62. package/dist/node_modules/@types/progress/package.json +27 -0
  63. package/dist/node_modules/ajv-formats/LICENSE +21 -0
  64. package/dist/node_modules/ajv-formats/README.md +123 -0
  65. package/dist/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  66. package/dist/node_modules/ajv-formats/dist/formats.js +173 -0
  67. package/dist/node_modules/ajv-formats/dist/formats.js.map +1 -0
  68. package/dist/node_modules/ajv-formats/dist/index.d.ts +15 -0
  69. package/dist/node_modules/ajv-formats/dist/index.js +37 -0
  70. package/dist/node_modules/ajv-formats/dist/index.js.map +1 -0
  71. package/dist/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  72. package/dist/node_modules/ajv-formats/dist/limit.js +69 -0
  73. package/dist/node_modules/ajv-formats/dist/limit.js.map +1 -0
  74. package/dist/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +23 -0
  75. package/dist/node_modules/ajv-formats/node_modules/ajv/LICENSE +22 -0
  76. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +192 -0
  77. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +17 -0
  78. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +55 -0
  79. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -0
  80. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +17 -0
  81. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +49 -0
  82. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -0
  83. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +16 -0
  84. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +44 -0
  85. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -0
  86. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
  87. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +147 -0
  88. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  89. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  90. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  91. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  92. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  93. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  94. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  95. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  96. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +123 -0
  97. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -0
  98. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +80 -0
  99. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +243 -0
  100. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -0
  101. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  102. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  103. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  104. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  105. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
  106. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  107. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  108. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  109. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  110. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +20 -0
  111. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +28 -0
  112. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -0
  113. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
  114. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +12 -0
  115. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  116. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  117. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +153 -0
  118. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  119. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  120. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +26 -0
  121. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +1 -0
  122. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +40 -0
  123. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +178 -0
  124. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -0
  125. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  126. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  127. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  128. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  129. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  130. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  131. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  132. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  133. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  134. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  135. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  136. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  137. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  138. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +510 -0
  139. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  140. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  141. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  142. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  143. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  144. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  145. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  146. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +171 -0
  147. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +614 -0
  148. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -0
  149. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +45 -0
  150. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +66 -0
  151. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -0
  152. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +13 -0
  153. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  154. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  155. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  156. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  157. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  158. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  159. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  160. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  161. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  162. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  163. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  164. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  165. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  166. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  167. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  168. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  169. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  170. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  171. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  172. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  173. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  174. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  175. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  176. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  177. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  178. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  179. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  180. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  181. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +7 -0
  182. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  183. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  184. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +184 -0
  185. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  186. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  187. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +30 -0
  188. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  189. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  190. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +6 -0
  191. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  192. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  193. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  194. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  195. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  196. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  197. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  198. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  199. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  200. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  201. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  202. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +83 -0
  203. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -0
  204. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  205. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +35 -0
  206. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  207. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +177 -0
  208. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +3 -0
  209. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +1 -0
  210. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
  211. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +3 -0
  212. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  213. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
  214. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  215. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  216. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  217. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  218. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  219. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  220. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  221. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  222. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  223. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  224. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  225. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  226. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  227. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  228. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  229. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  230. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  231. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  232. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  233. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  234. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  235. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  236. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  237. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  238. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  239. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  240. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  241. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  242. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  243. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  244. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  245. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  246. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  247. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  248. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  249. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  250. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  251. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  252. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  253. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  254. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  255. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  256. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  257. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  258. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  259. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  260. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  261. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  262. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  263. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  264. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  265. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  266. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  267. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  268. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  269. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  270. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  271. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +131 -0
  272. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  273. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  274. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  275. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  276. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  277. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  278. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  279. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  280. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  281. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  282. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  283. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
  284. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  285. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  286. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  287. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  288. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  289. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  290. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  291. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  292. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  293. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  294. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  295. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  296. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  297. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  298. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  299. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  300. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  301. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  302. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  303. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  304. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  305. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  306. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  307. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  308. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  309. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  310. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  311. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  312. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  313. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  314. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  315. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  316. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  317. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  318. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  319. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  320. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  321. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  322. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  323. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  324. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  325. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  326. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  327. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  328. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  329. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  330. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  331. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  332. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  333. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  334. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  335. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  336. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  337. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  338. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  339. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  340. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  341. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  342. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  343. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
  344. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  345. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  346. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
  347. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  348. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  349. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  350. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  351. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  352. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  353. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  354. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  355. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
  356. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  357. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  358. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  359. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  360. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  361. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +8 -0
  362. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  363. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  364. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  365. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  366. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  367. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  368. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  369. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  370. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  371. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  372. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  373. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  374. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  375. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  376. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  377. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  378. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  379. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
  380. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  381. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  382. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  383. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  384. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  385. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  386. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  387. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  388. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  389. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  390. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  391. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  392. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  393. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  394. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  395. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  396. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  397. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  398. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  399. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  400. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  401. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  402. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  403. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  404. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  405. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  406. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  407. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  408. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  409. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  410. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  411. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +78 -0
  412. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +72 -0
  413. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +67 -0
  414. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
  415. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  416. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  417. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +184 -0
  418. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +324 -0
  419. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  420. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
  421. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  422. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +27 -0
  423. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +12 -0
  424. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +146 -0
  425. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +50 -0
  426. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +213 -0
  427. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  428. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  429. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  430. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  431. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +573 -0
  432. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  433. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  434. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +880 -0
  435. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +129 -0
  436. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +13 -0
  437. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  438. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  439. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  440. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  441. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  442. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  443. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  444. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  445. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  446. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  447. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  448. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  449. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  450. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  451. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  452. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  453. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  454. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  455. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  456. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  457. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  458. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +7 -0
  459. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
  460. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +31 -0
  461. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +6 -0
  462. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  463. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  464. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  465. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +93 -0
  466. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +36 -0
  467. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +233 -0
  468. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +189 -0
  469. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
  470. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  471. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  472. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  473. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  474. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  475. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  476. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  477. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  478. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  479. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  480. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  481. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  482. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  483. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  484. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  485. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  486. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  487. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  488. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  489. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  490. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  491. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  492. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
  493. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  494. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  495. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  496. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  497. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  498. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  499. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  500. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  501. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  502. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  503. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  504. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  505. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  506. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  507. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  508. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  509. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  510. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  511. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  512. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
  513. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
  514. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  515. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  516. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
  517. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  518. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  519. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  520. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  521. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  522. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  523. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  524. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
  525. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  526. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  527. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  528. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  529. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  530. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  531. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  532. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  533. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  534. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  535. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +124 -0
  536. package/dist/node_modules/ajv-formats/package.json +74 -0
  537. package/dist/node_modules/ajv-formats/src/formats.ts +232 -0
  538. package/dist/node_modules/ajv-formats/src/index.ts +62 -0
  539. package/dist/node_modules/ajv-formats/src/limit.ts +99 -0
  540. package/dist/node_modules/consola/CHANGELOG.md +706 -0
  541. package/dist/node_modules/consola/README.md +288 -0
  542. package/dist/node_modules/consola/dist/consola.browser.js +1 -0
  543. package/dist/node_modules/consola/dist/consola.js +1 -0
  544. package/dist/node_modules/consola/package.json +80 -0
  545. package/dist/node_modules/consola/src/browser.js +20 -0
  546. package/dist/node_modules/consola/src/consola.js +327 -0
  547. package/dist/node_modules/consola/src/index.js +7 -0
  548. package/dist/node_modules/consola/src/logLevels.js +11 -0
  549. package/dist/node_modules/consola/src/node.js +36 -0
  550. package/dist/node_modules/consola/src/reporters/basic.js +72 -0
  551. package/dist/node_modules/consola/src/reporters/browser.js +54 -0
  552. package/dist/node_modules/consola/src/reporters/fancy.js +87 -0
  553. package/dist/node_modules/consola/src/reporters/index.js +5 -0
  554. package/dist/node_modules/consola/src/reporters/json.js +9 -0
  555. package/dist/node_modules/consola/src/reporters/winston.js +45 -0
  556. package/dist/node_modules/consola/src/types.js +50 -0
  557. package/dist/node_modules/consola/src/utils/chalk.js +37 -0
  558. package/dist/node_modules/consola/src/utils/date.js +5 -0
  559. package/dist/node_modules/consola/src/utils/error.js +16 -0
  560. package/dist/node_modules/consola/src/utils/fancy.js +10 -0
  561. package/dist/node_modules/consola/src/utils/format.js +30 -0
  562. package/dist/node_modules/consola/src/utils/global.js +38 -0
  563. package/dist/node_modules/consola/src/utils/index.js +23 -0
  564. package/dist/node_modules/consola/src/utils/stream.js +20 -0
  565. package/dist/node_modules/consola/src/utils/string.js +41 -0
  566. package/dist/node_modules/consola/types/consola.d.ts +182 -0
  567. package/dist/node_modules/debug/LICENSE +10 -9
  568. package/dist/node_modules/debug/README.md +24 -1
  569. package/dist/node_modules/debug/package.json +6 -6
  570. package/dist/node_modules/debug/src/common.js +1 -1
  571. package/dist/node_modules/progress/CHANGELOG.md +115 -0
  572. package/dist/node_modules/progress/LICENSE +22 -0
  573. package/dist/node_modules/progress/Makefile +8 -0
  574. package/dist/node_modules/progress/Readme.md +146 -0
  575. package/dist/node_modules/progress/index.js +1 -0
  576. package/dist/node_modules/progress/lib/node-progress.js +236 -0
  577. package/dist/node_modules/progress/package.json +26 -0
  578. package/dist/node_modules/simple-git/CHANGELOG.md +35 -0
  579. package/dist/node_modules/simple-git/package.json +6 -2
  580. package/dist/node_modules/simple-git/readme.md +8 -1
  581. package/dist/node_modules/simple-git/src/lib/api.d.ts +2 -0
  582. package/dist/node_modules/simple-git/src/lib/api.js +2 -0
  583. package/dist/node_modules/simple-git/src/lib/api.js.map +1 -1
  584. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +2 -2
  585. package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +1 -0
  586. package/dist/node_modules/simple-git/src/lib/git-factory.js +1 -0
  587. package/dist/node_modules/simple-git/src/lib/git-factory.js.map +1 -1
  588. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.d.ts +3 -0
  589. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +80 -0
  590. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +1 -0
  591. package/dist/node_modules/simple-git/src/lib/plugins/index.d.ts +1 -0
  592. package/dist/node_modules/simple-git/src/lib/plugins/index.js +1 -0
  593. package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +1 -1
  594. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.d.ts +1 -0
  595. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.d.ts +12 -33
  596. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +2 -22
  597. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +1 -1
  598. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +9 -23
  599. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +1 -1
  600. package/dist/node_modules/simple-git/src/lib/simple-git-api.js +2 -1
  601. package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +1 -1
  602. package/dist/node_modules/simple-git/src/lib/tasks/grep.d.ts +12 -0
  603. package/dist/node_modules/simple-git/src/lib/tasks/grep.js +76 -0
  604. package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +1 -0
  605. package/dist/node_modules/simple-git/src/lib/types/index.d.ts +16 -0
  606. package/dist/node_modules/simple-git/src/lib/utils/util.d.ts +2 -0
  607. package/dist/node_modules/simple-git/src/lib/utils/util.js +6 -1
  608. package/dist/node_modules/simple-git/src/lib/utils/util.js.map +1 -1
  609. package/dist/node_modules/simple-git/typings/response.d.ts +38 -1
  610. package/dist/node_modules/simple-git/typings/simple-git.d.ts +7 -0
  611. package/dist/node_modules/simple-git/typings/types.d.ts +2 -1
  612. package/dist/package.json +7 -3
  613. package/dist/schemas/system.json +74 -0
  614. package/dist/schemas/variant.json +137 -0
  615. package/dist/scripts/jsonSchemaToTs.js +5 -5
  616. package/dist/util/cache/cloneIntoCache.js +6 -6
  617. package/dist/util/cache/copyItemFromCache.js +3 -3
  618. package/dist/util/cache/getCachedItemCheckout.js +2 -2
  619. package/dist/util/cache/getCachedItemPath.js +2 -2
  620. package/dist/util/cache/getJsonFromCachedFile.js +1 -1
  621. package/dist/util/fs/executeScript.js +1 -1
  622. package/dist/util/fs/findFileInCurrentPath.js +5 -5
  623. package/dist/util/platform/getDrupalInfo.js +4 -4
  624. package/dist/util/platform/getInitSuccessMessageForPlatform.js +35 -0
  625. package/dist/util/platform/getPlatformInfo.js +1 -1
  626. package/dist/util/project/getEmulsifyConfig.js +2 -2
  627. package/dist/util/project/installComponentFromCache.js +4 -4
  628. package/dist/util/project/installDependencies.js +1 -1
  629. package/dist/util/project/installGeneralAssetsFromCache.js +3 -3
  630. package/dist/util/project/setEmulsifyConfig.js +3 -3
  631. package/dist/util/strToMachineName.js +5 -2
  632. package/package.json +8 -4
package/README.md CHANGED
@@ -6,14 +6,14 @@ Command line interface for Emulsify.
6
6
 
7
7
  This project is deployed to [npm](https://www.npmjs.com/package/@emulsify/cli). In order to use this CLI, install it as a global dependency:
8
8
 
9
- ## Usage
10
-
11
- For more information on how to use emulsify-cli, please see the [usage documentation](USAGE.md).
12
-
13
9
  ```bash
14
10
  npm install -g @emulsify/cli
15
11
  ```
16
12
 
13
+ ## Usage
14
+
15
+ For more information on how to use emulsify-cli, please see the [usage documentation](USAGE.md).
16
+
17
17
  ## Development
18
18
 
19
19
  Emulsify-cli is developed using TypeScript. You can find all of the source files in the `src` directory, which is organized in the following manner:
@@ -31,6 +31,7 @@ Emulsify-cli is developed using TypeScript. You can find all of the source files
31
31
  - Install the version of node as specified in this project's `.nvmrc` file. If you are using nvm, simply run `nvm use`.
32
32
  - Clone this repository into a directory of your choosing.
33
33
  - In the directory, run `npm install`.
34
+ - Build the project: `npm run build`, or watch: `npm run watch`.
34
35
  - To test the CLI, run: `npm link`.
35
36
 
36
37
  ### Scripts
@@ -10,40 +10,59 @@ const getEmulsifyConfig_1 = __importDefault(require("../util/project/getEmulsify
10
10
  const getJsonFromCachedFile_1 = __importDefault(require("../util/cache/getJsonFromCachedFile"));
11
11
  const installComponentFromCache_1 = __importDefault(require("../util/project/installComponentFromCache"));
12
12
  const cloneIntoCache_1 = __importDefault(require("../util/cache/cloneIntoCache"));
13
- async function componentInstall(name, { force }) {
13
+ const catchLater_1 = __importDefault(require("../util/catchLater"));
14
+ async function componentInstall(name, { force, all }) {
14
15
  var _a;
15
- const emulsifyConfig = await getEmulsifyConfig_1.default();
16
+ const emulsifyConfig = await (0, getEmulsifyConfig_1.default)();
16
17
  if (!emulsifyConfig) {
17
- return log_1.default('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
18
+ return (0, log_1.default)('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
18
19
  }
19
20
  if (!emulsifyConfig.system || !emulsifyConfig.variant) {
20
- return log_1.default('error', 'You must select and install a system before you can install components. To see a list of out-of-the-box systems, run "emulsify system list". You can install a system by running "emulsify system install [name]"', constants_1.EXIT_ERROR);
21
+ return (0, log_1.default)('error', 'You must select and install a system before you can install components. To see a list of out-of-the-box systems, run "emulsify system list". You can install a system by running "emulsify system install [name]"', constants_1.EXIT_ERROR);
21
22
  }
22
- const systemName = getGitRepoNameFromUrl_1.default(emulsifyConfig.system.repository);
23
+ const systemName = (0, getGitRepoNameFromUrl_1.default)(emulsifyConfig.system.repository);
23
24
  if (!systemName) {
24
- return log_1.default('error', `The system specified in your project configuration is not valid. Please make sure your ${constants_1.EMULSIFY_PROJECT_CONFIG_FILE} file contains a system.repository value that is a valid git url`, constants_1.EXIT_ERROR);
25
+ return (0, log_1.default)('error', `The system specified in your project configuration is not valid. Please make sure your ${constants_1.EMULSIFY_PROJECT_CONFIG_FILE} file contains a system.repository value that is a valid git url`, constants_1.EXIT_ERROR);
25
26
  }
26
27
  try {
27
- await cloneIntoCache_1.default('systems', [systemName])(emulsifyConfig.system);
28
+ await (0, cloneIntoCache_1.default)('systems', [systemName])(emulsifyConfig.system);
28
29
  }
29
30
  catch (e) {
30
- return log_1.default('error', 'The system specified in your project configuration is not clone-able, or has an invalid checkout value.', constants_1.EXIT_ERROR);
31
+ return (0, log_1.default)('error', 'The system specified in your project configuration is not clone-able, or has an invalid checkout value.', constants_1.EXIT_ERROR);
31
32
  }
32
- const systemConf = await getJsonFromCachedFile_1.default('systems', [systemName], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
33
+ const systemConf = await (0, getJsonFromCachedFile_1.default)('systems', [systemName], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
33
34
  if (!systemConf) {
34
- return log_1.default('error', `Unable to load configuration for the ${systemName} system. Please make sure the system is installed.`, constants_1.EXIT_ERROR);
35
+ return (0, log_1.default)('error', `Unable to load configuration for the ${systemName} system. Please make sure the system is installed.`, constants_1.EXIT_ERROR);
35
36
  }
36
37
  const variantName = emulsifyConfig.variant.platform;
37
38
  const variantConf = (_a = systemConf.variants) === null || _a === void 0 ? void 0 : _a.find(({ platform }) => platform === variantName);
38
39
  if (!variantConf) {
39
- return log_1.default('error', `Unable to find configuration for the variant ${variantName} within the system ${systemName}.`, constants_1.EXIT_ERROR);
40
+ return (0, log_1.default)('error', `Unable to find configuration for the variant ${variantName} within the system ${systemName}.`, constants_1.EXIT_ERROR);
40
41
  }
41
- try {
42
- await installComponentFromCache_1.default(systemConf, variantConf, name, force);
43
- return log_1.default('success', `Success! The ${name} component has been added to your project.`);
42
+ if (!name && !all) {
43
+ return (0, log_1.default)('error', 'Please specify a component to install, or pass --all to install all available components.');
44
44
  }
45
- catch (e) {
46
- return log_1.default('error', e.toString());
45
+ const components = [];
46
+ if (all) {
47
+ components.push(...variantConf.components.map((component) => [
48
+ component.name,
49
+ (0, catchLater_1.default)((0, installComponentFromCache_1.default)(systemConf, variantConf, component.name, true)),
50
+ ]));
51
+ }
52
+ else {
53
+ components.push([
54
+ name,
55
+ (0, catchLater_1.default)((0, installComponentFromCache_1.default)(systemConf, variantConf, name, force)),
56
+ ]);
57
+ }
58
+ for (const [cname, promise] of components) {
59
+ try {
60
+ await promise;
61
+ (0, log_1.default)('success', `Success! The ${cname} component has been added to your project.`);
62
+ }
63
+ catch (e) {
64
+ (0, log_1.default)('error', `Unable to install ${cname}: ${e.toString()}`);
65
+ }
47
66
  }
48
67
  }
49
68
  exports.default = componentInstall;
@@ -11,35 +11,35 @@ const getJsonFromCachedFile_1 = __importDefault(require("../util/cache/getJsonFr
11
11
  const cloneIntoCache_1 = __importDefault(require("../util/cache/cloneIntoCache"));
12
12
  async function componentList() {
13
13
  var _a;
14
- const emulsifyConfig = await getEmulsifyConfig_1.default();
14
+ const emulsifyConfig = await (0, getEmulsifyConfig_1.default)();
15
15
  if (!emulsifyConfig) {
16
- return log_1.default('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
16
+ return (0, log_1.default)('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
17
17
  }
18
18
  if (!emulsifyConfig.system || !emulsifyConfig.variant) {
19
- return log_1.default('error', 'You must select and install a system before you can list components. To see a list of out-of-the-box systems, run "emulsify system list". You can install a system by running "emulsify system install [name]"', constants_1.EXIT_ERROR);
19
+ return (0, log_1.default)('error', 'You must select and install a system before you can list components. To see a list of out-of-the-box systems, run "emulsify system list". You can install a system by running "emulsify system install [name]"', constants_1.EXIT_ERROR);
20
20
  }
21
- const systemName = getGitRepoNameFromUrl_1.default(emulsifyConfig.system.repository);
21
+ const systemName = (0, getGitRepoNameFromUrl_1.default)(emulsifyConfig.system.repository);
22
22
  if (!systemName) {
23
- return log_1.default('error', `The system specified in your project configuration is not valid. Please make sure your ${constants_1.EMULSIFY_PROJECT_CONFIG_FILE} file contains a system.repository value that is a valid git url`, constants_1.EXIT_ERROR);
23
+ return (0, log_1.default)('error', `The system specified in your project configuration is not valid. Please make sure your ${constants_1.EMULSIFY_PROJECT_CONFIG_FILE} file contains a system.repository value that is a valid git url`, constants_1.EXIT_ERROR);
24
24
  }
25
25
  try {
26
- await cloneIntoCache_1.default('systems', [systemName])(emulsifyConfig.system);
26
+ await (0, cloneIntoCache_1.default)('systems', [systemName])(emulsifyConfig.system);
27
27
  }
28
28
  catch (e) {
29
29
  console.log(e);
30
- return log_1.default('error', 'The system specified in your project configuration is not clone-able, or has an invalid checkout value.', constants_1.EXIT_ERROR);
30
+ return (0, log_1.default)('error', 'The system specified in your project configuration is not clone-able, or has an invalid checkout value.', constants_1.EXIT_ERROR);
31
31
  }
32
- const systemConf = await getJsonFromCachedFile_1.default('systems', [systemName], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
32
+ const systemConf = await (0, getJsonFromCachedFile_1.default)('systems', [systemName], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
33
33
  if (!systemConf) {
34
- return log_1.default('error', `Unable to load configuration for the ${systemName} system. Please make sure the system is installed.`, constants_1.EXIT_ERROR);
34
+ return (0, log_1.default)('error', `Unable to load configuration for the ${systemName} system. Please make sure the system is installed.`, constants_1.EXIT_ERROR);
35
35
  }
36
36
  const variantName = emulsifyConfig.variant.platform;
37
37
  const variantConf = (_a = systemConf.variants) === null || _a === void 0 ? void 0 : _a.find(({ platform }) => platform === variantName);
38
38
  if (!variantConf) {
39
- return log_1.default('error', `Unable to find configuration for the variant ${variantName} within the system ${systemName}.`, constants_1.EXIT_ERROR);
39
+ return (0, log_1.default)('error', `Unable to find configuration for the variant ${variantName} within the system ${systemName}.`, constants_1.EXIT_ERROR);
40
40
  }
41
41
  variantConf.components.map(({ name, structure }) => {
42
- log_1.default('info', `${structure} -> ${name}`);
42
+ (0, log_1.default)('info', `${structure} -> ${name}`);
43
43
  });
44
44
  }
45
45
  exports.default = componentList;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const progress_1 = __importDefault(require("progress"));
7
+ function withProgressBar(handler) {
8
+ const progress = new progress_1.default('[:bar] :percent :message', {
9
+ total: 100,
10
+ complete: '=',
11
+ incomplete: ' ',
12
+ width: 100,
13
+ });
14
+ return handler(progress);
15
+ }
16
+ exports.default = withProgressBar;
@@ -7,7 +7,6 @@ const ramda_1 = __importDefault(require("ramda"));
7
7
  const path_1 = require("path");
8
8
  const fs_1 = require("fs");
9
9
  const simple_git_1 = __importDefault(require("simple-git"));
10
- const chalk_1 = require("chalk");
11
10
  const constants_1 = require("../lib/constants");
12
11
  const getPlatformInfo_1 = __importDefault(require("../util/platform/getPlatformInfo"));
13
12
  const getAvailableStarters_1 = __importDefault(require("../util/getAvailableStarters"));
@@ -15,67 +14,72 @@ const writeToJsonFile_1 = __importDefault(require("../util/fs/writeToJsonFile"))
15
14
  const strToMachineName_1 = __importDefault(require("../util/strToMachineName"));
16
15
  const installDependencies_1 = __importDefault(require("../util/project/installDependencies"));
17
16
  const executeScript_1 = __importDefault(require("../util/fs/executeScript"));
17
+ const getInitSuccessMessageForPlatform_1 = __importDefault(require("../util/platform/getInitSuccessMessageForPlatform"));
18
18
  const log_1 = __importDefault(require("../lib/log"));
19
19
  const constants_2 = require("../lib/constants");
20
- const git = simple_git_1.default();
21
- async function init(name, targetDirectory, options) {
22
- const { name: autoPlatformName, emulsifyParentDirectory } = (await getPlatformInfo_1.default()) || {};
23
- const platformName = (options === null || options === void 0 ? void 0 : options.platform) || autoPlatformName;
24
- if (!platformName) {
25
- return log_1.default('error', 'Unable to determine which platform you are installing Emulsify within. Please specify a platform (such as "drupal" or "wordpress") by passing a -p or --platform flag with your init command.', constants_2.EXIT_ERROR);
26
- }
27
- const machineName = (options === null || options === void 0 ? void 0 : options.machineName) || strToMachineName_1.default(name);
28
- const starters = getAvailableStarters_1.default();
29
- const starter = starters.find(ramda_1.default.propEq('platform')(platformName));
30
- const targetParent = targetDirectory || emulsifyParentDirectory;
31
- const target = targetParent ? path_1.join(targetParent, machineName) : undefined;
32
- const repository = (options === null || options === void 0 ? void 0 : options.starter) || (starter === null || starter === void 0 ? void 0 : starter.repository);
33
- const checkout = (options === null || options === void 0 ? void 0 : options.checkout) || (starter === null || starter === void 0 ? void 0 : starter.checkout);
34
- if (!target) {
35
- return log_1.default('error', 'Unable to find a directory to put Emulsify in. Please specify a directory using the "path" argument: emulsify init myTheme ./themes', constants_2.EXIT_ERROR);
36
- }
37
- if (!repository) {
38
- return log_1.default('error', `Unable to find an Emulsify starter for your project. Please specify one using the --starter flag: emulsify init myTheme --starter ${getAvailableStarters_1.default()[0].repository}`, constants_2.EXIT_ERROR);
39
- }
40
- if (fs_1.existsSync(target)) {
41
- return log_1.default('error', `The intended target is already occupied: ${target}`, constants_2.EXIT_ERROR);
42
- }
43
- try {
44
- await git.clone(repository, target, checkout
45
- ? {
46
- '--branch': checkout,
47
- }
48
- : {});
49
- await fs_1.promises.rmdir(path_1.join(target, '.git'), { recursive: true });
50
- await writeToJsonFile_1.default(path_1.join(target, constants_1.EMULSIFY_PROJECT_CONFIG_FILE), {
51
- project: {
52
- platform: platformName,
53
- name,
54
- machineName,
55
- },
56
- starter: { repository },
20
+ const git = (0, simple_git_1.default)();
21
+ function init(progress) {
22
+ return async (name, targetDirectory, options) => {
23
+ const { name: autoPlatformName, emulsifyParentDirectory } = (await (0, getPlatformInfo_1.default)()) || {};
24
+ const platformName = ((options === null || options === void 0 ? void 0 : options.platform) || autoPlatformName);
25
+ if (!platformName) {
26
+ return (0, log_1.default)('error', 'Unable to determine which platform you are installing Emulsify within. Please specify a platform (such as "drupal" or "wordpress") by passing a -p or --platform flag with your init command.', constants_2.EXIT_ERROR);
27
+ }
28
+ progress.tick(10, {
29
+ message: `using starter for ${platformName}, validating config`,
57
30
  });
58
- await installDependencies_1.default(target);
59
- const initPath = path_1.join(target, constants_1.EMULSIFY_PROJECT_HOOK_FOLDER, constants_1.EMULSIFY_PROJECT_HOOK_INIT);
60
- if (fs_1.existsSync(initPath)) {
61
- await executeScript_1.default(initPath);
31
+ const machineName = (options === null || options === void 0 ? void 0 : options.machineName) || (0, strToMachineName_1.default)(name, platformName);
32
+ const starters = (0, getAvailableStarters_1.default)();
33
+ const starter = starters.find(ramda_1.default.propEq('platform')(platformName));
34
+ const targetParent = targetDirectory || emulsifyParentDirectory;
35
+ const target = targetParent ? (0, path_1.join)(targetParent, machineName) : undefined;
36
+ const repository = (options === null || options === void 0 ? void 0 : options.starter) || (starter === null || starter === void 0 ? void 0 : starter.repository);
37
+ const checkout = (options === null || options === void 0 ? void 0 : options.checkout) || (starter === null || starter === void 0 ? void 0 : starter.checkout);
38
+ if (!target) {
39
+ return (0, log_1.default)('error', 'Unable to find a directory to put Emulsify in. Please specify a directory using the "path" argument: emulsify init myTheme ./themes', constants_2.EXIT_ERROR);
40
+ }
41
+ if (!repository) {
42
+ return (0, log_1.default)('error', `Unable to find an Emulsify starter for your project. Please specify one using the --starter flag: emulsify init myTheme --starter ${(0, getAvailableStarters_1.default)()[0].repository}`, constants_2.EXIT_ERROR);
43
+ }
44
+ if ((0, fs_1.existsSync)(target)) {
45
+ return (0, log_1.default)('error', `The intended target is already occupied: ${target}`, constants_2.EXIT_ERROR);
46
+ }
47
+ try {
48
+ progress.tick(10, { message: 'validation complete, cloning starter' });
49
+ await git.clone(repository, target, checkout
50
+ ? {
51
+ '--branch': checkout,
52
+ }
53
+ : {});
54
+ await (0, writeToJsonFile_1.default)((0, path_1.join)(target, constants_1.EMULSIFY_PROJECT_CONFIG_FILE), {
55
+ project: {
56
+ platform: platformName,
57
+ name,
58
+ machineName,
59
+ },
60
+ starter: { repository },
61
+ });
62
+ progress.tick(30, {
63
+ message: 'starter cloned, installing dependencies (this will take a moment)',
64
+ });
65
+ await (0, installDependencies_1.default)(target);
66
+ progress.tick(40, {
67
+ message: 'dependencies installed, executing init script',
68
+ });
69
+ const initPath = (0, path_1.join)(target, constants_1.EMULSIFY_PROJECT_HOOK_FOLDER, constants_1.EMULSIFY_PROJECT_HOOK_INIT);
70
+ if ((0, fs_1.existsSync)(initPath)) {
71
+ await (0, executeScript_1.default)(initPath);
72
+ }
73
+ await fs_1.promises.rmdir((0, path_1.join)(target, '.git'), { recursive: true });
74
+ progress.tick(10, {
75
+ message: 'init script executed, initialization complete',
76
+ });
77
+ (0, log_1.default)('success', `Created an Emulsify project in ${target}.`);
78
+ (0, getInitSuccessMessageForPlatform_1.default)(platformName).map(({ method, message }) => (0, log_1.default)(method, message));
79
+ }
80
+ catch (e) {
81
+ (0, log_1.default)('error', `Unable to pull down ${repository}: ${String(e)}`, constants_2.EXIT_ERROR);
62
82
  }
63
- log_1.default('success', `Created an Emulsify project in ${target}.`);
64
- log_1.default('info', `Make sure you install the modules your Emulsify-based theme requires in order to function.`);
65
- log_1.default('verbose', `
66
- - composer require drupal/components
67
- - composer require drupal/emulsify_twig
68
- - drush en components emulsify_twig -y
69
- `);
70
- log_1.default('info', `Once the requirements have been installed, you will need to select a system to use, as Emulsify does not come with components by default.`);
71
- log_1.default('verbose', `
72
- ${chalk_1.cyan('List systems')}: emulsify system list
73
- ${chalk_1.cyan('Install a system')}: emulsify system install "system-name"
74
- ${chalk_1.cyan('Install default system')}: emulsify system install compound
75
- `);
76
- }
77
- catch (e) {
78
- log_1.default('error', `Unable to pull down ${repository}: ${String(e)}`, constants_2.EXIT_ERROR);
79
- }
83
+ };
80
84
  }
81
85
  exports.default = init;
@@ -5,6 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getSystemRepoInfo = void 0;
7
7
  const ramda_1 = __importDefault(require("ramda"));
8
+ const ajv_1 = __importDefault(require("ajv"));
9
+ const ajv_formats_1 = __importDefault(require("ajv-formats"));
10
+ const path_1 = require("path");
11
+ const fs_1 = require("fs");
8
12
  const constants_1 = require("../lib/constants");
9
13
  const log_1 = __importDefault(require("../lib/log"));
10
14
  const getAvailableSystems_1 = __importDefault(require("../util/system/getAvailableSystems"));
@@ -16,9 +20,13 @@ const installGeneralAssetsFromCache_1 = __importDefault(require("../util/project
16
20
  const getJsonFromCachedFile_1 = __importDefault(require("../util/cache/getJsonFromCachedFile"));
17
21
  const setEmulsifyConfig_1 = __importDefault(require("../util/project/setEmulsifyConfig"));
18
22
  const getEmulsifyConfig_1 = __importDefault(require("../util/project/getEmulsifyConfig"));
23
+ const findFileInCurrentPath_1 = __importDefault(require("../util/fs/findFileInCurrentPath"));
24
+ const executeScript_1 = __importDefault(require("../util/fs/executeScript"));
25
+ const system_json_1 = __importDefault(require("../schemas/system.json"));
26
+ const variant_json_1 = __importDefault(require("../schemas/variant.json"));
19
27
  async function getSystemRepoInfo(name, { repository, checkout }) {
20
28
  if (repository && checkout) {
21
- const repoName = getGitRepoNameFromUrl_1.default(repository);
29
+ const repoName = (0, getGitRepoNameFromUrl_1.default)(repository);
22
30
  if (repoName) {
23
31
  return {
24
32
  name: repoName,
@@ -28,7 +36,7 @@ async function getSystemRepoInfo(name, { repository, checkout }) {
28
36
  }
29
37
  }
30
38
  if (name) {
31
- const system = (await getAvailableSystems_1.default()).find(ramda_1.default.propEq('name', name));
39
+ const system = (await (0, getAvailableSystems_1.default)()).find(ramda_1.default.propEq('name', name));
32
40
  if (system) {
33
41
  return {
34
42
  name,
@@ -41,39 +49,52 @@ async function getSystemRepoInfo(name, { repository, checkout }) {
41
49
  exports.getSystemRepoInfo = getSystemRepoInfo;
42
50
  async function systemInstall(name, options) {
43
51
  var _a;
44
- const projectConfig = await getEmulsifyConfig_1.default();
52
+ const projectConfig = await (0, getEmulsifyConfig_1.default)();
45
53
  if (!projectConfig) {
46
- return log_1.default('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
54
+ return (0, log_1.default)('error', 'No Emulsify project detected. You must run this command within an existing Emulsify project. For more information about creating Emulsify projects, run "emulsify init --help"', constants_1.EXIT_ERROR);
47
55
  }
48
56
  if (projectConfig.system) {
49
- return log_1.default('error', 'You have already selected a system within this Emulsify project.', constants_1.EXIT_ERROR);
57
+ return (0, log_1.default)('error', 'You have already selected a system within this Emulsify project.', constants_1.EXIT_ERROR);
50
58
  }
51
59
  const repo = await getSystemRepoInfo(name, options);
52
60
  if (!repo) {
53
- return log_1.default('error', 'Unable to download specified system. You must either specify a valid name of an out-of-the-box system using the --name flag, or specify a valid repository and branch/tag/commit using the --repository and --checkout flags.', constants_1.EXIT_ERROR);
61
+ return (0, log_1.default)('error', 'Unable to download specified system. You must either specify a valid name of an out-of-the-box system using the --name flag, or specify a valid repository and branch/tag/commit using the --repository and --checkout flags.', constants_1.EXIT_ERROR);
54
62
  }
55
- await cloneIntoCache_1.default('systems', [repo.name])({
63
+ await (0, cloneIntoCache_1.default)('systems', [repo.name])({
56
64
  repository: repo.repository,
57
65
  checkout: repo.checkout,
58
66
  });
59
- const systemConf = await getJsonFromCachedFile_1.default('systems', [repo.name], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
67
+ const systemConf = await (0, getJsonFromCachedFile_1.default)('systems', [repo.name], constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
60
68
  if (!systemConf) {
61
- return log_1.default('error', `The system you attempted to install (${repo.name}) is invalid, as it does not contain a valid configuration file.`, constants_1.EXIT_ERROR);
69
+ return (0, log_1.default)('error', `The system you attempted to install (${repo.name}) is invalid, as it does not contain a valid configuration file.`, constants_1.EXIT_ERROR);
70
+ }
71
+ try {
72
+ const ajv = new ajv_1.default();
73
+ (0, ajv_formats_1.default)(ajv, ['uri']);
74
+ ajv.addSchema(variant_json_1.default, 'variant.json');
75
+ const validate = ajv.compile(system_json_1.default);
76
+ if (!validate(systemConf)) {
77
+ throw validate.errors;
78
+ }
79
+ }
80
+ catch (e) {
81
+ console.error('System configuration errors:', e);
82
+ return (0, log_1.default)('error', `The system install failed due to the validation errors reported above. Please fix the the errors in the "${systemConf.name}" configuration and try again.`, constants_1.EXIT_ERROR);
62
83
  }
63
84
  const variantName = options.variant || projectConfig.project.platform;
64
85
  if (!variantName) {
65
- return log_1.default('error', 'Unable to determine a variant for the specified system. Please either pass in a valid variant using the --variant flag.', constants_1.EXIT_ERROR);
86
+ return (0, log_1.default)('error', 'Unable to determine a variant for the specified system. Please either pass in a valid variant using the --variant flag.', constants_1.EXIT_ERROR);
66
87
  }
67
88
  const variantConf = (_a = systemConf.variants) === null || _a === void 0 ? void 0 : _a.find(({ platform }) => platform === variantName);
68
89
  if (!variantConf) {
69
- return log_1.default('error', `Unable to find a variant (${variantName}) within the system (${systemConf.name}). Please check your Emulsify project config and make sure the project.platform value is correct, or select a system with a variant that is compatible with the platform you are using.`, constants_1.EXIT_ERROR);
90
+ return (0, log_1.default)('error', `Unable to find a variant (${variantName}) within the system (${systemConf.name}). Please check your Emulsify project config and make sure the project.platform value is correct, or select a system with a variant that is compatible with the platform you are using.`, constants_1.EXIT_ERROR);
70
91
  }
71
92
  try {
72
93
  let checkout = repo.checkout;
73
94
  if (!checkout) {
74
- checkout = await getCachedItemCheckout_1.default('systems', [repo.name]);
95
+ checkout = await (0, getCachedItemCheckout_1.default)('systems', [repo.name]);
75
96
  }
76
- await setEmulsifyConfig_1.default({
97
+ await (0, setEmulsifyConfig_1.default)({
77
98
  system: {
78
99
  repository: repo.repository,
79
100
  checkout,
@@ -85,18 +106,25 @@ async function systemInstall(name, options) {
85
106
  });
86
107
  }
87
108
  catch (e) {
88
- return log_1.default('error', 'Unable to update your Emulsify project configuration.', constants_1.EXIT_ERROR);
109
+ return (0, log_1.default)('error', 'Unable to update your Emulsify project configuration.', constants_1.EXIT_ERROR);
89
110
  }
90
111
  try {
91
112
  const requiredComponents = variantConf.components.filter(({ required }) => required === true);
92
113
  for (const component of requiredComponents) {
93
- await installComponentFromCache_1.default(systemConf, variantConf, component.name, true);
114
+ await (0, installComponentFromCache_1.default)(systemConf, variantConf, component.name, true);
115
+ }
116
+ await (0, installGeneralAssetsFromCache_1.default)(systemConf, variantConf);
117
+ const path = (0, findFileInCurrentPath_1.default)(constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
118
+ const hookPath = path
119
+ ? (0, path_1.join)(path, constants_1.EMULSIFY_PROJECT_HOOK_FOLDER, constants_1.EMULSIFY_PROJECT_HOOK_SYSTEM_INSTALL)
120
+ : undefined;
121
+ if (hookPath && (0, fs_1.existsSync)(hookPath)) {
122
+ await (0, executeScript_1.default)(hookPath);
94
123
  }
95
- await installGeneralAssetsFromCache_1.default(systemConf, variantConf);
96
124
  }
97
125
  catch (e) {
98
- return log_1.default('error', `Unable to install system assets and/or required components: ${ramda_1.default.toString(e)}`, constants_1.EXIT_ERROR);
126
+ return (0, log_1.default)('error', `Unable to install system assets and/or required components: ${ramda_1.default.toString(e)}`, constants_1.EXIT_ERROR);
99
127
  }
100
- return log_1.default('success', `Successfully installed the ${systemConf.name} system using the ${variantConf.platform} variant.`, constants_1.EXIT_ERROR);
128
+ return (0, log_1.default)('success', `Successfully installed the ${systemConf.name} system using the ${variantConf.platform} variant.`, constants_1.EXIT_ERROR);
101
129
  }
102
130
  exports.default = systemInstall;
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const log_1 = __importDefault(require("../lib/log"));
7
7
  const getAvailableSystems_1 = __importDefault(require("../util/system/getAvailableSystems"));
8
8
  async function systemList() {
9
- (await getAvailableSystems_1.default()).map(({ name, repository }) => log_1.default('info', `${name} - ${repository}`));
9
+ (await (0, getAvailableSystems_1.default)()).map(({ name, repository }) => (0, log_1.default)('info', `${name} - ${repository}`));
10
10
  }
11
11
  exports.default = systemList;
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  const commander_1 = require("commander");
8
+ const withProgressBar_1 = __importDefault(require("./handlers/hofs/withProgressBar"));
8
9
  const init_1 = __importDefault(require("./handlers/init"));
9
10
  const systemList_1 = __importDefault(require("./handlers/systemList"));
10
11
  const systemInstall_1 = __importDefault(require("./handlers/systemInstall"));
@@ -20,7 +21,7 @@ commander_1.program
20
21
  name: 'Name of the Emulsify project you are initializing. This should be a proper name, such as "Carmen Sandiego".',
21
22
  path: 'Path to the folder in which you would like to to create your Emulsify project. For example, "./themes" will result in the Emulsify project being placed in ./themes/{name}',
22
23
  })
23
- .action(init_1.default);
24
+ .action((0, withProgressBar_1.default)(init_1.default));
24
25
  const system = commander_1.program
25
26
  .command('system')
26
27
  .description('Parent command that contains sub-commands pertaining to systems');
@@ -48,6 +49,7 @@ component
48
49
  component
49
50
  .command('install [name]')
50
51
  .option('-f --force', 'Use this to overwrite a component that is already installed')
52
+ .option('-a --all', 'Use this to install all available components, rather than specifying a single component to install')
51
53
  .alias('i')
52
54
  .description("Install a component from within the current project's system and variant")
53
55
  .action(componentInstall_1.default);
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CACHE_DIR = exports.UTIL_DIR = exports.EMULSIFY_SYSTEM_CONFIG_FILE = exports.EMULSIFY_PROJECT_HOOK_INIT = exports.EMULSIFY_PROJECT_HOOK_FOLDER = exports.EMULSIFY_PROJECT_CONFIG_FILE = exports.EXIT_ERROR = void 0;
3
+ exports.CACHE_DIR = exports.UTIL_DIR = exports.EMULSIFY_SYSTEM_CONFIG_FILE = exports.EMULSIFY_PROJECT_HOOK_SYSTEM_INSTALL = exports.EMULSIFY_PROJECT_HOOK_INIT = exports.EMULSIFY_PROJECT_HOOK_FOLDER = exports.EMULSIFY_PROJECT_CONFIG_FILE = exports.EXIT_ERROR = void 0;
4
4
  const os_1 = require("os");
5
5
  const path_1 = require("path");
6
6
  exports.EXIT_ERROR = 1;
7
7
  exports.EMULSIFY_PROJECT_CONFIG_FILE = 'project.emulsify.json';
8
8
  exports.EMULSIFY_PROJECT_HOOK_FOLDER = '.cli';
9
9
  exports.EMULSIFY_PROJECT_HOOK_INIT = 'init.js';
10
+ exports.EMULSIFY_PROJECT_HOOK_SYSTEM_INSTALL = 'systemInstall.js';
10
11
  exports.EMULSIFY_SYSTEM_CONFIG_FILE = 'system.emulsify.json';
11
- exports.UTIL_DIR = path_1.join(os_1.homedir(), '.emulsify');
12
- exports.CACHE_DIR = path_1.join(exports.UTIL_DIR, 'cache');
12
+ exports.UTIL_DIR = (0, path_1.join)((0, os_1.homedir)(), '.emulsify');
13
+ exports.CACHE_DIR = (0, path_1.join)(exports.UTIL_DIR, 'cache');
package/dist/lib/log.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const chalk_1 = require("chalk");
7
7
  const ramda_1 = __importDefault(require("ramda"));
8
+ const consola_1 = __importDefault(require("consola"));
8
9
  const logMethodColorMap = {
9
10
  info: chalk_1.cyan,
10
11
  error: chalk_1.red.bold,
@@ -17,10 +18,10 @@ const withColor = (logger) => (method, message) => logger(logMethodColorMap[meth
17
18
  const logMethodEq = (potentialMethod) => (method, _) => potentialMethod === method;
18
19
  function log(method, message, exitCode) {
19
20
  ramda_1.default.cond([
20
- [logMethodEq('error'), withColor(console.error)],
21
- [logMethodEq('info'), withColor(console.info)],
22
- [logMethodEq('warn'), withColor(console.warn)],
23
- [ramda_1.default.T, withColor(console.log)],
21
+ [logMethodEq('error'), withColor(consola_1.default.error)],
22
+ [logMethodEq('info'), withColor(consola_1.default.info)],
23
+ [logMethodEq('warn'), withColor(consola_1.default.warn)],
24
+ [ramda_1.default.T, withColor(consola_1.default.log)],
24
25
  ])(method, message);
25
26
  if (exitCode) {
26
27
  process.exit(exitCode);
@@ -17,6 +17,19 @@
17
17
  "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz",
18
18
  "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw=="
19
19
  },
20
+ "node_modules/@types/node": {
21
+ "version": "14.18.0",
22
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.0.tgz",
23
+ "integrity": "sha512-0GeIl2kmVMXEnx8tg1SlG6Gg8vkqirrW752KqolYo1PHevhhZN3bhJ67qHj+bQaINhX0Ra3TlWwRvMCd9iEfNQ=="
24
+ },
25
+ "node_modules/@types/progress": {
26
+ "version": "2.0.5",
27
+ "resolved": "https://registry.npmjs.org/@types/progress/-/progress-2.0.5.tgz",
28
+ "integrity": "sha512-ZYYVc/kSMkhH9W/4dNK/sLNra3cnkfT2nJyOAIDY+C2u6w72wa0s1aXAezVtbTsnN8HID1uhXCrLwDE2ZXpplg==",
29
+ "dependencies": {
30
+ "@types/node": "*"
31
+ }
32
+ },
20
33
  "node_modules/ajv": {
21
34
  "version": "7.2.4",
22
35
  "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz",
@@ -32,6 +45,37 @@
32
45
  "url": "https://github.com/sponsors/epoberezkin"
33
46
  }
34
47
  },
48
+ "node_modules/ajv-formats": {
49
+ "version": "2.1.1",
50
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
51
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
52
+ "dependencies": {
53
+ "ajv": "^8.0.0"
54
+ },
55
+ "peerDependencies": {
56
+ "ajv": "^8.0.0"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "ajv": {
60
+ "optional": true
61
+ }
62
+ }
63
+ },
64
+ "node_modules/ajv-formats/node_modules/ajv": {
65
+ "version": "8.8.2",
66
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.8.2.tgz",
67
+ "integrity": "sha512-x9VuX+R/jcFj1DHo/fCp99esgGDWiHENrKxaCENuCxpoMCmAt/COCGVDwA7kleEpEzJjDnvh3yGoOuLu0Dtllw==",
68
+ "dependencies": {
69
+ "fast-deep-equal": "^3.1.1",
70
+ "json-schema-traverse": "^1.0.0",
71
+ "require-from-string": "^2.0.2",
72
+ "uri-js": "^4.2.2"
73
+ },
74
+ "funding": {
75
+ "type": "github",
76
+ "url": "https://github.com/sponsors/epoberezkin"
77
+ }
78
+ },
35
79
  "node_modules/ansi-styles": {
36
80
  "version": "4.3.0",
37
81
  "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -93,10 +137,15 @@
93
137
  "node": ">= 10"
94
138
  }
95
139
  },
140
+ "node_modules/consola": {
141
+ "version": "2.15.3",
142
+ "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz",
143
+ "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw=="
144
+ },
96
145
  "node_modules/debug": {
97
- "version": "4.3.2",
98
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
99
- "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
146
+ "version": "4.3.3",
147
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
148
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
100
149
  "dependencies": {
101
150
  "ms": "2.1.2"
102
151
  },
@@ -162,6 +211,14 @@
162
211
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
163
212
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
164
213
  },
214
+ "node_modules/progress": {
215
+ "version": "2.0.3",
216
+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
217
+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
218
+ "engines": {
219
+ "node": ">=0.4.0"
220
+ }
221
+ },
165
222
  "node_modules/punycode": {
166
223
  "version": "2.1.1",
167
224
  "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
@@ -184,13 +241,17 @@
184
241
  }
185
242
  },
186
243
  "node_modules/simple-git": {
187
- "version": "2.45.1",
188
- "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.45.1.tgz",
189
- "integrity": "sha512-NmEoThiLTJxl26WNtZxtJTue18ReTcSrf3so5vJG/O8KY9uMxH+yAhXV/DElBJyOYZrrBbVsH8JOFxgENdc9Xg==",
244
+ "version": "2.48.0",
245
+ "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.48.0.tgz",
246
+ "integrity": "sha512-z4qtrRuaAFJS4PUd0g+xy7aN4y+RvEt/QTJpR184lhJguBA1S/LsVlvE/CM95RsYMOFJG3NGGDjqFCzKU19S/A==",
190
247
  "dependencies": {
191
248
  "@kwsites/file-exists": "^1.1.1",
192
249
  "@kwsites/promise-deferred": "^1.1.1",
193
- "debug": "^4.3.1"
250
+ "debug": "^4.3.2"
251
+ },
252
+ "funding": {
253
+ "type": "github",
254
+ "url": "https://github.com/sponsors/steveukx/"
194
255
  }
195
256
  },
196
257
  "node_modules/supports-color": {