@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.
Files changed (347) hide show
  1. package/bin/maizzle.mjs +1 -1
  2. package/dist/_virtual/_rolldown/runtime.mjs +32 -0
  3. package/dist/build.mjs +6 -3
  4. package/dist/build.mjs.map +1 -1
  5. package/dist/components/Body.vue +111 -0
  6. package/dist/components/Button.vue +68 -14
  7. package/dist/components/CodeBlock.vue +68 -0
  8. package/dist/components/CodeInline.vue +49 -0
  9. package/dist/components/Column.vue +78 -0
  10. package/dist/components/Container.vue +53 -0
  11. package/dist/components/Divider.vue +28 -0
  12. package/dist/components/Head.vue +30 -0
  13. package/dist/components/Heading.vue +28 -0
  14. package/dist/components/Html.vue +104 -0
  15. package/dist/components/Img.vue +70 -0
  16. package/dist/components/Layout.vue +93 -0
  17. package/dist/components/Link.vue +26 -0
  18. package/dist/components/Markdown.vue +89 -0
  19. package/dist/components/Outlook.vue +36 -0
  20. package/dist/components/Overlap.vue +84 -0
  21. package/dist/components/Preheader.vue +20 -0
  22. package/dist/components/Row.vue +91 -0
  23. package/dist/components/Section.vue +83 -0
  24. package/dist/components/Spacer.vue +50 -7
  25. package/dist/components/Text.vue +29 -0
  26. package/dist/components/Vml.vue +165 -13
  27. package/dist/composables/renderContext.d.mts +5 -0
  28. package/dist/composables/renderContext.d.mts.map +1 -1
  29. package/dist/composables/renderContext.mjs.map +1 -1
  30. package/dist/composables/usePreheader.d.mts +24 -0
  31. package/dist/composables/usePreheader.d.mts.map +1 -0
  32. package/dist/composables/usePreheader.mjs +29 -0
  33. package/dist/composables/usePreheader.mjs.map +1 -0
  34. package/dist/config/defaults.mjs +1 -3
  35. package/dist/config/defaults.mjs.map +1 -1
  36. package/dist/config/index.mjs +7 -0
  37. package/dist/config/index.mjs.map +1 -1
  38. package/dist/index.d.mts +4 -2
  39. package/dist/index.mjs +3 -1
  40. package/dist/node_modules/picomatch/index.mjs +13 -0
  41. package/dist/node_modules/picomatch/index.mjs.map +1 -0
  42. package/dist/node_modules/picomatch/lib/constants.mjs +174 -0
  43. package/dist/node_modules/picomatch/lib/constants.mjs.map +1 -0
  44. package/dist/node_modules/picomatch/lib/parse.mjs +1067 -0
  45. package/dist/node_modules/picomatch/lib/parse.mjs.map +1 -0
  46. package/dist/node_modules/picomatch/lib/picomatch.mjs +304 -0
  47. package/dist/node_modules/picomatch/lib/picomatch.mjs.map +1 -0
  48. package/dist/node_modules/picomatch/lib/scan.mjs +296 -0
  49. package/dist/node_modules/picomatch/lib/scan.mjs.map +1 -0
  50. package/dist/node_modules/picomatch/lib/utils.mjs +53 -0
  51. package/dist/node_modules/picomatch/lib/utils.mjs.map +1 -0
  52. package/dist/plugin.d.mts.map +1 -1
  53. package/dist/plugin.mjs +24 -7
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/plugins/postcss/resolveProps.d.mts +8 -0
  56. package/dist/plugins/postcss/resolveProps.d.mts.map +1 -0
  57. package/dist/plugins/postcss/resolveProps.mjs +144 -0
  58. package/dist/plugins/postcss/resolveProps.mjs.map +1 -0
  59. package/dist/plugins/postcss/tailwindCleanup.d.mts.map +1 -1
  60. package/dist/plugins/postcss/tailwindCleanup.mjs +46 -13
  61. package/dist/plugins/postcss/tailwindCleanup.mjs.map +1 -1
  62. package/dist/render/createRenderer.d.mts +8 -3
  63. package/dist/render/createRenderer.d.mts.map +1 -1
  64. package/dist/render/createRenderer.mjs +146 -10
  65. package/dist/render/createRenderer.mjs.map +1 -1
  66. package/dist/render/index.mjs +6 -3
  67. package/dist/render/index.mjs.map +1 -1
  68. package/dist/serve.d.mts.map +1 -1
  69. package/dist/serve.mjs +157 -63
  70. package/dist/serve.mjs.map +1 -1
  71. package/dist/server/compatibility.d.mts +1 -2
  72. package/dist/server/compatibility.d.mts.map +1 -1
  73. package/dist/server/compatibility.mjs +30 -16
  74. package/dist/server/compatibility.mjs.map +1 -1
  75. package/dist/server/email.d.mts +17 -0
  76. package/dist/server/email.d.mts.map +1 -0
  77. package/dist/server/email.mjs +41 -0
  78. package/dist/server/email.mjs.map +1 -0
  79. package/dist/server/linter.d.mts +1 -2
  80. package/dist/server/linter.d.mts.map +1 -1
  81. package/dist/server/linter.mjs +60 -71
  82. package/dist/server/linter.mjs.map +1 -1
  83. package/dist/server/ui/App.vue +206 -70
  84. package/dist/server/ui/components/ui/checkbox/Checkbox.vue +35 -0
  85. package/dist/server/ui/components/ui/checkbox/index.ts +1 -0
  86. package/dist/server/ui/components/ui/command/CommandDialog.vue +1 -1
  87. package/dist/server/ui/components/ui/command/CommandInput.vue +19 -1
  88. package/dist/server/ui/components/ui/command/CommandItem.vue +1 -1
  89. package/dist/server/ui/components/ui/command/CommandList.vue +1 -1
  90. package/dist/server/ui/components/ui/command/CommandShortcut.vue +1 -1
  91. package/dist/server/ui/components/ui/dialog/DialogOverlay.vue +9 -1
  92. package/dist/server/ui/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
  93. package/dist/server/ui/components/ui/scroll-area/ScrollBar.vue +1 -1
  94. package/dist/server/ui/components/ui/sheet/SheetContent.vue +1 -1
  95. package/dist/server/ui/components/ui/sheet/SheetOverlay.vue +9 -1
  96. package/dist/server/ui/components/ui/sidebar/Sidebar.vue +8 -1
  97. package/dist/server/ui/components/ui/sidebar/SidebarProvider.vue +1 -1
  98. package/dist/server/ui/components/ui/sidebar/SidebarTrigger.vue +5 -4
  99. package/dist/server/ui/components/ui/tags-input/TagsInput.vue +26 -0
  100. package/dist/server/ui/components/ui/tags-input/TagsInputInput.vue +17 -0
  101. package/dist/server/ui/components/ui/tags-input/TagsInputItem.vue +19 -0
  102. package/dist/server/ui/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
  103. package/dist/server/ui/components/ui/tags-input/TagsInputItemText.vue +17 -0
  104. package/dist/server/ui/components/ui/tags-input/index.ts +5 -0
  105. package/dist/server/ui/components/ui/toggle/index.ts +3 -3
  106. package/dist/server/ui/components/ui/toggle-group/ToggleGroup.vue +1 -1
  107. package/dist/server/ui/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
  108. package/dist/server/ui/main.css +20 -20
  109. package/dist/server/ui/pages/Home.vue +12 -5
  110. package/dist/server/ui/pages/Preview.vue +506 -216
  111. package/dist/transformers/entities.d.mts.map +1 -1
  112. package/dist/transformers/entities.mjs +3 -0
  113. package/dist/transformers/entities.mjs.map +1 -1
  114. package/dist/transformers/filters/defaults.d.mts +6 -0
  115. package/dist/transformers/filters/defaults.d.mts.map +1 -0
  116. package/dist/transformers/filters/defaults.mjs +78 -0
  117. package/dist/transformers/filters/defaults.mjs.map +1 -0
  118. package/dist/transformers/filters/index.d.mts +22 -0
  119. package/dist/transformers/filters/index.d.mts.map +1 -0
  120. package/dist/transformers/filters/index.mjs +67 -0
  121. package/dist/transformers/filters/index.mjs.map +1 -0
  122. package/dist/transformers/index.d.mts +11 -9
  123. package/dist/transformers/index.d.mts.map +1 -1
  124. package/dist/transformers/index.mjs +19 -11
  125. package/dist/transformers/index.mjs.map +1 -1
  126. package/dist/transformers/inlineCSS.d.mts +1 -14
  127. package/dist/transformers/inlineCSS.d.mts.map +1 -1
  128. package/dist/transformers/inlineCSS.mjs +32 -36
  129. package/dist/transformers/inlineCSS.mjs.map +1 -1
  130. package/dist/transformers/purgeCSS.d.mts.map +1 -1
  131. package/dist/transformers/purgeCSS.mjs +67 -1
  132. package/dist/transformers/purgeCSS.mjs.map +1 -1
  133. package/dist/transformers/sixHex.d.mts +16 -0
  134. package/dist/transformers/sixHex.d.mts.map +1 -0
  135. package/dist/transformers/sixHex.mjs +30 -0
  136. package/dist/transformers/sixHex.mjs.map +1 -0
  137. package/dist/transformers/tailwindcss.d.mts +6 -2
  138. package/dist/transformers/tailwindcss.d.mts.map +1 -1
  139. package/dist/transformers/tailwindcss.mjs +54 -30
  140. package/dist/transformers/tailwindcss.mjs.map +1 -1
  141. package/dist/types/config.d.mts +436 -23
  142. package/dist/types/config.d.mts.map +1 -1
  143. package/dist/types/index.d.mts +2 -2
  144. package/dist/utils/ast/serializer.d.mts +3 -2
  145. package/dist/utils/ast/serializer.d.mts.map +1 -1
  146. package/dist/utils/ast/serializer.mjs +24 -0
  147. package/dist/utils/ast/serializer.mjs.map +1 -1
  148. package/dist/utils/detect.d.mts +5 -0
  149. package/dist/utils/detect.d.mts.map +1 -0
  150. package/dist/utils/detect.mjs +11 -0
  151. package/dist/utils/detect.mjs.map +1 -0
  152. package/node_modules/@clack/core/CHANGELOG.md +87 -4
  153. package/node_modules/@clack/core/README.md +1 -1
  154. package/node_modules/@clack/core/dist/index.d.mts +186 -48
  155. package/node_modules/@clack/core/dist/index.mjs +10 -14
  156. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  157. package/node_modules/@clack/core/package.json +7 -9
  158. package/node_modules/@clack/prompts/CHANGELOG.md +171 -7
  159. package/node_modules/@clack/prompts/README.md +66 -3
  160. package/node_modules/@clack/prompts/dist/index.d.mts +302 -76
  161. package/node_modules/@clack/prompts/dist/index.mjs +134 -84
  162. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  163. package/node_modules/@clack/prompts/package.json +14 -10
  164. package/node_modules/citty/LICENSE +0 -15
  165. package/node_modules/citty/README.md +166 -69
  166. package/node_modules/citty/dist/index.d.mts +88 -56
  167. package/node_modules/citty/dist/index.mjs +399 -437
  168. package/node_modules/citty/package.json +28 -35
  169. package/node_modules/giget/README.md +59 -11
  170. package/node_modules/giget/dist/THIRD-PARTY-LICENSES.md +205 -0
  171. package/node_modules/giget/dist/_chunks/giget.mjs +508 -0
  172. package/node_modules/giget/dist/_chunks/libs/citty.mjs +269 -0
  173. package/node_modules/giget/dist/_chunks/libs/nypm.d.mts +1 -0
  174. package/node_modules/giget/dist/_chunks/libs/nypm.mjs +669 -0
  175. package/node_modules/giget/dist/_chunks/libs/tar.mjs +2931 -0
  176. package/node_modules/giget/dist/_chunks/rolldown-runtime.mjs +14 -0
  177. package/node_modules/giget/dist/cli.d.mts +1 -0
  178. package/node_modules/giget/dist/cli.mjs +89 -111
  179. package/node_modules/giget/dist/index.d.mts +46 -35
  180. package/node_modules/giget/dist/index.mjs +2 -22
  181. package/node_modules/giget/package.json +32 -45
  182. package/node_modules/maizzle/README.md +140 -0
  183. package/node_modules/maizzle/bin/maizzle.mjs +5 -0
  184. package/node_modules/maizzle/dist/commands/new.d.mts +7 -0
  185. package/node_modules/maizzle/dist/commands/new.mjs +253 -0
  186. package/node_modules/{@maizzle/cli → maizzle}/dist/index.d.mts +1 -1
  187. package/node_modules/maizzle/dist/index.mjs +44 -0
  188. package/node_modules/{commander → maizzle/node_modules/commander}/Readme.md +94 -67
  189. package/node_modules/{commander → maizzle/node_modules/commander}/lib/argument.js +5 -4
  190. package/node_modules/{commander → maizzle/node_modules/commander}/lib/command.js +154 -39
  191. package/node_modules/{commander → maizzle/node_modules/commander}/lib/help.js +77 -39
  192. package/node_modules/{commander → maizzle/node_modules/commander}/lib/option.js +16 -3
  193. package/node_modules/{commander → maizzle/node_modules/commander}/package-support.json +4 -1
  194. package/node_modules/{commander → maizzle/node_modules/commander}/package.json +8 -8
  195. package/node_modules/{commander → maizzle/node_modules/commander}/typings/index.d.ts +71 -3
  196. package/node_modules/{@maizzle/cli → maizzle}/package.json +14 -12
  197. package/node_modules/tinyexec/README.md +49 -3
  198. package/node_modules/tinyexec/dist/main.d.mts +25 -14
  199. package/node_modules/tinyexec/dist/main.mjs +148 -100
  200. package/node_modules/tinyexec/package.json +9 -8
  201. package/package.json +17 -13
  202. package/dist/server/ui/components/ui/resizable/ResizableHandle.vue +0 -30
  203. package/dist/server/ui/components/ui/resizable/ResizablePanel.vue +0 -21
  204. package/dist/server/ui/components/ui/resizable/ResizablePanelGroup.vue +0 -25
  205. package/dist/server/ui/components/ui/resizable/index.ts +0 -3
  206. package/node_modules/@clack/core/dist/index.cjs +0 -15
  207. package/node_modules/@clack/core/dist/index.cjs.map +0 -1
  208. package/node_modules/@clack/core/dist/index.d.cts +0 -211
  209. package/node_modules/@clack/core/dist/index.d.ts +0 -211
  210. package/node_modules/@clack/prompts/dist/index.cjs +0 -87
  211. package/node_modules/@clack/prompts/dist/index.cjs.map +0 -1
  212. package/node_modules/@clack/prompts/dist/index.d.cts +0 -165
  213. package/node_modules/@clack/prompts/dist/index.d.ts +0 -165
  214. package/node_modules/@maizzle/cli/README.md +0 -58
  215. package/node_modules/@maizzle/cli/dist/index.mjs +0 -42
  216. package/node_modules/citty/dist/index.cjs +0 -475
  217. package/node_modules/citty/dist/index.d.cts +0 -80
  218. package/node_modules/citty/dist/index.d.ts +0 -80
  219. package/node_modules/consola/LICENSE +0 -47
  220. package/node_modules/consola/README.md +0 -352
  221. package/node_modules/consola/basic.d.ts +0 -1
  222. package/node_modules/consola/browser.d.ts +0 -1
  223. package/node_modules/consola/core.d.ts +0 -1
  224. package/node_modules/consola/dist/basic.cjs +0 -32
  225. package/node_modules/consola/dist/basic.d.cts +0 -23
  226. package/node_modules/consola/dist/basic.d.mts +0 -21
  227. package/node_modules/consola/dist/basic.d.ts +0 -23
  228. package/node_modules/consola/dist/basic.mjs +0 -24
  229. package/node_modules/consola/dist/browser.cjs +0 -84
  230. package/node_modules/consola/dist/browser.d.cts +0 -23
  231. package/node_modules/consola/dist/browser.d.mts +0 -21
  232. package/node_modules/consola/dist/browser.d.ts +0 -23
  233. package/node_modules/consola/dist/browser.mjs +0 -76
  234. package/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  235. package/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  236. package/node_modules/consola/dist/core.cjs +0 -517
  237. package/node_modules/consola/dist/core.d.cts +0 -459
  238. package/node_modules/consola/dist/core.d.mts +0 -459
  239. package/node_modules/consola/dist/core.d.ts +0 -459
  240. package/node_modules/consola/dist/core.mjs +0 -512
  241. package/node_modules/consola/dist/index.cjs +0 -663
  242. package/node_modules/consola/dist/index.d.cts +0 -24
  243. package/node_modules/consola/dist/index.d.mts +0 -22
  244. package/node_modules/consola/dist/index.d.ts +0 -24
  245. package/node_modules/consola/dist/index.mjs +0 -651
  246. package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  247. package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  248. package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  249. package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  250. package/node_modules/consola/dist/utils.cjs +0 -64
  251. package/node_modules/consola/dist/utils.d.cts +0 -286
  252. package/node_modules/consola/dist/utils.d.mts +0 -286
  253. package/node_modules/consola/dist/utils.d.ts +0 -286
  254. package/node_modules/consola/dist/utils.mjs +0 -54
  255. package/node_modules/consola/lib/index.cjs +0 -10
  256. package/node_modules/consola/package.json +0 -136
  257. package/node_modules/consola/utils.d.ts +0 -1
  258. package/node_modules/create-maizzle/README.md +0 -86
  259. package/node_modules/create-maizzle/bin/create-maizzle.mjs +0 -4
  260. package/node_modules/create-maizzle/node_modules/@clack/core/CHANGELOG.md +0 -340
  261. package/node_modules/create-maizzle/node_modules/@clack/core/LICENSE +0 -9
  262. package/node_modules/create-maizzle/node_modules/@clack/core/README.md +0 -22
  263. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.d.mts +0 -349
  264. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs +0 -11
  265. package/node_modules/create-maizzle/node_modules/@clack/core/dist/index.mjs.map +0 -1
  266. package/node_modules/create-maizzle/node_modules/@clack/core/package.json +0 -60
  267. package/node_modules/create-maizzle/node_modules/@clack/prompts/CHANGELOG.md +0 -576
  268. package/node_modules/create-maizzle/node_modules/@clack/prompts/LICENSE +0 -9
  269. package/node_modules/create-maizzle/node_modules/@clack/prompts/README.md +0 -270
  270. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.d.mts +0 -391
  271. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs +0 -137
  272. package/node_modules/create-maizzle/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
  273. package/node_modules/create-maizzle/node_modules/@clack/prompts/package.json +0 -65
  274. package/node_modules/create-maizzle/package.json +0 -47
  275. package/node_modules/create-maizzle/src/index.js +0 -242
  276. package/node_modules/defu/LICENSE +0 -21
  277. package/node_modules/defu/README.md +0 -171
  278. package/node_modules/defu/dist/defu.cjs +0 -77
  279. package/node_modules/defu/dist/defu.d.cts +0 -31
  280. package/node_modules/defu/dist/defu.d.mts +0 -29
  281. package/node_modules/defu/dist/defu.d.ts +0 -31
  282. package/node_modules/defu/dist/defu.mjs +0 -69
  283. package/node_modules/defu/lib/defu.cjs +0 -10
  284. package/node_modules/defu/lib/defu.d.cts +0 -12
  285. package/node_modules/defu/package.json +0 -48
  286. package/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -468
  287. package/node_modules/node-fetch-native/LICENSE +0 -114
  288. package/node_modules/node-fetch-native/README.md +0 -225
  289. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -2
  290. package/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -2
  291. package/node_modules/node-fetch-native/dist/index.cjs +0 -1
  292. package/node_modules/node-fetch-native/dist/index.mjs +0 -1
  293. package/node_modules/node-fetch-native/dist/native.cjs +0 -1
  294. package/node_modules/node-fetch-native/dist/native.mjs +0 -1
  295. package/node_modules/node-fetch-native/dist/node.cjs +0 -19
  296. package/node_modules/node-fetch-native/dist/node.mjs +0 -19
  297. package/node_modules/node-fetch-native/dist/polyfill.cjs +0 -1
  298. package/node_modules/node-fetch-native/dist/polyfill.mjs +0 -1
  299. package/node_modules/node-fetch-native/dist/proxy-stub.cjs +0 -1
  300. package/node_modules/node-fetch-native/dist/proxy-stub.mjs +0 -1
  301. package/node_modules/node-fetch-native/dist/proxy.cjs +0 -58
  302. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +0 -1
  303. package/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -1
  304. package/node_modules/node-fetch-native/index.d.ts +0 -1
  305. package/node_modules/node-fetch-native/lib/empty.cjs +0 -0
  306. package/node_modules/node-fetch-native/lib/empty.mjs +0 -0
  307. package/node_modules/node-fetch-native/lib/index.cjs +0 -11
  308. package/node_modules/node-fetch-native/lib/index.d.cts +0 -10
  309. package/node_modules/node-fetch-native/lib/index.d.mts +0 -10
  310. package/node_modules/node-fetch-native/lib/index.d.ts +0 -10
  311. package/node_modules/node-fetch-native/lib/native.cjs +0 -11
  312. package/node_modules/node-fetch-native/lib/polyfill.d.cts +0 -1
  313. package/node_modules/node-fetch-native/lib/polyfill.d.mts +0 -1
  314. package/node_modules/node-fetch-native/lib/polyfill.d.ts +0 -1
  315. package/node_modules/node-fetch-native/lib/proxy.d.ts +0 -32
  316. package/node_modules/node-fetch-native/node.d.ts +0 -1
  317. package/node_modules/node-fetch-native/package.json +0 -138
  318. package/node_modules/node-fetch-native/polyfill.d.ts +0 -1
  319. package/node_modules/node-fetch-native/proxy.d.ts +0 -1
  320. package/node_modules/nypm/node_modules/citty/LICENSE +0 -21
  321. package/node_modules/nypm/node_modules/citty/README.md +0 -231
  322. package/node_modules/nypm/node_modules/citty/dist/index.d.mts +0 -112
  323. package/node_modules/nypm/node_modules/citty/dist/index.mjs +0 -425
  324. package/node_modules/nypm/node_modules/citty/package.json +0 -42
  325. /package/node_modules/{nypm/node_modules/citty → citty}/dist/THIRD-PARTY-LICENSES.md +0 -0
  326. /package/node_modules/{nypm/node_modules/citty → citty}/dist/_chunks/libs/scule.mjs +0 -0
  327. /package/node_modules/{@maizzle/cli → maizzle}/LICENSE +0 -0
  328. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.d.mts +0 -0
  329. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/component.mjs +0 -0
  330. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.d.mts +0 -0
  331. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/config.mjs +0 -0
  332. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.d.mts +0 -0
  333. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/layout.mjs +0 -0
  334. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.d.mts +0 -0
  335. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/scaffold.mjs +0 -0
  336. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/component.vue +0 -0
  337. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/config.ts +0 -0
  338. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/layout.vue +0 -0
  339. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/stubs/template.vue +0 -0
  340. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.d.mts +0 -0
  341. /package/node_modules/{@maizzle/cli → maizzle}/dist/commands/make/template.mjs +0 -0
  342. /package/node_modules/{commander → maizzle/node_modules/commander}/LICENSE +0 -0
  343. /package/node_modules/{commander → maizzle/node_modules/commander}/esm.mjs +0 -0
  344. /package/node_modules/{commander → maizzle/node_modules/commander}/index.js +0 -0
  345. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/error.js +0 -0
  346. /package/node_modules/{commander → maizzle/node_modules/commander}/lib/suggestSimilar.js +0 -0
  347. /package/node_modules/{commander → maizzle/node_modules/commander}/typings/esm.d.mts +0 -0
