@maizzle/framework 6.0.0-rc.1 → 6.0.0-rc.11
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/bin/maizzle.mjs +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +32 -0
- package/dist/build.mjs +6 -3
- package/dist/build.mjs.map +1 -1
- package/dist/components/Body.vue +111 -0
- package/dist/components/Button.vue +68 -14
- package/dist/components/CodeBlock.vue +68 -0
- package/dist/components/CodeInline.vue +49 -0
- package/dist/components/Column.vue +78 -0
- package/dist/components/Container.vue +53 -0
- package/dist/components/Divider.vue +28 -0
- package/dist/components/Head.vue +30 -0
- package/dist/components/Heading.vue +28 -0
- package/dist/components/Html.vue +104 -0
- package/dist/components/Img.vue +70 -0
- package/dist/components/Layout.vue +93 -0
- package/dist/components/Link.vue +26 -0
- package/dist/components/Markdown.vue +89 -0
- package/dist/components/Outlook.vue +36 -0
- package/dist/components/Overlap.vue +84 -0
- package/dist/components/Preheader.vue +20 -0
- package/dist/components/Row.vue +91 -0
- package/dist/components/Section.vue +83 -0
- package/dist/components/Spacer.vue +50 -7
- package/dist/components/Text.vue +29 -0
- package/dist/components/Vml.vue +165 -13
- package/dist/composables/renderContext.d.mts +5 -0
- package/dist/composables/renderContext.d.mts.map +1 -1
- package/dist/composables/renderContext.mjs.map +1 -1
- package/dist/composables/usePreheader.d.mts +24 -0
- package/dist/composables/usePreheader.d.mts.map +1 -0
- package/dist/composables/usePreheader.mjs +29 -0
- package/dist/composables/usePreheader.mjs.map +1 -0
- package/dist/config/defaults.mjs +1 -3
- package/dist/config/defaults.mjs.map +1 -1
- package/dist/config/index.mjs +7 -0
- package/dist/config/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.mjs +3 -1
- package/dist/node_modules/picomatch/index.mjs +13 -0
- package/dist/node_modules/picomatch/index.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/constants.mjs +174 -0
- package/dist/node_modules/picomatch/lib/constants.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/parse.mjs +1067 -0
- package/dist/node_modules/picomatch/lib/parse.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/picomatch.mjs +304 -0
- package/dist/node_modules/picomatch/lib/picomatch.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/scan.mjs +296 -0
- package/dist/node_modules/picomatch/lib/scan.mjs.map +1 -0
- package/dist/node_modules/picomatch/lib/utils.mjs +53 -0
- package/dist/node_modules/picomatch/lib/utils.mjs.map +1 -0
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +24 -7
- package/dist/plugin.mjs.map +1 -1
- package/dist/plugins/postcss/resolveProps.d.mts +8 -0
- package/dist/plugins/postcss/resolveProps.d.mts.map +1 -0
- package/dist/plugins/postcss/resolveProps.mjs +144 -0
- package/dist/plugins/postcss/resolveProps.mjs.map +1 -0
- package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.mjs +46 -13
- package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
- package/dist/render/createRenderer.d.mts +8 -3
- package/dist/render/createRenderer.d.mts.map +1 -1
- package/dist/render/createRenderer.mjs +146 -10
- package/dist/render/createRenderer.mjs.map +1 -1
- package/dist/render/index.mjs +6 -3
- package/dist/render/index.mjs.map +1 -1
- package/dist/serve.d.mts.map +1 -1
- package/dist/serve.mjs +157 -63
- package/dist/serve.mjs.map +1 -1
- package/dist/server/compatibility.d.mts +1 -2
- package/dist/server/compatibility.d.mts.map +1 -1
- package/dist/server/compatibility.mjs +30 -16
- package/dist/server/compatibility.mjs.map +1 -1
- package/dist/server/email.d.mts +17 -0
- package/dist/server/email.d.mts.map +1 -0
- package/dist/server/email.mjs +41 -0
- package/dist/server/email.mjs.map +1 -0
- package/dist/server/linter.d.mts +1 -2
- package/dist/server/linter.d.mts.map +1 -1
- package/dist/server/linter.mjs +60 -71
- package/dist/server/linter.mjs.map +1 -1
- package/dist/server/ui/App.vue +206 -70
- package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
- package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
- package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
- package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
- package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
- package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
- package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
- package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
- package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
- package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
- package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
- package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
- package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
- package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
- package/dist/server/ui/components/ui/toggle/index.ts +3 -3
- package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
- package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
- package/dist/server/ui/main.css +20 -20
- package/dist/server/ui/pages/Home.vue +12 -5
- package/dist/server/ui/pages/Preview.vue +506 -216
- package/dist/transformers/entities.d.mts.map +1 -1
- package/dist/transformers/entities.mjs +3 -0
- package/dist/transformers/entities.mjs.map +1 -1
- package/dist/transformers/filters/defaults.d.mts +6 -0
- package/dist/transformers/filters/defaults.d.mts.map +1 -0
- package/dist/transformers/filters/defaults.mjs +78 -0
- package/dist/transformers/filters/defaults.mjs.map +1 -0
- package/dist/transformers/filters/index.d.mts +22 -0
- package/dist/transformers/filters/index.d.mts.map +1 -0
- package/dist/transformers/filters/index.mjs +67 -0
- package/dist/transformers/filters/index.mjs.map +1 -0
- package/dist/transformers/index.d.mts +11 -9
- package/dist/transformers/index.d.mts.map +1 -1
- package/dist/transformers/index.mjs +19 -11
- package/dist/transformers/index.mjs.map +1 -1
- package/dist/transformers/inlineCSS.d.mts +1 -14
- package/dist/transformers/inlineCSS.d.mts.map +1 -1
- package/dist/transformers/inlineCSS.mjs +32 -36
- package/dist/transformers/inlineCSS.mjs.map +1 -1
- package/dist/transformers/purgeCSS.d.mts.map +1 -1
- package/dist/transformers/purgeCSS.mjs +67 -1
- package/dist/transformers/purgeCSS.mjs.map +1 -1
- package/dist/transformers/sixHex.d.mts +16 -0
- package/dist/transformers/sixHex.d.mts.map +1 -0
- package/dist/transformers/sixHex.mjs +30 -0
- package/dist/transformers/sixHex.mjs.map +1 -0
- package/dist/transformers/tailwindcss.d.mts +6 -2
- package/dist/transformers/tailwindcss.d.mts.map +1 -1
- package/dist/transformers/tailwindcss.mjs +54 -30
- package/dist/transformers/tailwindcss.mjs.map +1 -1
- package/dist/types/config.d.mts +436 -23
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/utils/ast/serializer.d.mts +3 -2
- package/dist/utils/ast/serializer.d.mts.map +1 -1
- package/dist/utils/ast/serializer.mjs +24 -0
- package/dist/utils/ast/serializer.mjs.map +1 -1
- package/dist/utils/detect.d.mts +5 -0
- package/dist/utils/detect.d.mts.map +1 -0
- package/dist/utils/detect.mjs +11 -0
- package/dist/utils/detect.mjs.map +1 -0
- package/node_modules/@clack/core/CHANGELOG.md +87 -4
- package/node_modules/@clack/core/README.md +1 -1
- package/node_modules/@clack/core/dist/index.d.mts +186 -48
- package/node_modules/@clack/core/dist/index.mjs +10 -14
- package/node_modules/@clack/core/dist/index.mjs.map +1 -1
- package/node_modules/@clack/core/package.json +7 -9
- package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
- package/node_modules/@clack/prompts/README.md +66 -3
- package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
- package/node_modules/@clack/prompts/dist/index.mjs +134 -84
- package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
- package/node_modules/@clack/prompts/package.json +14 -10
- package/node_modules/citty/LICENSE +0 -15
- package/node_modules/citty/README.md +166 -69
- package/node_modules/citty/dist/index.d.mts +88 -56
- package/node_modules/citty/dist/index.mjs +399 -437
- package/node_modules/citty/package.json +28 -35
- package/node_modules/giget/README.md +59 -11
- package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
- package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
- package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
- package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
- package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
- package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
- package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
- package/node_modules/giget/dist/cli.d.mts +1 -0
- package/node_modules/giget/dist/cli.mjs +89 -111
- package/node_modules/giget/dist/index.d.mts +46 -35
- package/node_modules/giget/dist/index.mjs +2 -22
- package/node_modules/giget/package.json +32 -45
- package/node_modules/maizzle/README.md +140 -0
- package/node_modules/maizzle/bin/maizzle.mjs +5 -0
- package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
- package/node_modules/maizzle/dist/commands/new.mjs +253 -0
- package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
- package/node_modules/maizzle/dist/index.mjs +44 -0
- package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
- package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
- package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
- package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
- package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
- package/node_modules/{@maizzle/cli → maizzle}/package.json +14 -12
- package/node_modules/tinyexec/README.md +49 -3
- package/node_modules/tinyexec/dist/main.d.mts +25 -14
- package/node_modules/tinyexec/dist/main.mjs +148 -100
- package/node_modules/tinyexec/package.json +9 -8
- package/package.json +17 -13
- package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
- package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
- package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
- package/dist/server/ui/components/ui/resizable/index.ts +0 -3
- package/node_modules/@clack/core/dist/index.cjs +0 -15
- package/node_modules/@clack/core/dist/index.cjs.map +0 -1
- package/node_modules/@clack/core/dist/index.d.cts +0 -211
- package/node_modules/@clack/core/dist/index.d.ts +0 -211
- package/node_modules/@clack/prompts/dist/index.cjs +0 -87
- package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
- package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
- package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
- package/node_modules/@maizzle/cli/README.md +0 -58
- package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
- package/node_modules/citty/dist/index.cjs +0 -475
- package/node_modules/citty/dist/index.d.cts +0 -80
- package/node_modules/citty/dist/index.d.ts +0 -80
- package/node_modules/consola/LICENSE +0 -47
- package/node_modules/consola/README.md +0 -352
- package/node_modules/consola/basic.d.ts +0 -1
- package/node_modules/consola/browser.d.ts +0 -1
- package/node_modules/consola/core.d.ts +0 -1
- package/node_modules/consola/dist/basic.cjs +0 -32
- package/node_modules/consola/dist/basic.d.cts +0 -23
- package/node_modules/consola/dist/basic.d.mts +0 -21
- package/node_modules/consola/dist/basic.d.ts +0 -23
- package/node_modules/consola/dist/basic.mjs +0 -24
- package/node_modules/consola/dist/browser.cjs +0 -84
- package/node_modules/consola/dist/browser.d.cts +0 -23
- package/node_modules/consola/dist/browser.d.mts +0 -21
- package/node_modules/consola/dist/browser.d.ts +0 -23
- package/node_modules/consola/dist/browser.mjs +0 -76
- package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
- package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
- package/node_modules/consola/dist/core.cjs +0 -517
- package/node_modules/consola/dist/core.d.cts +0 -459
- package/node_modules/consola/dist/core.d.mts +0 -459
- package/node_modules/consola/dist/core.d.ts +0 -459
- package/node_modules/consola/dist/core.mjs +0 -512
- package/node_modules/consola/dist/index.cjs +0 -663
- package/node_modules/consola/dist/index.d.cts +0 -24
- package/node_modules/consola/dist/index.d.mts +0 -22
- package/node_modules/consola/dist/index.d.ts +0 -24
- package/node_modules/consola/dist/index.mjs +0 -651
- package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
- package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
- package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
- package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
- package/node_modules/consola/dist/utils.cjs +0 -64
- package/node_modules/consola/dist/utils.d.cts +0 -286
- package/node_modules/consola/dist/utils.d.mts +0 -286
- package/node_modules/consola/dist/utils.d.ts +0 -286
- package/node_modules/consola/dist/utils.mjs +0 -54
- package/node_modules/consola/lib/index.cjs +0 -10
- package/node_modules/consola/package.json +0 -136
- package/node_modules/consola/utils.d.ts +0 -1
- package/node_modules/create-maizzle/README.md +0 -86
- package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
- package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
- package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
- package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
- package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
- package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
- package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
- package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
- package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
- package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
- package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
- package/node_modules/create-maizzle/package.json +0 -47
- package/node_modules/create-maizzle/src/index.js +0 -242
- package/node_modules/defu/LICENSE +0 -21
- package/node_modules/defu/README.md +0 -171
- package/node_modules/defu/dist/defu.cjs +0 -77
- package/node_modules/defu/dist/defu.d.cts +0 -31
- package/node_modules/defu/dist/defu.d.mts +0 -29
- package/node_modules/defu/dist/defu.d.ts +0 -31
- package/node_modules/defu/dist/defu.mjs +0 -69
- package/node_modules/defu/lib/defu.cjs +0 -10
- package/node_modules/defu/lib/defu.d.cts +0 -12
- package/node_modules/defu/package.json +0 -48
- package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
- package/node_modules/node-fetch-native/LICENSE +0 -114
- package/node_modules/node-fetch-native/README.md +0 -225
- package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
- package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
- package/node_modules/node-fetch-native/dist/index.cjs +0 -1
- package/node_modules/node-fetch-native/dist/index.mjs +0 -1
- package/node_modules/node-fetch-native/dist/native.cjs +0 -1
- package/node_modules/node-fetch-native/dist/native.mjs +0 -1
- package/node_modules/node-fetch-native/dist/node.cjs +0 -19
- package/node_modules/node-fetch-native/dist/node.mjs +0 -19
- package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
- package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
- package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
- package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
- package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
- package/node_modules/node-fetch-native/index.d.ts +0 -1
- package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
- package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
- package/node_modules/node-fetch-native/lib/index.cjs +0 -11
- package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
- package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
- package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
- package/node_modules/node-fetch-native/lib/native.cjs +0 -11
- package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
- package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
- package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
- package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
- package/node_modules/node-fetch-native/node.d.ts +0 -1
- package/node_modules/node-fetch-native/package.json +0 -138
- package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
- package/node_modules/node-fetch-native/proxy.d.ts +0 -1
- package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
- package/node_modules/nypm/node_modules/citty/README.md +0 -231
- package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
- package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
- package/node_modules/nypm/node_modules/citty/package.json +0 -42
- /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
- /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
- /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
- /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
export { ClackSettings, isCancel, updateSettings } from '@clack/core';
|
|
2
|
-
|
|
3
|
-
interface TextOptions {
|
|
4
|
-
message: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
initialValue?: string;
|
|
8
|
-
validate?: (value: string) => string | Error | undefined;
|
|
9
|
-
}
|
|
10
|
-
declare const text: (opts: TextOptions) => Promise<string | symbol>;
|
|
11
|
-
interface PasswordOptions {
|
|
12
|
-
message: string;
|
|
13
|
-
mask?: string;
|
|
14
|
-
validate?: (value: string) => string | Error | undefined;
|
|
15
|
-
}
|
|
16
|
-
declare const password: (opts: PasswordOptions) => Promise<string | symbol>;
|
|
17
|
-
interface ConfirmOptions {
|
|
18
|
-
message: string;
|
|
19
|
-
active?: string;
|
|
20
|
-
inactive?: string;
|
|
21
|
-
initialValue?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare const confirm: (opts: ConfirmOptions) => Promise<boolean | symbol>;
|
|
24
|
-
type Primitive = Readonly<string | boolean | number>;
|
|
25
|
-
type Option<Value> = Value extends Primitive ? {
|
|
26
|
-
/**
|
|
27
|
-
* Internal data for this option.
|
|
28
|
-
*/
|
|
29
|
-
value: Value;
|
|
30
|
-
/**
|
|
31
|
-
* The optional, user-facing text for this option.
|
|
32
|
-
*
|
|
33
|
-
* By default, the `value` is converted to a string.
|
|
34
|
-
*/
|
|
35
|
-
label?: string;
|
|
36
|
-
/**
|
|
37
|
-
* An optional hint to display to the user when
|
|
38
|
-
* this option might be selected.
|
|
39
|
-
*
|
|
40
|
-
* By default, no `hint` is displayed.
|
|
41
|
-
*/
|
|
42
|
-
hint?: string;
|
|
43
|
-
} : {
|
|
44
|
-
/**
|
|
45
|
-
* Internal data for this option.
|
|
46
|
-
*/
|
|
47
|
-
value: Value;
|
|
48
|
-
/**
|
|
49
|
-
* Required. The user-facing text for this option.
|
|
50
|
-
*/
|
|
51
|
-
label: string;
|
|
52
|
-
/**
|
|
53
|
-
* An optional hint to display to the user when
|
|
54
|
-
* this option might be selected.
|
|
55
|
-
*
|
|
56
|
-
* By default, no `hint` is displayed.
|
|
57
|
-
*/
|
|
58
|
-
hint?: string;
|
|
59
|
-
};
|
|
60
|
-
interface SelectOptions<Value> {
|
|
61
|
-
message: string;
|
|
62
|
-
options: Option<Value>[];
|
|
63
|
-
initialValue?: Value;
|
|
64
|
-
maxItems?: number;
|
|
65
|
-
}
|
|
66
|
-
declare const select: <Value>(opts: SelectOptions<Value>) => Promise<symbol | Value>;
|
|
67
|
-
declare const selectKey: <Value extends string>(opts: SelectOptions<Value>) => Promise<symbol | Value>;
|
|
68
|
-
interface MultiSelectOptions<Value> {
|
|
69
|
-
message: string;
|
|
70
|
-
options: Option<Value>[];
|
|
71
|
-
initialValues?: Value[];
|
|
72
|
-
maxItems?: number;
|
|
73
|
-
required?: boolean;
|
|
74
|
-
cursorAt?: Value;
|
|
75
|
-
}
|
|
76
|
-
declare const multiselect: <Value>(opts: MultiSelectOptions<Value>) => Promise<symbol | Value[]>;
|
|
77
|
-
interface GroupMultiSelectOptions<Value> {
|
|
78
|
-
message: string;
|
|
79
|
-
options: Record<string, Option<Value>[]>;
|
|
80
|
-
initialValues?: Value[];
|
|
81
|
-
required?: boolean;
|
|
82
|
-
cursorAt?: Value;
|
|
83
|
-
selectableGroups?: boolean;
|
|
84
|
-
}
|
|
85
|
-
declare const groupMultiselect: <Value>(opts: GroupMultiSelectOptions<Value>) => Promise<symbol | Value[]>;
|
|
86
|
-
declare const note: (message?: string, title?: string) => void;
|
|
87
|
-
declare const cancel: (message?: string) => void;
|
|
88
|
-
declare const intro: (title?: string) => void;
|
|
89
|
-
declare const outro: (message?: string) => void;
|
|
90
|
-
type LogMessageOptions = {
|
|
91
|
-
symbol?: string;
|
|
92
|
-
};
|
|
93
|
-
declare const log: {
|
|
94
|
-
message: (message?: string, { symbol }?: LogMessageOptions) => void;
|
|
95
|
-
info: (message: string) => void;
|
|
96
|
-
success: (message: string) => void;
|
|
97
|
-
step: (message: string) => void;
|
|
98
|
-
warn: (message: string) => void;
|
|
99
|
-
/** alias for `log.warn()`. */
|
|
100
|
-
warning: (message: string) => void;
|
|
101
|
-
error: (message: string) => void;
|
|
102
|
-
};
|
|
103
|
-
declare const stream: {
|
|
104
|
-
message: (iterable: Iterable<string> | AsyncIterable<string>, { symbol }?: LogMessageOptions) => Promise<void>;
|
|
105
|
-
info: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
106
|
-
success: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
107
|
-
step: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
108
|
-
warn: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
109
|
-
/** alias for `log.warn()`. */
|
|
110
|
-
warning: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
111
|
-
error: (iterable: Iterable<string> | AsyncIterable<string>) => Promise<void>;
|
|
112
|
-
};
|
|
113
|
-
interface SpinnerOptions {
|
|
114
|
-
indicator?: 'dots' | 'timer';
|
|
115
|
-
}
|
|
116
|
-
declare const spinner: ({ indicator }?: SpinnerOptions) => {
|
|
117
|
-
start: (msg?: string) => void;
|
|
118
|
-
stop: (msg?: string, code?: number) => void;
|
|
119
|
-
message: (msg?: string) => void;
|
|
120
|
-
};
|
|
121
|
-
type PromptGroupAwaitedReturn<T> = {
|
|
122
|
-
[P in keyof T]: Exclude<Awaited<T[P]>, symbol>;
|
|
123
|
-
};
|
|
124
|
-
interface PromptGroupOptions<T> {
|
|
125
|
-
/**
|
|
126
|
-
* Control how the group can be canceled
|
|
127
|
-
* if one of the prompts is canceled.
|
|
128
|
-
*/
|
|
129
|
-
onCancel?: (opts: {
|
|
130
|
-
results: Prettify<Partial<PromptGroupAwaitedReturn<T>>>;
|
|
131
|
-
}) => void;
|
|
132
|
-
}
|
|
133
|
-
type Prettify<T> = {
|
|
134
|
-
[P in keyof T]: T[P];
|
|
135
|
-
} & {};
|
|
136
|
-
type PromptGroup<T> = {
|
|
137
|
-
[P in keyof T]: (opts: {
|
|
138
|
-
results: Prettify<Partial<PromptGroupAwaitedReturn<Omit<T, P>>>>;
|
|
139
|
-
}) => undefined | Promise<T[P] | undefined>;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Define a group of prompts to be displayed
|
|
143
|
-
* and return a results of objects within the group
|
|
144
|
-
*/
|
|
145
|
-
declare const group: <T>(prompts: PromptGroup<T>, opts?: PromptGroupOptions<T> | undefined) => Promise<{ [P in keyof PromptGroupAwaitedReturn<T>]: PromptGroupAwaitedReturn<T>[P]; }>;
|
|
146
|
-
type Task = {
|
|
147
|
-
/**
|
|
148
|
-
* Task title
|
|
149
|
-
*/
|
|
150
|
-
title: string;
|
|
151
|
-
/**
|
|
152
|
-
* Task function
|
|
153
|
-
*/
|
|
154
|
-
task: (message: (string: string) => void) => string | Promise<string> | void | Promise<void>;
|
|
155
|
-
/**
|
|
156
|
-
* If enabled === false the task will be skipped
|
|
157
|
-
*/
|
|
158
|
-
enabled?: boolean;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Define a group of tasks to be executed
|
|
162
|
-
*/
|
|
163
|
-
declare const tasks: (tasks: Task[]) => Promise<void>;
|
|
164
|
-
|
|
165
|
-
export { type ConfirmOptions, type GroupMultiSelectOptions, type LogMessageOptions, type MultiSelectOptions, type Option, type PasswordOptions, type PromptGroup, type PromptGroupAwaitedReturn, type PromptGroupOptions, type SelectOptions, type SpinnerOptions, type Task, type TextOptions, cancel, confirm, group, groupMultiselect, intro, log, multiselect, note, outro, password, select, selectKey, spinner, stream, tasks, text };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<p>
|
|
3
|
-
<a href="https://maizzle.com" target="_blank">
|
|
4
|
-
<picture>
|
|
5
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/maizzle/cli/HEAD/.github/cli-mark-dark.svg">
|
|
6
|
-
<img alt="Maizzle CLI" src="https://raw.githubusercontent.com/maizzle/cli/HEAD/.github/cli-mark-light.svg" width="300" height="225" style="max-width: 100%;">
|
|
7
|
-
</picture>
|
|
8
|
-
</a>
|
|
9
|
-
</p>
|
|
10
|
-
<p>The CLI tool for Maizzle</p>
|
|
11
|
-
<div>
|
|
12
|
-
|
|
13
|
-
[![Version][npm-version-shield]][npm]
|
|
14
|
-
[![Build][github-ci-shield]][github-ci]
|
|
15
|
-
[![Downloads][npm-stats-shield]][npm-stats]
|
|
16
|
-
[![License][license-shield]][license]
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
> **Note:** This repository contains the code for Maizzle's CLI tool. If you want to build HTML emails using Maizzle, visit the [Starter repository](https://github.com/maizzle/maizzle).
|
|
22
|
-
|
|
23
|
-
## Installation
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm install -g @maizzle/cli
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
Create a new project using the interactive prompt:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
maizzle new
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Start a local development server by running the `serve` command in the project directory:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
maizzle serve
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Build for production:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
maizzle build
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Documentation is available at https://maizzle.com
|
|
50
|
-
|
|
51
|
-
[npm]: https://www.npmjs.com/package/@maizzle/cli
|
|
52
|
-
[npm-stats]: https://npm-stat.com/charts.html?package=%40maizzle%2Fcli&from=2019-03-27
|
|
53
|
-
[npm-version-shield]: https://img.shields.io/npm/v/@maizzle/cli.svg
|
|
54
|
-
[npm-stats-shield]: https://img.shields.io/npm/dt/@maizzle/cli.svg?color=4f46e5
|
|
55
|
-
[github-ci]: https://github.com/maizzle/cli/actions
|
|
56
|
-
[github-ci-shield]: https://github.com/maizzle/cli/actions/workflows/nodejs.yml/badge.svg
|
|
57
|
-
[license]: ./LICENSE
|
|
58
|
-
[license-shield]: https://img.shields.io/npm/l/@maizzle/cli.svg?color=0e9f6e
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import makeConfig from "./commands/make/config.mjs";
|
|
2
|
-
import makeLayout from "./commands/make/layout.mjs";
|
|
3
|
-
import makeTemplate from "./commands/make/template.mjs";
|
|
4
|
-
import makeComponent from "./commands/make/component.mjs";
|
|
5
|
-
import { Command } from "commander";
|
|
6
|
-
import { main } from "create-maizzle";
|
|
7
|
-
//#region src/index.ts
|
|
8
|
-
async function bootstrap(framework) {
|
|
9
|
-
const program = new Command();
|
|
10
|
-
program.name("maizzle").description("Maizzle CLI").version("3.0.0");
|
|
11
|
-
program.command("serve").description("Start the Maizzle dev server with HMR").option("-c, --config <path>", "Path to maizzle config file").option("-p, --port <number>", "Dev server port").option("--host [address]", "Expose on network").action(async (options) => {
|
|
12
|
-
await framework.serve({
|
|
13
|
-
config: options.config,
|
|
14
|
-
port: options.port ? parseInt(options.port, 10) : void 0,
|
|
15
|
-
host: options.host
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
program.command("build").description("Build email templates to HTML").option("-c, --config <path>", "Path to maizzle config file").option("-o, --output <path>", "Output directory").action(async (options) => {
|
|
19
|
-
await framework.build({
|
|
20
|
-
config: options.config,
|
|
21
|
-
output: options.output
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
program.command("new").description("Create a new Maizzle project").action(async () => {
|
|
25
|
-
await main();
|
|
26
|
-
});
|
|
27
|
-
program.command("make:config [name]").description("Create a new config file").action(async (name) => {
|
|
28
|
-
await makeConfig(name);
|
|
29
|
-
});
|
|
30
|
-
program.command("make:layout [filepath]").description("Create a new layout").action(async (filepath) => {
|
|
31
|
-
await makeLayout(filepath);
|
|
32
|
-
});
|
|
33
|
-
program.command("make:template [filepath]").description("Create a new template").action(async (filepath) => {
|
|
34
|
-
await makeTemplate(filepath);
|
|
35
|
-
});
|
|
36
|
-
program.command("make:component [filepath]").description("Create a new component").action(async (filepath) => {
|
|
37
|
-
await makeComponent(filepath);
|
|
38
|
-
});
|
|
39
|
-
await program.parseAsync(process.argv);
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
export { bootstrap as default };
|