@emberkit/cli 0.6.5 → 0.6.8

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.
@@ -1,10 +1,10 @@
1
1
  // Semver ranges for @emberkit/* packages written into generated projects.
2
2
  // When releasing libraries, bump these to match packages/*/package.json "version".
3
3
  export const EMBERKIT_PACKAGE_VERSIONS = {
4
- core: "^0.2.8",
5
- ui: "^0.3.4",
6
- icons: "^0.2.6",
7
- cli: "^0.6.5",
4
+ core: "^0.3.8",
5
+ ui: "^1.0.1",
6
+ icons: "^1.0.8",
7
+ cli: "^0.6.8",
8
8
  edge: "^0.2.4",
9
9
  tsconfig: "^0.2.1",
10
10
  };
@@ -119,9 +119,9 @@ const HomePage: RouteComponent = () => {
119
119
  const [activeTab, setActiveTab] = createSignal('features');
120
120
 
121
121
  const features = [
122
- { icon: '', title: 'Lightning Fast', desc: 'Sub-10KB runtime with tree-shakeable architecture' },
123
- { icon: '📘', title: 'TypeScript First', desc: 'Full type safety with intelligent autocomplete' },
124
- { icon: '📁', title: 'File-Based Routing', desc: 'Routes automatically created from your file structure' },
122
+ { icon: 'zap' as const, title: 'Lightning Fast', desc: 'Sub-10KB runtime with tree-shakeable architecture' },
123
+ { icon: 'book' as const, title: 'TypeScript First', desc: 'Full type safety with intelligent autocomplete' },
124
+ { icon: 'folder' as const, title: 'File-Based Routing', desc: 'Routes automatically created from your file structure' },
125
125
  ];
126
126
 
127
127
  const components = [
@@ -139,8 +139,9 @@ const HomePage: RouteComponent = () => {
139
139
  <section className="relative text-center py-20">
140
140
  <div className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 h-[400px] w-[400px] rounded-full bg-ember-500/15 blur-[150px] animate-pulse-glow" />
141
141
  <div className="relative z-10 space-y-6 animate-fade-in-down">
142
- <Badge variant="primary" className="inline-block">
143
- Welcome to {{name}}
142
+ <Badge variant="primary" className="inline-flex items-center gap-2">
143
+ <Icon name="emberkit" size={14} className="text-amber-400 shrink-0 drop-shadow-[0_0_6px_rgba(251,191,36,0.45)]" />
144
+ Welcome to {{name}}
144
145
  </Badge>
145
146
  <Heading level="h1" size="4xl" weight="bold">
146
147
  Built with EmberKit <span className="bg-gradient-to-r from-ember-400 via-ember-500 to-amber-500 bg-clip-text text-transparent">UI System</span>
@@ -172,7 +173,9 @@ const HomePage: RouteComponent = () => {
172
173
  <Card key={feature.title} padding="lg" className="relative group hover:border-ember-500/50 transition-all hover:-translate-y-1 cursor-pointer">
173
174
  <div className="absolute inset-0 rounded-xl bg-gradient-to-br from-ember-500/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity" />
174
175
  <div className="relative space-y-3">
175
- <div className="text-3xl">{feature.icon}</div>
176
+ <div className="flex h-14 w-14 items-center justify-center rounded-xl bg-gradient-to-br from-ember-400/20 via-fuchsia-500/10 to-cyan-500/10 text-ember-300 ring-1 ring-ember-400/25 shadow-[0_0_24px_rgba(236,72,153,0.12)]">
177
+ <Icon name={feature.icon} size={28} className="drop-shadow-[0_0_10px_rgba(249,115,22,0.35)]" />
178
+ </div>
176
179
  <Heading level="h3" size="md" weight="semibold">
177
180
  {feature.title}
178
181
  </Heading>
@@ -230,10 +233,16 @@ const HomePage: RouteComponent = () => {
230
233
  </div>
231
234
  </div>
232
235
  <Alert variant="success">
233
- This is a success alert message. Use it to confirm important actions.
236
+ <span className="inline-flex items-start gap-2">
237
+ <Icon name="check" size={18} className="text-emerald-400 shrink-0 mt-0.5" />
238
+ <span>This is a success alert message. Use it to confirm important actions.</span>
239
+ </span>
234
240
  </Alert>
235
241
  <Alert variant="info">
236
- This is an info alert. Useful for displaying helpful information.
242
+ <span className="inline-flex items-start gap-2">
243
+ <Icon name="info" size={18} className="text-sky-400 shrink-0 mt-0.5" />
244
+ <span>This is an info alert. Useful for displaying helpful information.</span>
245
+ </span>
237
246
  </Alert>
238
247
  </div>
239
248
  </Card>
@@ -284,14 +293,14 @@ const HomePage: RouteComponent = () => {
284
293
  export default HomePage;`,
285
294
  "src/routes/about.tsx": `import type { RouteComponent } from '@emberkit/core';
286
295
  import { Head } from '@emberkit/core';
287
- import { Heading, Text, Button, Card, Badge, Alert } from '@emberkit/ui';
296
+ import { Heading, Text, Button, Card, Badge, Alert, Icon } from '@emberkit/ui';
288
297
 
289
298
  const AboutPage: RouteComponent = () => {
290
299
  const features = [
291
- { icon: '⚙️', title: 'TypeScript-first', desc: 'Full type safety with intelligent autocomplete' },
292
- { icon: '🎨', title: 'UI Components', desc: 'Pre-built design system components' },
293
- { icon: '🎯', title: 'Tailwind CSS', desc: 'Utility-first styling framework' },
294
- { icon: '📁', title: 'File Routing', desc: 'Automatic routes from file structure' },
300
+ { icon: 'type' as const, title: 'TypeScript-first', desc: 'Full type safety with intelligent autocomplete' },
301
+ { icon: 'grid' as const, title: 'UI Components', desc: 'Pre-built design system components' },
302
+ { icon: 'zap' as const, title: 'Tailwind CSS', desc: 'Utility-first styling framework' },
303
+ { icon: 'folder' as const, title: 'File Routing', desc: 'Automatic routes from file structure' },
295
304
  ];
296
305
 
297
306
  const techStack = ['EmberKit', 'TypeScript', 'Tailwind CSS', 'Vite', 'JSX', 'Design System'];
@@ -331,7 +340,9 @@ const AboutPage: RouteComponent = () => {
331
340
  <div className="grid sm:grid-cols-2 gap-4">
332
341
  {features.map((f) => (
333
342
  <Card key={f.title} padding="lg" className="hover:border-ember-500/50 transition-all hover:-translate-y-0.5">
334
- <div className="text-2xl mb-3">{f.icon}</div>
343
+ <div className="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-ember-400/20 via-fuchsia-500/10 to-cyan-500/10 text-ember-300 ring-1 ring-ember-400/25 mb-3">
344
+ <Icon name={f.icon} size={24} className="drop-shadow-[0_0_8px_rgba(249,115,22,0.35)]" />
345
+ </div>
335
346
  <Heading level="h3" size="md" weight="semibold" className="mb-1">
336
347
  {f.title}
337
348
  </Heading>
@@ -359,7 +370,10 @@ const AboutPage: RouteComponent = () => {
359
370
 
360
371
  {/* Benefits Alert */}
361
372
  <Alert variant="success">
362
- <strong>Pro Tip:</strong> This template uses the EmberKit design system components. Check the component library documentation to learn about all available components and their capabilities.
373
+ <span className="inline-flex items-start gap-2">
374
+ <Icon name="emberkit" size={18} className="text-amber-400 shrink-0 mt-0.5 drop-shadow-[0_0_8px_rgba(251,191,36,0.4)]" />
375
+ <span><strong>Pro Tip:</strong> This template uses the EmberKit design system components. Check the component library documentation to learn about all available components and their capabilities.</span>
376
+ </span>
363
377
  </Alert>
364
378
 
365
379
  {/* Back Button */}
@@ -0,0 +1,35 @@
1
+ function pluginsToArray(plugins) {
2
+ if (plugins == null)
3
+ return [];
4
+ return Array.isArray(plugins) ? plugins : [plugins];
5
+ }
6
+ /**
7
+ * Merges `emberkit.config` `vite` block with optional `vite.config.*` (file wins on top-level keys;
8
+ * `plugins` from both are concatenated in order).
9
+ */
10
+ export function mergeEmberkitViteConfig(emberkitConfig, viteFileConfig) {
11
+ const fromEmber = emberkitConfig?.vite ?? {};
12
+ const fromFile = viteFileConfig ?? {};
13
+ return {
14
+ ...fromEmber,
15
+ ...fromFile,
16
+ plugins: [...pluginsToArray(fromEmber.plugins), ...pluginsToArray(fromFile.plugins)],
17
+ server: { ...fromEmber.server, ...fromFile.server },
18
+ define: {
19
+ ...fromEmber.define,
20
+ ...fromFile.define,
21
+ },
22
+ css: { ...fromEmber.css, ...fromFile.css },
23
+ optimizeDeps: { ...fromEmber.optimizeDeps, ...fromFile.optimizeDeps },
24
+ resolve: { ...fromEmber.resolve, ...fromFile.resolve },
25
+ esbuild: { ...fromEmber.esbuild, ...fromFile.esbuild },
26
+ build: {
27
+ ...fromEmber.build,
28
+ ...fromFile.build,
29
+ rollupOptions: {
30
+ ...(fromEmber.build?.rollupOptions ?? {}),
31
+ ...(fromFile.build?.rollupOptions ?? {}),
32
+ },
33
+ },
34
+ };
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emberkit/cli",
3
- "version": "0.6.5",
3
+ "version": "0.6.8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "CLI tool for EmberKit projects",
@@ -37,7 +37,16 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "inquirer": "^9.2.0"
40
+ "inquirer": "^9.2.0",
41
+ "vite": "^6.0.0"
42
+ },
43
+ "peerDependencies": {
44
+ "vite": "^5.0.0 || ^6.0.0"
45
+ },
46
+ "peerDependenciesMeta": {
47
+ "vite": {
48
+ "optional": false
49
+ }
41
50
  },
42
51
  "devDependencies": {
43
52
  "@eslint/js": "^10.0.1",