@@ -1,49 +1,42 @@
1
1
  {
2
2
  "name": "citty",
3
- "version": "0.1.6",
3
+ "version": "0.2.2",
4
4
  "description": "Elegant CLI Builder",
5
- "repository": "unjs/citty",
6
5
  "license": "MIT",
7
- "sideEffects": false,
8
- "type": "module",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs",
13
- "require": "./dist/index.cjs"
14
- }
15
- },
16
- "main": "./dist/index.cjs",
17
- "module": "./dist/index.mjs",
18
- "types": "./dist/index.d.ts",
6
+ "repository": "unjs/citty",
19
7
  "files": [
20
8
  "dist"
21
9
  ],
10
+ "type": "module",
11
+ "sideEffects": false,
12
+ "types": "./dist/index.d.mts",
13
+ "exports": {
14
+ ".": "./dist/index.mjs"
15
+ },
22
16
  "scripts": {
23
- "build": "unbuild",
17
+ "build": "obuild",
24
18
  "dev": "vitest dev",
25
- "lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
26
- "lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
19
+ "lint": "oxlint . && oxfmt --check",
20
+ "fmt": "oxlint . --fix && oxfmt",
27
21
  "prepack": "pnpm run build",
28
- "play": "jiti ./playground/cli.ts",
29
- "release": "pnpm test && changelogen --release --push && npm publish",
30
- "test": "pnpm lint && vitest run --coverage"
31
- },
32
- "dependencies": {
33
- "consola": "^3.2.3"
22
+ "play": "node ./playground/cli.ts",
23
+ "release": "pnpm test && pnpm build && changelogen --release --push && npm publish",
24
+ "test": "pnpm lint && pnpm test:types && vitest run --coverage",
25
+ "test:types": "tsgo --noEmit"
34
26
  },
