create-mantiq 0.2.1 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mantiq",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Scaffold a new MantiqJS application",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -78,7 +78,7 @@ if (!isCI && !kit) {
78
78
 
79
79
  // Framework selection
80
80
  const framework = await term.select('Which framework would you like to use?', [
81
- { value: 'react', label: 'React', hint: 'Recommended' },
81
+ { value: 'react', label: 'React' },
82
82
  { value: 'vue', label: 'Vue' },
83
83
  { value: 'svelte', label: 'Svelte' },
84
84
  { value: 'none', label: 'None', hint: 'API only' },
@@ -168,15 +168,12 @@ if (!noGit) {
168
168
  }
169
169
 
170
170
  // ── Done ─────────────────────────────────────────────────────────────────────
171
- const summaryLines = [
172
- `${emerald('')} ${bold(projectName)} created`,
173
- '',
174
- `${dim('Framework')} ${kit ? bold(kit.charAt(0).toUpperCase() + kit.slice(1)) : dim('None (API only)')}`,
175
- ...(kit === 'react' ? [`${dim('UI Kit')} ${ui === 'shadcn' ? bold('shadcn/ui') : dim('Plain Tailwind')}`] : []),
176
- '',
177
- `${emerald('cd')} ${projectName}`,
178
- `${emerald('bun mantiq')} migrate`,
179
- `${emerald('bun run')} dev`,
180
- ]
181
-
182
- term.box(summaryLines)
171
+ console.log(`\n ${emerald('✓')} ${bold(projectName)} created\n`)
172
+ console.log(` ${dim('Framework')} ${kit ? bold(kit.charAt(0).toUpperCase() + kit.slice(1)) : dim('None (API only)')}`)
173
+ if (kit === 'react') console.log(` ${dim('UI Kit')} ${ui === 'shadcn' ? bold('shadcn/ui') : dim('Plain Tailwind')}`)
174
+ console.log(`\n ${dim('Next steps:')}\n`)
175
+ console.log(` cd ${projectName}`)
176
+ console.log(` bun mantiq migrate`)
177
+ console.log(` bun run dev\n`)
178
+
179
+ process.exit(0)
package/src/ui/shadcn.ts CHANGED
@@ -37,6 +37,17 @@ export function cn(...inputs: ClassValue[]) {
37
37
  'src/style.css': `@import "tailwindcss";
38
38
  @custom-variant dark (&:where(.dark, .dark *));
39
39
 
40
+ /*
41
+ * shadcn/ui theme — default: emerald
42
+ *
43
+ * To swap themes, visit https://ui.shadcn.com/themes
44
+ * Pick a theme, copy the CSS variables, and replace
45
+ * the :root and .dark blocks below.
46
+ *
47
+ * Or install a community theme:
48
+ * bunx --bun shadcn@latest add @ss-themes/caffeine
49
+ */
50
+
40
51
  @theme inline {
41
52
  --color-background: var(--background);
42
53
  --color-foreground: var(--foreground);