@maizzle/framework 6.0.0-rc.0 → 6.0.0-rc.10
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 +29 -9
- 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 +86 -0
- package/dist/components/Container.vue +48 -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/Image.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 +80 -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/usePreviewText.d.mts +24 -0
- package/dist/composables/usePreviewText.d.mts.map +1 -0
- package/dist/composables/usePreviewText.mjs +29 -0
- package/dist/composables/usePreviewText.mjs.map +1 -0
- package/dist/config/index.mjs +25 -1
- 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/tailwindCleanup.d.mts.map +1 -1
- package/dist/plugins/postcss/tailwindCleanup.mjs +44 -13
- package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
- package/dist/render/createRenderer.d.mts +10 -3
- package/dist/render/createRenderer.d.mts.map +1 -1
- package/dist/render/createRenderer.mjs +147 -10
- package/dist/render/createRenderer.mjs.map +1 -1
- package/dist/render/index.mjs +9 -3
- package/dist/render/index.mjs.map +1 -1
- package/dist/serve.d.mts.map +1 -1
- package/dist/serve.mjs +159 -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 +205 -69
- 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 +25 -34
- 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 +52 -28
- package/dist/transformers/tailwindcss.mjs.map +1 -1
- package/dist/types/config.d.mts +459 -17
- 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 +278 -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 +13 -11
- 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 +9 -4
- 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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,112 +1,90 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { relative } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (args.verbose) {
|
|
92
|
-
process.env.DEBUG = process.env.DEBUG || "true";
|
|
93
|
-
}
|
|
94
|
-
const r = await downloadTemplate(args.template, {
|
|
95
|
-
dir: args.dir,
|
|
96
|
-
force: args.force,
|
|
97
|
-
forceClean: args.forceClean,
|
|
98
|
-
offline: args.offline,
|
|
99
|
-
preferOffline: args.preferOffline,
|
|
100
|
-
auth: args.auth,
|
|
101
|
-
install: args.install
|
|
102
|
-
});
|
|
103
|
-
const _from = r.name || r.url;
|
|
104
|
-
const _to = relative(process.cwd(), r.dir) || "./";
|
|
105
|
-
consola.log(`\u2728 Successfully cloned \`${_from}\` to \`${_to}\`
|
|
106
|
-
`);
|
|
107
|
-
if (args.shell) {
|
|
108
|
-
startShell(r.dir);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
runMain(mainCommand);
|
|
2
|
+
import { i as relative } from "./_chunks/libs/nypm.mjs";
|
|
3
|
+
import { r as startShell, t as downloadTemplate } from "./_chunks/giget.mjs";
|
|
4
|
+
import { n as runMain, t as defineCommand } from "./_chunks/libs/citty.mjs";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/cli.ts
|
|
7
|
+
runMain(defineCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "giget",
|
|
10
|
+
version: "3.1.2",
|
|
11
|
+
description: "Download templates and git repositories with pleasure!"
|
|
12
|
+
},
|
|
13
|
+
args: {
|
|
14
|
+
template: {
|
|
15
|
+
type: "positional",
|
|
16
|
+
required: true,
|
|
17
|
+
description: "Template name or a URI describing provider, repository, subdir, and branch/ref"
|
|
18
|
+
},
|
|
19
|
+
dir: {
|
|
20
|
+
type: "positional",
|
|
21
|
+
description: "A relative or absolute path where to extract the template",
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
auth: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Custom Authorization token to use for downloading template. (Can be overridden with `GIGET_AUTH` environment variable)"
|
|
27
|
+
},
|
|
28
|
+
cwd: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Set current working directory to resolve dirs relative to it"
|
|
31
|
+
},
|
|
32
|
+
force: {
|
|
33
|
+
type: "boolean",
|
|
34
|
+
description: "Clone to existing directory even if exists"
|
|
35
|
+
},
|
|
36
|
+
forceClean: {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
description: "Remove any existing directory or file recursively before cloning"
|
|
39
|
+
},
|
|
40
|
+
offline: {
|
|
41
|
+
type: "boolean",
|
|
42
|
+
description: "Do not attempt to download and use cached version"
|
|
43
|
+
},
|
|
44
|
+
preferOffline: {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
description: "Use cache if exists otherwise try to download"
|
|
47
|
+
},
|
|
48
|
+
shell: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "Open a new shell with the current working directory set to the cloned directory (experimental)"
|
|
51
|
+
},
|
|
52
|
+
install: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Install dependencies after cloning"
|
|
55
|
+
},
|
|
56
|
+
verbose: {
|
|
57
|
+
type: "boolean",
|
|
58
|
+
description: "Show verbose debugging info"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
run: async ({ args }) => {
|
|
62
|
+
if (args.verbose) process.env.DEBUG = process.env.DEBUG || "true";
|
|
63
|
+
let r;
|
|
64
|
+
try {
|
|
65
|
+
r = await downloadTemplate(args.template, {
|
|
66
|
+
dir: args.dir,
|
|
67
|
+
force: args.force,
|
|
68
|
+
forceClean: args.forceClean,
|
|
69
|
+
offline: args.offline,
|
|
70
|
+
preferOffline: args.preferOffline,
|
|
71
|
+
auth: args.auth,
|
|
72
|
+
install: args.install
|
|
73
|
+
});
|
|
74
|
+
} catch (error) {
|
|
75
|
+
if (args.verbose) console.error(error);
|
|
76
|
+
else {
|
|
77
|
+
const message = error instanceof Error ? error.message : `Failed to download ${args.template}: unknown error`;
|
|
78
|
+
console.error(message);
|
|
79
|
+
}
|
|
80
|
+
process.exitCode = 1;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const _from = r.name || r.url;
|
|
84
|
+
const _to = relative(process.cwd(), r.dir) || "./";
|
|
85
|
+
console.log(`✨ Successfully cloned \`${_from}\` to \`${_to}\`\n`);
|
|
86
|
+
if (args.shell) startShell(r.dir);
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
//#endregion
|
|
90
|
+
export {};
|
|
@@ -1,49 +1,60 @@
|
|
|
1
|
+
import { t as installDependencies } from "./_chunks/libs/nypm.mjs";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
1
5
|
interface GitInfo {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
provider: "github" | "gitlab" | "bitbucket" | "sourcehut";
|
|
7
|
+
repo: string;
|
|
8
|
+
subdir: string;
|
|
9
|
+
ref: string;
|
|
6
10
|
}
|
|
11
|
+
type TarOutput = Readable | ReadableStream<Uint8Array>;
|
|
7
12
|
interface TemplateInfo {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
name: string;
|
|
14
|
+
tar: string | ((options?: {
|
|
15
|
+
auth?: string;
|
|
16
|
+
}) => TarOutput | Promise<TarOutput>);
|
|
17
|
+
version?: string;
|
|
18
|
+
subdir?: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
defaultDir?: string;
|
|
21
|
+
headers?: Record<string, string | undefined>;
|
|
22
|
+
source?: never;
|
|
23
|
+
dir?: never;
|
|
24
|
+
[key: string]: any;
|
|
18
25
|
}
|
|
19
26
|
type TemplateProvider = (input: string, options: {
|
|
20
|
-
|
|
27
|
+
auth?: string;
|
|
21
28
|
}) => TemplateInfo | Promise<TemplateInfo> | null;
|
|
22
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/giget.d.ts
|
|
31
|
+
type InstallOptions = Parameters<typeof installDependencies>[0];
|
|
23
32
|
interface DownloadTemplateOptions {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
provider?: string;
|
|
34
|
+
force?: boolean;
|
|
35
|
+
forceClean?: boolean;
|
|
36
|
+
offline?: boolean;
|
|
37
|
+
preferOffline?: boolean;
|
|
38
|
+
providers?: Record<string, TemplateProvider>;
|
|
39
|
+
dir?: string;
|
|
40
|
+
registry?: false | string;
|
|
41
|
+
cwd?: string;
|
|
42
|
+
auth?: string;
|
|
43
|
+
install?: boolean | InstallOptions;
|
|
44
|
+
silent?: boolean;
|
|
36
45
|
}
|
|
37
46
|
type DownloadTemplateResult = Omit<TemplateInfo, "dir" | "source"> & {
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
dir: string;
|
|
48
|
+
source: string;
|
|
40
49
|
};
|
|
41
50
|
declare function downloadTemplate(input: string, options?: DownloadTemplateOptions): Promise<DownloadTemplateResult>;
|
|
42
|
-
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/registry.d.ts
|
|
43
53
|
declare const registryProvider: (registryEndpoint?: string, options?: {
|
|
44
|
-
|
|
54
|
+
auth?: string;
|
|
45
55
|
}) => TemplateProvider;
|
|
46
|
-
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/_utils.d.ts
|
|
47
58
|
declare function startShell(cwd: string): void;
|
|
48
|
-
|
|
49
|
-
export {
|
|
59
|
+
//#endregion
|
|
60
|
+
export { DownloadTemplateOptions, DownloadTemplateResult, GitInfo, TarOutput, TemplateInfo, TemplateProvider, downloadTemplate, registryProvider, startShell };
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'node:fs';
|
|
4
|
-
import 'assert';
|
|
5
|
-
import 'path';
|
|
6
|
-
import 'events';
|
|
7
|
-
import 'stream';
|
|
8
|
-
import 'string_decoder';
|
|
9
|
-
import 'buffer';
|
|
10
|
-
import 'zlib';
|
|
11
|
-
import 'process';
|
|
12
|
-
import 'fs';
|
|
13
|
-
import 'util';
|
|
14
|
-
import 'crypto';
|
|
15
|
-
import 'pathe';
|
|
16
|
-
import 'defu';
|
|
17
|
-
import 'nypm';
|
|
18
|
-
import 'node:stream';
|
|
19
|
-
import 'node:child_process';
|
|
20
|
-
import 'node:os';
|
|
21
|
-
import 'node:util';
|
|
22
|
-
import 'node-fetch-native/proxy';
|
|
1
|
+
import { n as registryProvider, r as startShell, t as downloadTemplate } from "./_chunks/giget.mjs";
|
|
2
|
+
export { downloadTemplate, registryProvider, startShell };
|
|
@@ -1,62 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "giget",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Download templates and git repositories with pleasure!",
|
|
5
|
-
"repository": "unjs/giget",
|
|
6
5
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"type": "module",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/index.d.mts",
|
|
12
|
-
"default": "./dist/index.mjs"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"types": "./dist/index.d.mts",
|
|
6
|
+
"repository": "unjs/giget",
|
|
16
7
|
"bin": {
|
|
17
8
|
"giget": "./dist/cli.mjs"
|
|
18
9
|
},
|
|
19
10
|
"files": [
|
|
20
11
|
"dist"
|
|
21
12
|
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"types": "./dist/index.d.mts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./dist/index.mjs"
|
|
18
|
+
},
|
|
22
19
|
"scripts": {
|
|
23
|
-
"build": "
|
|
20
|
+
"build": "obuild",
|
|
24
21
|
"dev": "vitest dev",
|
|
25
|
-
"giget": "
|
|
26
|
-
"lint": "
|
|
27
|
-
"lint:fix": "
|
|
28
|
-
"prepack": "unbuild",
|
|
22
|
+
"giget": "node ./src/cli.ts",
|
|
23
|
+
"lint": "oxlint . && oxfmt --check src test",
|
|
24
|
+
"lint:fix": "oxlint . --fix && oxfmt src test",
|
|
29
25
|
"play": "pnpm giget --force-clean --verbose unjs .tmp/clone",
|
|
30
|
-
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
|
|
31
|
-
"test": "pnpm lint && vitest run --coverage"
|
|
32
|
-
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"citty": "^0.1.6",
|
|
35
|
-
"consola": "^3.4.0",
|
|
36
|
-
"defu": "^6.1.4",
|
|
37
|
-
"node-fetch-native": "^1.6.6",
|
|
38
|
-
"nypm": "^0.6.0",
|
|
39
|
-
"pathe": "^2.0.3"
|
|
26
|
+
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
|
|
27
|
+
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
|
|
28
|
+
"test:types": "tsgo --noEmit"
|
|
40
29
|
},
|
|
41
30
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"@
|
|
44
|
-
"@vitest/coverage-v8": "^
|
|
45
|
-
"changelogen": "^0.
|
|
46
|
-
"
|
|
47
|
-
"eslint": "^
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
31
|
+
"@types/node": "^25.5.0",
|
|
32
|
+
"@typescript/native-preview": "^7.0.0-dev.20260326.1",
|
|
33
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
34
|
+
"changelogen": "^0.6.2",
|
|
35
|
+
"citty": "^0.2.1",
|
|
36
|
+
"eslint-config-unjs": "^0.6.2",
|
|
37
|
+
"nypm": "^0.6.5",
|
|
38
|
+
"obuild": "^0.4.32",
|
|
39
|
+
"oxfmt": "^0.42.0",
|
|
40
|
+
"oxlint": "^1.57.0",
|
|
41
|
+
"pathe": "^2.0.3",
|
|
42
|
+
"rolldown": "^1.0.0-rc.12",
|
|
43
|
+
"tar": "^7.5.13",
|
|
44
|
+
"typescript": "^6.0.2",
|
|
45
|
+
"unbuild": "^3.6.1",
|
|
46
|
+
"vitest": "^4.1.2"
|
|
55
47
|
},
|
|
56
|
-
"packageManager": "pnpm@10.
|
|
57
|
-
"pnpm": {
|
|
58
|
-
"patchedDependencies": {
|
|
59
|
-
"tar": "patches/tar.patch"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
48
|
+
"packageManager": "pnpm@10.33.0"
|
|
62
49
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
You may use `maizzle` directly, with `npx`:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx maizzle new
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This will start the interactive setup:
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
Alternatively, you can install it globally:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install -g maizzle
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
### Create a new project
|
|
42
|
+
|
|
43
|
+
Interactive mode:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
maizzle new
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Scaffold a project from a GitHub starter repo (user/repo):
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
maizzle new maizzle/maizzle
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Specify a target directory:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
maizzle new maizzle/maizzle my-project
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Automatically install dependencies:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
maizzle new maizzle/maizzle my-project --install
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Use a specific package manager:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
maizzle new maizzle/maizzle my-project --install --pm pnpm
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Development
|
|
74
|
+
|
|
75
|
+
Start a local development server:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
maizzle serve
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Build
|
|
82
|
+
|
|
83
|
+
Build emails for production:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
maizzle build
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Scaffolding
|
|
90
|
+
|
|
91
|
+
You may use the `make` command to scaffold new files for your project.
|
|
92
|
+
|
|
93
|
+
#### Template
|
|
94
|
+
|
|
95
|
+
Create a new email template:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
maizzle make:template [filepath]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
#### Layout
|
|
102
|
+
|
|
103
|
+
Create a new email layout with the base HTML email structure and a default slot:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
maizzle make:layout [filepath]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Component
|
|
110
|
+
|
|
111
|
+
Create a new component with a slot and props:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
maizzle make:component [filepath]
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Config
|
|
118
|
+
|
|
119
|
+
Create a new `maizzle.config.ts` file:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
maizzle make:config [name]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Documentation
|
|
126
|
+
|
|
127
|
+
Maizzle documentation is available at https://maizzle.com
|
|
128
|
+
|
|
129
|
+
## License
|
|
130
|
+
|
|
131
|
+
The Maizzle framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
|
132
|
+
|
|
133
|
+
[npm]: https://www.npmjs.com/package/maizzle
|
|
134
|
+
[npm-stats]: https://npm-stat.com/charts.html?package=maizzle
|
|
135
|
+
[npm-version-shield]: https://img.shields.io/npm/v/maizzle.svg
|
|
136
|
+
[npm-stats-shield]: https://img.shields.io/npm/dt/maizzle.svg?color=4f46e5
|
|
137
|
+
[github-ci]: https://github.com/maizzle/cli/actions
|
|
138
|
+
[github-ci-shield]: https://github.com/maizzle/cli/actions/workflows/nodejs.yml/badge.svg
|
|
139
|
+
[license]: ./LICENSE
|
|
140
|
+
[license-shield]: https://img.shields.io/npm/l/maizzle.svg?color=0e9f6e
|