@emulsify/cli 1.3.0 → 1.4.0
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.
- package/README.md +4 -4
- package/dist/handlers/componentInstall.js +15 -15
- package/dist/handlers/componentList.js +11 -11
- package/dist/handlers/init.js +20 -31
- package/dist/handlers/systemInstall.js +46 -18
- package/dist/handlers/systemList.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/constants.js +4 -3
- package/dist/lib/log.js +5 -4
- package/dist/node_modules/.package-lock.json +50 -10
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +4 -0
- package/dist/node_modules/@types/node/async_hooks.d.ts +3 -0
- package/dist/node_modules/@types/node/buffer.d.ts +3 -0
- package/dist/node_modules/@types/node/child_process.d.ts +3 -0
- package/dist/node_modules/@types/node/cluster.d.ts +3 -0
- package/dist/node_modules/@types/node/console.d.ts +4 -0
- package/dist/node_modules/@types/node/constants.d.ts +5 -0
- package/dist/node_modules/@types/node/crypto.d.ts +3 -0
- package/dist/node_modules/@types/node/dgram.d.ts +11 -8
- package/dist/node_modules/@types/node/dns.d.ts +7 -0
- package/dist/node_modules/@types/node/domain.d.ts +3 -0
- package/dist/node_modules/@types/node/events.d.ts +4 -0
- package/dist/node_modules/@types/node/fs/promises.d.ts +4 -1
- package/dist/node_modules/@types/node/fs.d.ts +9 -6
- package/dist/node_modules/@types/node/http.d.ts +5 -1
- package/dist/node_modules/@types/node/http2.d.ts +3 -0
- package/dist/node_modules/@types/node/https.d.ts +3 -0
- package/dist/node_modules/@types/node/index.d.ts +3 -2
- package/dist/node_modules/@types/node/inspector.d.ts +12 -2
- package/dist/node_modules/@types/node/module.d.ts +4 -0
- package/dist/node_modules/@types/node/net.d.ts +3 -0
- package/dist/node_modules/@types/node/os.d.ts +3 -0
- package/dist/node_modules/@types/node/package.json +13 -8
- package/dist/node_modules/@types/node/path.d.ts +4 -0
- package/dist/node_modules/@types/node/perf_hooks.d.ts +3 -0
- package/dist/node_modules/@types/node/process.d.ts +4 -0
- package/dist/node_modules/@types/node/punycode.d.ts +3 -0
- package/dist/node_modules/@types/node/querystring.d.ts +3 -0
- package/dist/node_modules/@types/node/readline.d.ts +4 -0
- package/dist/node_modules/@types/node/repl.d.ts +3 -0
- package/dist/node_modules/@types/node/stream.d.ts +4 -0
- package/dist/node_modules/@types/node/string_decoder.d.ts +3 -0
- package/dist/node_modules/@types/node/timers.d.ts +3 -0
- package/dist/node_modules/@types/node/tls.d.ts +3 -0
- package/dist/node_modules/@types/node/trace_events.d.ts +3 -0
- package/dist/node_modules/@types/node/tty.d.ts +3 -0
- package/dist/node_modules/@types/node/url.d.ts +3 -0
- package/dist/node_modules/@types/node/util.d.ts +10 -1
- package/dist/node_modules/@types/node/v8.d.ts +3 -0
- package/dist/node_modules/@types/node/vm.d.ts +3 -0
- package/dist/node_modules/@types/node/wasi.d.ts +3 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/dist/node_modules/@types/node/zlib.d.ts +3 -0
- package/dist/node_modules/ajv-formats/LICENSE +21 -0
- package/dist/node_modules/ajv-formats/README.md +123 -0
- package/dist/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/dist/node_modules/ajv-formats/dist/formats.js +173 -0
- package/dist/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/dist/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/dist/node_modules/ajv-formats/dist/index.js +37 -0
- package/dist/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/dist/node_modules/ajv-formats/dist/limit.js +69 -0
- package/dist/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/LICENSE +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +192 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +44 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +147 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +123 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +243 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +153 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +178 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +510 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +171 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +614 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +45 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +184 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +83 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +177 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +78 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +72 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +67 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +324 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +27 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +146 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +213 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +573 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +880 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +129 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +93 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +233 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +189 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +124 -0
- package/dist/node_modules/ajv-formats/package.json +74 -0
- package/dist/node_modules/ajv-formats/src/formats.ts +232 -0
- package/dist/node_modules/ajv-formats/src/index.ts +62 -0
- package/dist/node_modules/ajv-formats/src/limit.ts +99 -0
- package/dist/node_modules/consola/CHANGELOG.md +706 -0
- package/dist/node_modules/consola/README.md +288 -0
- package/dist/node_modules/consola/dist/consola.browser.js +1 -0
- package/dist/node_modules/consola/dist/consola.js +1 -0
- package/dist/node_modules/consola/package.json +80 -0
- package/dist/node_modules/consola/src/browser.js +20 -0
- package/dist/node_modules/consola/src/consola.js +327 -0
- package/dist/node_modules/consola/src/index.js +7 -0
- package/dist/node_modules/consola/src/logLevels.js +11 -0
- package/dist/node_modules/consola/src/node.js +36 -0
- package/dist/node_modules/consola/src/reporters/basic.js +72 -0
- package/dist/node_modules/consola/src/reporters/browser.js +54 -0
- package/dist/node_modules/consola/src/reporters/fancy.js +87 -0
- package/dist/node_modules/consola/src/reporters/index.js +5 -0
- package/dist/node_modules/consola/src/reporters/json.js +9 -0
- package/dist/node_modules/consola/src/reporters/winston.js +45 -0
- package/dist/node_modules/consola/src/types.js +50 -0
- package/dist/node_modules/consola/src/utils/chalk.js +37 -0
- package/dist/node_modules/consola/src/utils/date.js +5 -0
- package/dist/node_modules/consola/src/utils/error.js +16 -0
- package/dist/node_modules/consola/src/utils/fancy.js +10 -0
- package/dist/node_modules/consola/src/utils/format.js +30 -0
- package/dist/node_modules/consola/src/utils/global.js +38 -0
- package/dist/node_modules/consola/src/utils/index.js +23 -0
- package/dist/node_modules/consola/src/utils/stream.js +20 -0
- package/dist/node_modules/consola/src/utils/string.js +41 -0
- package/dist/node_modules/consola/types/consola.d.ts +182 -0
- package/dist/node_modules/debug/LICENSE +10 -9
- package/dist/node_modules/debug/README.md +24 -1
- package/dist/node_modules/debug/package.json +6 -6
- package/dist/node_modules/debug/src/common.js +1 -1
- package/dist/node_modules/simple-git/CHANGELOG.md +27 -0
- package/dist/node_modules/simple-git/package.json +6 -2
- package/dist/node_modules/simple-git/readme.md +5 -1
- package/dist/node_modules/simple-git/src/lib/api.d.ts +2 -0
- package/dist/node_modules/simple-git/src/lib/api.js +2 -0
- package/dist/node_modules/simple-git/src/lib/api.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +1 -0
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.d.ts +12 -33
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +2 -22
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js +2 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +1 -1
- package/dist/node_modules/simple-git/src/lib/tasks/grep.d.ts +12 -0
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js +76 -0
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +1 -0
- package/dist/node_modules/simple-git/src/lib/utils/util.d.ts +1 -0
- package/dist/node_modules/simple-git/src/lib/utils/util.js +2 -1
- package/dist/node_modules/simple-git/src/lib/utils/util.js.map +1 -1
- package/dist/node_modules/simple-git/typings/response.d.ts +38 -1
- package/dist/node_modules/simple-git/typings/simple-git.d.ts +7 -0
- package/dist/node_modules/simple-git/typings/types.d.ts +2 -1
- package/dist/package.json +5 -3
- package/dist/schemas/system.json +74 -0
- package/dist/schemas/variant.json +137 -0
- package/dist/scripts/jsonSchemaToTs.js +5 -5
- package/dist/util/cache/cloneIntoCache.js +6 -6
- package/dist/util/cache/copyItemFromCache.js +3 -3
- package/dist/util/cache/getCachedItemCheckout.js +2 -2
- package/dist/util/cache/getCachedItemPath.js +2 -2
- package/dist/util/cache/getJsonFromCachedFile.js +1 -1
- package/dist/util/fs/executeScript.js +1 -1
- package/dist/util/fs/findFileInCurrentPath.js +5 -5
- package/dist/util/platform/getDrupalInfo.js +4 -4
- package/dist/util/platform/getInitSuccessMessageForPlatform.js +35 -0
- package/dist/util/platform/getPlatformInfo.js +1 -1
- package/dist/util/project/getEmulsifyConfig.js +2 -2
- package/dist/util/project/installComponentFromCache.js +4 -4
- package/dist/util/project/installDependencies.js +1 -1
- package/dist/util/project/installGeneralAssetsFromCache.js +3 -3
- package/dist/util/project/setEmulsifyConfig.js +3 -3
- package/package.json +6 -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:
|
|
@@ -13,55 +13,55 @@ const cloneIntoCache_1 = __importDefault(require("../util/cache/cloneIntoCache")
|
|
|
13
13
|
const catchLater_1 = __importDefault(require("../util/catchLater"));
|
|
14
14
|
async function componentInstall(name, { force, all }) {
|
|
15
15
|
var _a;
|
|
16
|
-
const emulsifyConfig = await getEmulsifyConfig_1.default();
|
|
16
|
+
const emulsifyConfig = await (0, getEmulsifyConfig_1.default)();
|
|
17
17
|
if (!emulsifyConfig) {
|
|
18
|
-
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);
|
|
19
19
|
}
|
|
20
20
|
if (!emulsifyConfig.system || !emulsifyConfig.variant) {
|
|
21
|
-
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);
|
|
22
22
|
}
|
|
23
|
-
const systemName = getGitRepoNameFromUrl_1.default(emulsifyConfig.system.repository);
|
|
23
|
+
const systemName = (0, getGitRepoNameFromUrl_1.default)(emulsifyConfig.system.repository);
|
|
24
24
|
if (!systemName) {
|
|
25
|
-
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);
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
|
-
await cloneIntoCache_1.default('systems', [systemName])(emulsifyConfig.system);
|
|
28
|
+
await (0, cloneIntoCache_1.default)('systems', [systemName])(emulsifyConfig.system);
|
|
29
29
|
}
|
|
30
30
|
catch (e) {
|
|
31
|
-
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);
|
|
32
32
|
}
|
|
33
|
-
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);
|
|
34
34
|
if (!systemConf) {
|
|
35
|
-
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);
|
|
36
36
|
}
|
|
37
37
|
const variantName = emulsifyConfig.variant.platform;
|
|
38
38
|
const variantConf = (_a = systemConf.variants) === null || _a === void 0 ? void 0 : _a.find(({ platform }) => platform === variantName);
|
|
39
39
|
if (!variantConf) {
|
|
40
|
-
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);
|
|
41
41
|
}
|
|
42
42
|
if (!name && !all) {
|
|
43
|
-
return log_1.default('error', 'Please specify a component to install, or pass --all to install all available components.');
|
|
43
|
+
return (0, log_1.default)('error', 'Please specify a component to install, or pass --all to install all available components.');
|
|
44
44
|
}
|
|
45
45
|
const components = [];
|
|
46
46
|
if (all) {
|
|
47
47
|
components.push(...variantConf.components.map((component) => [
|
|
48
48
|
component.name,
|
|
49
|
-
catchLater_1.default(installComponentFromCache_1.default(systemConf, variantConf, component.name, true)),
|
|
49
|
+
(0, catchLater_1.default)((0, installComponentFromCache_1.default)(systemConf, variantConf, component.name, true)),
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
53
|
components.push([
|
|
54
54
|
name,
|
|
55
|
-
catchLater_1.default(installComponentFromCache_1.default(systemConf, variantConf, name, force)),
|
|
55
|
+
(0, catchLater_1.default)((0, installComponentFromCache_1.default)(systemConf, variantConf, name, force)),
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
58
|
for (const [cname, promise] of components) {
|
|
59
59
|
try {
|
|
60
60
|
await promise;
|
|
61
|
-
log_1.default('success', `Success! The ${cname} component has been added to your project.`);
|
|
61
|
+
(0, log_1.default)('success', `Success! The ${cname} component has been added to your project.`);
|
|
62
62
|
}
|
|
63
63
|
catch (e) {
|
|
64
|
-
log_1.default('error', `Unable to install ${cname}: ${e.toString()}`);
|
|
64
|
+
(0, log_1.default)('error', `Unable to install ${cname}: ${e.toString()}`);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -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;
|
package/dist/handlers/init.js
CHANGED
|
@@ -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,34 +14,35 @@ 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();
|
|
20
|
+
const git = (0, simple_git_1.default)();
|
|
21
21
|
function init(progress) {
|
|
22
22
|
return async (name, targetDirectory, options) => {
|
|
23
|
-
const { name: autoPlatformName, emulsifyParentDirectory } = (await getPlatformInfo_1.default()) || {};
|
|
23
|
+
const { name: autoPlatformName, emulsifyParentDirectory } = (await (0, getPlatformInfo_1.default)()) || {};
|
|
24
24
|
const platformName = (options === null || options === void 0 ? void 0 : options.platform) || autoPlatformName;
|
|
25
25
|
if (!platformName) {
|
|
26
|
-
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
|
+
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
27
|
}
|
|
28
28
|
progress.tick(10, {
|
|
29
29
|
message: `using starter for ${platformName}, validating config`,
|
|
30
30
|
});
|
|
31
|
-
const machineName = (options === null || options === void 0 ? void 0 : options.machineName) || strToMachineName_1.default(name);
|
|
32
|
-
const starters = getAvailableStarters_1.default();
|
|
31
|
+
const machineName = (options === null || options === void 0 ? void 0 : options.machineName) || (0, strToMachineName_1.default)(name);
|
|
32
|
+
const starters = (0, getAvailableStarters_1.default)();
|
|
33
33
|
const starter = starters.find(ramda_1.default.propEq('platform')(platformName));
|
|
34
34
|
const targetParent = targetDirectory || emulsifyParentDirectory;
|
|
35
|
-
const target = targetParent ? path_1.join(targetParent, machineName) : undefined;
|
|
35
|
+
const target = targetParent ? (0, path_1.join)(targetParent, machineName) : undefined;
|
|
36
36
|
const repository = (options === null || options === void 0 ? void 0 : options.starter) || (starter === null || starter === void 0 ? void 0 : starter.repository);
|
|
37
37
|
const checkout = (options === null || options === void 0 ? void 0 : options.checkout) || (starter === null || starter === void 0 ? void 0 : starter.checkout);
|
|
38
38
|
if (!target) {
|
|
39
|
-
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);
|
|
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
40
|
}
|
|
41
41
|
if (!repository) {
|
|
42
|
-
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);
|
|
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
43
|
}
|
|
44
|
-
if (fs_1.existsSync(target)) {
|
|
45
|
-
return log_1.default('error', `The intended target is already occupied: ${target}`, constants_2.EXIT_ERROR);
|
|
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
46
|
}
|
|
47
47
|
try {
|
|
48
48
|
progress.tick(10, { message: 'validation complete, cloning starter' });
|
|
@@ -51,8 +51,7 @@ function init(progress) {
|
|
|
51
51
|
'--branch': checkout,
|
|
52
52
|
}
|
|
53
53
|
: {});
|
|
54
|
-
await
|
|
55
|
-
await writeToJsonFile_1.default(path_1.join(target, constants_1.EMULSIFY_PROJECT_CONFIG_FILE), {
|
|
54
|
+
await (0, writeToJsonFile_1.default)((0, path_1.join)(target, constants_1.EMULSIFY_PROJECT_CONFIG_FILE), {
|
|
56
55
|
project: {
|
|
57
56
|
platform: platformName,
|
|
58
57
|
name,
|
|
@@ -63,33 +62,23 @@ function init(progress) {
|
|
|
63
62
|
progress.tick(30, {
|
|
64
63
|
message: 'starter cloned, installing dependencies (this will take a moment)',
|
|
65
64
|
});
|
|
66
|
-
await installDependencies_1.default(target);
|
|
65
|
+
await (0, installDependencies_1.default)(target);
|
|
67
66
|
progress.tick(40, {
|
|
68
67
|
message: 'dependencies installed, executing init script',
|
|
69
68
|
});
|
|
70
|
-
const initPath = path_1.join(target, constants_1.EMULSIFY_PROJECT_HOOK_FOLDER, constants_1.EMULSIFY_PROJECT_HOOK_INIT);
|
|
71
|
-
if (fs_1.existsSync(initPath)) {
|
|
72
|
-
await executeScript_1.default(initPath);
|
|
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);
|
|
73
72
|
}
|
|
73
|
+
await fs_1.promises.rmdir((0, path_1.join)(target, '.git'), { recursive: true });
|
|
74
74
|
progress.tick(10, {
|
|
75
75
|
message: 'init script executed, initialization complete',
|
|
76
76
|
});
|
|
77
|
-
log_1.default('success', `Created an Emulsify project in ${target}.`);
|
|
78
|
-
|
|
79
|
-
log_1.default('verbose', `
|
|
80
|
-
- composer require drupal/components
|
|
81
|
-
- composer require drupal/emulsify_twig
|
|
82
|
-
- drush en components emulsify_twig -y
|
|
83
|
-
`);
|
|
84
|
-
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.`);
|
|
85
|
-
log_1.default('verbose', `
|
|
86
|
-
${chalk_1.cyan('List systems')}: emulsify system list
|
|
87
|
-
${chalk_1.cyan('Install a system')}: emulsify system install "system-name"
|
|
88
|
-
${chalk_1.cyan('Install default system')}: emulsify system install compound
|
|
89
|
-
`);
|
|
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));
|
|
90
79
|
}
|
|
91
80
|
catch (e) {
|
|
92
|
-
log_1.default('error', `Unable to pull down ${repository}: ${String(e)}`, constants_2.EXIT_ERROR);
|
|
81
|
+
(0, log_1.default)('error', `Unable to pull down ${repository}: ${String(e)}`, constants_2.EXIT_ERROR);
|
|
93
82
|
}
|
|
94
83
|
};
|
|
95
84
|
}
|
|
@@ -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
|
@@ -21,7 +21,7 @@ commander_1.program
|
|
|
21
21
|
name: 'Name of the Emulsify project you are initializing. This should be a proper name, such as "Carmen Sandiego".',
|
|
22
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}',
|
|
23
23
|
})
|
|
24
|
-
.action(withProgressBar_1.default(init_1.default));
|
|
24
|
+
.action((0, withProgressBar_1.default)(init_1.default));
|
|
25
25
|
const system = commander_1.program
|
|
26
26
|
.command('system')
|
|
27
27
|
.description('Parent command that contains sub-commands pertaining to systems');
|
package/dist/lib/constants.js
CHANGED
|
@@ -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(
|
|
21
|
-
[logMethodEq('info'), withColor(
|
|
22
|
-
[logMethodEq('warn'), withColor(
|
|
23
|
-
[ramda_1.default.T, withColor(
|
|
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);
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw=="
|
|
19
19
|
},
|
|
20
20
|
"node_modules/@types/node": {
|
|
21
|
-
"version": "14.
|
|
22
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.
|
|
23
|
-
"integrity": "sha512-
|
|
21
|
+
"version": "14.18.0",
|
|
22
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.0.tgz",
|
|
23
|
+
"integrity": "sha512-0GeIl2kmVMXEnx8tg1SlG6Gg8vkqirrW752KqolYo1PHevhhZN3bhJ67qHj+bQaINhX0Ra3TlWwRvMCd9iEfNQ=="
|
|
24
24
|
},
|
|
25
25
|
"node_modules/@types/progress": {
|
|
26
26
|
"version": "2.0.5",
|
|
@@ -45,6 +45,37 @@
|
|
|
45
45
|
"url": "https://github.com/sponsors/epoberezkin"
|
|
46
46
|
}
|
|
47
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
|
+
},
|
|
48
79
|
"node_modules/ansi-styles": {
|
|
49
80
|
"version": "4.3.0",
|
|
50
81
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
@@ -106,10 +137,15 @@
|
|
|
106
137
|
"node": ">= 10"
|
|
107
138
|
}
|
|
108
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
|
+
},
|
|
109
145
|
"node_modules/debug": {
|
|
110
|
-
"version": "4.3.
|
|
111
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
112
|
-
"integrity": "sha512
|
|
146
|
+
"version": "4.3.3",
|
|
147
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
|
|
148
|
+
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
|
113
149
|
"dependencies": {
|
|
114
150
|
"ms": "2.1.2"
|
|
115
151
|
},
|
|
@@ -205,13 +241,17 @@
|
|
|
205
241
|
}
|
|
206
242
|
},
|
|
207
243
|
"node_modules/simple-git": {
|
|
208
|
-
"version": "2.
|
|
209
|
-
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.
|
|
210
|
-
"integrity": "sha512-
|
|
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==",
|
|
211
247
|
"dependencies": {
|
|
212
248
|
"@kwsites/file-exists": "^1.1.1",
|
|
213
249
|
"@kwsites/promise-deferred": "^1.1.1",
|
|
214
|
-
"debug": "^4.3.
|
|
250
|
+
"debug": "^4.3.2"
|
|
251
|
+
},
|
|
252
|
+
"funding": {
|
|
253
|
+
"type": "github",
|
|
254
|
+
"url": "https://github.com/sponsors/steveukx/"
|
|
215
255
|
}
|
|
216
256
|
},
|
|
217
257
|
"node_modules/supports-color": {
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 03 Dec 2021 12:31:02 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [Bond](https://github.com/bondz), and [Linus Unnebäck](https://github.com/LinusU).
|
|
@@ -509,3 +509,6 @@ declare module 'child_process' {
|
|
|
509
509
|
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
510
510
|
function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
511
511
|
}
|
|
512
|
+
declare module 'node:child_process' {
|
|
513
|
+
export * from 'child_process';
|
|
514
|
+
}
|