35
27
  "devDependencies": {
36
- "@types/node": "^20.11.17",
37
- "@vitest/coverage-v8": "^1.2.2",
38
- "changelogen": "^0.5.5",
39
- "eslint": "^8.56.0",
40
- "eslint-config-unjs": "^0.2.1",
41
- "jiti": "^1.21.0",
42
- "prettier": "^3.2.5",
28
+ "@types/node": "^25.5.0",
29
+ "@typescript/native-preview": "^7.0.0-dev.20260401.1",
30
+ "@vitest/coverage-v8": "^4.1.2",
31
+ "automd": "^0.4.3",
32
+ "changelogen": "^0.6.2",
33
+ "eslint-config-unjs": "^0.6.2",
34
+ "obuild": "^0.4.32",
35
+ "oxfmt": "^0.43.0",
36
+ "oxlint": "^1.58.0",
43
37
  "scule": "^1.3.0",
44
- "typescript": "^5.3.3",
45
- "unbuild": "^2.0.0",
46
- "vitest": "^1.2.2"
38
+ "typescript": "^6.0.2",
39
+ "vitest": "^4.1.2"
47
40
  },
48
- "packageManager": "pnpm@8.15.1"
49
- }
41
+ "packageManager": "pnpm@10.33.0"
42
+ }
@@ -8,8 +8,12 @@
8
8
 
9
9
  ## Features
10
10
 
11
+ ✨ Zero dependency
12
+
11
13
  ✨ Support popular git providers (GitHub, GitLab, Bitbucket, Sourcehut) out of the box.
12
14
 
15
+ ✨ Native [git clone provider](#git-clone-provider) with sparse checkout for subdirectories.
16
+
13
17
  ✨ Built-in and custom [template registry](#template-registry).
14
18
 
15
19
  ✨ Fast cloning using tarball gzip without depending on local `git` and `tar`.
@@ -24,8 +28,6 @@
24
28
 
25
29
  ✨ Optionally install dependencies after clone using [unjs/nypm](https://github.com/unjs/nypm)
26
30
 
27
- ✨ HTTP proxy support and native fetch via [unjs/node-fetch-native](https://github.com/unjs/node-fetch-native)
28
-
29
31
  ## Usage (CLI)
30
32
 
31
33
  ```bash
@@ -72,12 +74,21 @@ npx giget@latest gh:unjs/template/test
72
74
  # Clone from gitlab
73
75
  npx giget@latest gitlab:unjs/template
74
76
 
77
+ # Clone from gitlab with subgroups
78
+ npx giget@latest gitlab:group/subgroup/project
79
+
80
+ # Clone from gitlab with subgroups and subdirectory (using :: delimiter)
81
+ npx giget@latest gitlab:group/subgroup/project::src/template
82
+
75
83
  # Clone from bitbucket
76
84
  npx giget@latest bitbucket:unjs/template
77
85
 
78
86
  # Clone from sourcehut
79
87
  npx giget@latest sourcehut:pi0/unjs-template
80
88
 
89
+ # Clone using local git over HTTPS (see "Git Clone Provider" section)
90
+ npx giget@latest git:unjs/template
91
+
81
92
  # Clone from https URL (tarball)
82
93
  npx giget@latest https://api.github.com/repos/unjs/template/tarball/main
83
94
 
@@ -139,10 +150,10 @@ const { source, dir } = await downloadTemplate("github:unjs/template");
139
150
 
140
151
  **Options:**
141
152
 
142
- - `source`: (string) Input source in format of `[provider]:repo[/subpath][#ref]`.
153
+ - `source`: (string) Input source in format of `[provider]:repo[/subpath][#ref]`. Use `::` to separate repo from subdir when the repo path has more than two segments (e.g., GitLab subgroups): `[provider]:group/subgroup/repo[::subdir][#ref]`.
143
154
  - `options`: (object) Options are usually inferred from the input string. You can customize them.
144
155
  - `dir`: (string) Destination directory to clone to. If not provided, `user-name` will be used relative to the current directory.
145
- - `provider`: (string) Either `github`, `gitlab`, `bitbucket` or `sourcehut`. The default is `github`.
156
+ - `provider`: (string) Either `github`, `gitlab`, `bitbucket`, `sourcehut`, or `git`. The default is `github`.
146
157
  - `force`: (boolean) Extract to the existing dir even if already exists.
147
158
  - `forceClean`: (boolean) ⚠️ Clean up any existing directory or file before cloning.
148
159
  - `offline`: (boolean) Do not attempt to download and use the cached version.
@@ -183,6 +194,22 @@ const { source, dir } = await downloadTemplate("rainbow:one", {
183
194
  });
184
195
  ```
185
196
 
197
+ `tar` can also be a function returning a `Readable` or `ReadableStream`:
198
+
199
+ ```ts
200
+ const myorg: TemplateProvider = async (input, { auth }) => {
201
+ return {
202
+ name: input,
203
+ tar: async () =>
204
+ (await fetch(`http://my-org.internal/archive/${input}.tar.gz`)).body!,
205
+ };
206
+ };
207
+
208
+ const { source, dir } = await downloadTemplate("myorg:my-project", {
209
+ providers: { myorg },
210
+ });
211
+ ```
212
+
186
213
  ### Custom Registry Providers
187
214
 
188
215
  You can define additional [custom registry](#custom-registry) providers using `registryProvider` utility and register to `providers`.
@@ -190,15 +217,36 @@ You can define additional [custom registry](#custom-registry) providers using `r
190
217
  ```ts
191
218
  import { registryProvider } from "giget";
192
219
 
193
- const themes = registryProvider(
194
- "https://raw.githubusercontent.com/unjs/giget/main/templates",
195
- );
220
+ const themes = registryProvider("https://raw.githubusercontent.com/unjs/giget/main/templates");
196
221
 
197
222
  const { source, dir } = await downloadTemplate("themes:test", {
198
223
  providers: { themes },
199
224
  });
200
225
  ```
201
226
 
227
+ ## Git Clone Provider
228
+
229
+ The `git:` provider clones repositories using the local `git` command instead of downloading tarballs via HTTP APIs. Useful for private or self-hosted servers that don't expose tarball endpoints.
230
+
231
+ ```sh
232
+ git:unjs/template # HTTPS clone (github.com by default)
233
+ git:unjs/template#v2 # Specific branch or tag
234
+ git:unjs/template#e24616c # Specific commit (full clone fallback)
235
+ git:unjs/template#main:src # Subdirectory (sparse checkout)
236
+ git:git@github.com:unjs/template # Explicit SSH
237
+ git:./path/to/local/repo # Local repository
238
+ gh+git:unjs/template # Host shorthand (github.com)
239
+ gitlab+git:org/repo # Host shorthand (gitlab.com)
240
+ ```
241
+
242
+ Subdirectories use sparse checkout with `--filter=blob:none` to avoid downloading the full repository.
243
+
244
+ **Environment variables:**
245
+
246
+ | Variable | Description |
247
+ | --- | --- |
248
+ | `GIGET_GIT_HOST` | Default HTTPS host (default: `https://github.com/`) |
249
+
202
250
  ## Providing token for private repositories
203
251
 
204
252
  For private repositories and sources, you might need a token. In order to provide it, using CLI, you can use `--auth`, using programmatic API using `auth` option and in both modes also it is possible to use `GIGET_AUTH` environment variable to set it. The value will be set in `Authorization: Bearer ...` header by default.
@@ -216,14 +264,14 @@ If your project depends on a private GitHub repository, you need to add the acce
216
264
  GIGET_AUTH: ${{ secrets.GIGET_AUTH }}
217
265
  ```
218
266
 
219
-
220
267
  ## Related projects
221
268
 
222
269
  Giget wouldn't be possible without inspiration from former projects. In comparison, giget does not depend on any local command which increases stability and performance and supports custom template providers, auth, and many more features out of the box.
223
270
 
224
- - https://github.com/samsonjs/gitter
225
- - https://github.com/tiged/tiged
226
- - https://github.com/Rich-Harris/degit
271
+ - [tiged/tiged](https://github.com/tiged/tiged) (maintained fork of degit)
272
+ - [nrjdalal/gitpick](https://github.com/nrjdalal/gitpick) (alternative approach)
273
+ - [Rich-Harris/degit](https://github.com/Rich-Harris/degit) (last updated - 2021)
274
+ - [samsonjs/gitter](https://github.com/samsonjs/gitter) (archived/updated - 2012)
227
275
 
228
276
  ## 💻 Development
229
277
 
@@ -0,0 +1,205 @@
1
+ # Licenses of Bundled Dependencies
2
+
3
+ The published artifact additionally contains code with the following licenses:
4
+ BlueOak-1.0.0, MIT
5
+
6
+ # Bundled Dependencies
7
+
8
+ ## citty, nypm
9
+
10
+ License: MIT
11
+ Repositories: https://github.com/unjs/citty, https://github.com/unjs/nypm
12
+
13
+ > MIT License
14
+ >
15
+ > Copyright (c) Pooya Parsa <pooya@pi0.io>
16
+ >
17
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ > of this software and associated documentation files (the "Software"), to deal
19
+ > in the Software without restriction, including without limitation the rights
20
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ > copies of the Software, and to permit persons to whom the Software is
22
+ > furnished to do so, subject to the following conditions:
23
+ >
24
+ > The above copyright notice and this permission notice shall be included in all
25
+ > copies or substantial portions of the Software.
26
+ >
27
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ > SOFTWARE.
34
+
35
+ ---------------------------------------
36
+
37
+ ## pathe
38
+
39
+ License: MIT
40
+ Repository: https://github.com/unjs/pathe
41
+
42
+ > MIT License
43
+ >
44
+ > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
45
+ >
46
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
47
+ > of this software and associated documentation files (the "Software"), to deal
48
+ > in the Software without restriction, including without limitation the rights
49
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
50
+ > copies of the Software, and to permit persons to whom the Software is
51
+ > furnished to do so, subject to the following conditions:
52
+ >
53
+ > The above copyright notice and this permission notice shall be included in all
54
+ > copies or substantial portions of the Software.
55
+ >
56
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
57
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
58
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
60
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
61
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
62
+ > SOFTWARE.
63
+ >
64
+ > ---
65
+ >
66
+ > Copyright Joyent, Inc. and other Node contributors.
67
+ >
68
+ > Permission is hereby granted, free of charge, to any person obtaining a
69
+ > copy of this software and associated documentation files (the
70
+ > "Software"), to deal in the Software without restriction, including
71
+ > without limitation the rights to use, copy, modify, merge, publish,
72
+ > distribute, sublicense, and/or sell copies of the Software, and to permit
73
+ > persons to whom the Software is furnished to do so, subject to the
74
+ > following conditions:
75
+ >
76
+ > The above copyright notice and this permission notice shall be included
77
+ > in all copies or substantial portions of the Software.
78
+ >
79
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
80
+ > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
81
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
82
+ > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
83
+ > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
84
+ > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
85
+ > USE OR OTHER DEALINGS IN THE SOFTWARE.
86
+ >
87
+ > ---
88
+ >
89
+ > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
90
+ >
91
+ > The MIT License (MIT)
92
+ >
93
+ > Copyright (c) 2023-present Fabio Spampinato
94
+ >
95
+ > Permission is hereby granted, free of charge, to any person obtaining a
96
+ > copy of this software and associated documentation files (the "Software"),
97
+ > to deal in the Software without restriction, including without limitation
98
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
99
+ > and/or sell copies of the Software, and to permit persons to whom the
100
+ > Software is furnished to do so, subject to the following conditions:
101
+ >
102
+ > The above copyright notice and this permission notice shall be included in
103
+ > all copies or substantial portions of the Software.
104
+ >
105
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
107
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
108
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
109
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
110
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
111
+ > DEALINGS IN THE SOFTWARE.
112
+
113
+ ---------------------------------------
114
+
115
+ ## tar
116
+
117
+ License: BlueOak-1.0.0
118
+ By: Isaac Z. Schlueter
119
+ Repository: https://github.com/isaacs/node-tar
120
+
121
+ > # Blue Oak Model License
122
+ >
123
+ > Version 1.0.0
124
+ >
125
+ > ## Purpose
126
+ >
127
+ > This license gives everyone as much permission to work with
128
+ > this software as possible, while protecting contributors
129
+ > from liability.
130
+ >
131
+ > ## Acceptance
132
+ >
133
+ > In order to receive this license, you must agree to its
134
+ > rules. The rules of this license are both obligations
135
+ > under that agreement and conditions to your license.
136
+ > You must not do anything with this software that triggers
137
+ > a rule that you cannot or will not follow.
138
+ >
139
+ > ## Copyright
140
+ >
141
+ > Each contributor licenses you to do everything with this
142
+ > software that would otherwise infringe that contributor's
143
+ > copyright in it.
144
+ >
145
+ > ## Notices
146
+ >
147
+ > You must ensure that everyone who gets a copy of
148
+ > any part of this software from you, with or without
149
+ > changes, also gets the text of this license or a link to
150
+ > <https://blueoakcouncil.org/license/1.0.0>.
151
+ >
152
+ > ## Excuse
153
+ >
154
+ > If anyone notifies you in writing that you have not
155
+ > complied with [Notices](#notices), you can keep your
156
+ > license by taking all practical steps to comply within 30
157
+ > days after the notice. If you do not do so, your license
158
+ > ends immediately.
159
+ >
160
+ > ## Patent
161
+ >
162
+ > Each contributor licenses you to do everything with this
163
+ > software that would otherwise infringe any patent claims
164
+ > they can license or become able to license.
165
+ >
166
+ > ## Reliability
167
+ >
168
+ > No contributor can revoke this license.
169
+ >
170
+ > ## No Liability
171
+ >
172
+ > ***As far as the law allows, this software comes as is,
173
+ > without any warranty or condition, and no contributor
174
+ > will be liable to anyone for any damages related to this
175
+ > software or this license, under any kind of legal claim.***
176
+
177
+ ---------------------------------------
178
+
179
+ ## tinyexec
180
+
181
+ License: MIT
182
+ By: James Garbutt
183
+ Repository: https://github.com/tinylibs/tinyexec
184
+
185
+ > MIT License
186
+ >
187
+ > Copyright (c) 2024 Tinylibs
188
+ >
189
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
190
+ > of this software and associated documentation files (the "Software"), to deal
191
+ > in the Software without restriction, including without limitation the rights
192
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
193
+ > copies of the Software, and to permit persons to whom the Software is
194
+ > furnished to do so, subject to the following conditions:
195
+ >
196
+ > The above copyright notice and this permission notice shall be included in all
197
+ > copies or substantial portions of the Software.
198
+ >
199
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
200
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
201
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
202
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
203
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
204
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
205
+ > SOFTWARE.