create-oven 0.2.3 → 0.2.4

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 (2) hide show
  1. package/index.js +11 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -131,14 +131,14 @@ async function main() {
131
131
 
132
132
  // Show version
133
133
  if (args.includes('--version') || args.includes('-v')) {
134
- console.log('create-oven v0.2.3');
134
+ console.log('create-oven v0.2.4');
135
135
  process.exit(0);
136
136
  }
137
137
 
138
138
  console.log(`
139
139
  ${c.bold}${c.cyan} ╔═══════════════════════════════════════╗
140
140
  ║ ║
141
- ║ 🔥 Create Oven App v0.2.3
141
+ ║ 🔥 Create Oven App v0.2.4
142
142
  ║ ║
143
143
  ║ Next.js-style framework for Bun ║
144
144
  ║ ║
@@ -229,7 +229,7 @@ ${c.bold}${c.cyan} ╔═══════════════════
229
229
  const spin2 = spinner('Creating configuration files...');
230
230
 
231
231
  // package.json
232
- const ext = useTypescript ? 'ts' : 'js';
232
+ const ext = useTypescript ? 'tsx' : 'js';
233
233
  const pkg = {
234
234
  name: projectName,
235
235
  version: '0.1.0',
@@ -238,7 +238,7 @@ ${c.bold}${c.cyan} ╔═══════════════════
238
238
  dev: `bun run --hot ${useSrcDir ? 'src/' : ''}server.${ext}`,
239
239
  build: `bun build ./${useSrcDir ? 'src/' : ''}server.${ext} --outdir ./dist --target bun`,
240
240
  start: 'bun run dist/server.js',
241
- lint: useEslint ? 'eslint . --ext .ts,.tsx' : undefined,
241
+ lint: useEslint ? 'eslint . --ext .tsx' : undefined,
242
242
  },
243
243
  dependencies: {},
244
244
  devDependencies: {
@@ -276,7 +276,7 @@ ${c.bold}${c.cyan} ╔═══════════════════
276
276
  },
277
277
  baseUrl: '.',
278
278
  },
279
- include: [useSrcDir ? 'src/**/*.ts' : '**/*.ts', useSrcDir ? 'src/**/*.tsx' : '**/*.tsx'],
279
+ include: [useSrcDir ? 'src/**/*.tsx' : '**/*.tsx'],
280
280
  exclude: ['node_modules', 'dist'],
281
281
  };
282
282
  fs.writeFileSync(path.join(projectDir, 'tsconfig.json'), JSON.stringify(tsconfig, null, 2));
@@ -438,7 +438,7 @@ export default function RootLayout({ children }${useTypescript ? ': { children:
438
438
  \`;
439
439
  }
440
440
  `;
441
- fs.writeFileSync(path.join(appDir, `layout.${ext}x`), layoutContent);
441
+ fs.writeFileSync(path.join(appDir, `layout.${ext}`), layoutContent);
442
442
 
443
443
  // Home Page
444
444
  const homePageContent = `export const metadata = {
@@ -457,7 +457,7 @@ export default function HomePage() {
457
457
  <p ${useTailwind ? 'class="text-xl text-gray-600 mb-8"' : 'style="font-size: 1.25rem; color: #666; margin-bottom: 2rem;"'}>
458
458
  Get started by editing
459
459
  <code ${useTailwind ? 'class="px-2 py-1 bg-gray-100 rounded text-oven-400 font-mono"' : 'style="padding: 0.25rem 0.5rem; background: #f5f5f5; border-radius: 4px; color: #ff6b35; font-family: monospace;"'}>
460
- ${useSrcDir ? 'src/' : ''}app/page.${ext}x
460
+ ${useSrcDir ? 'src/' : ''}app/page.${ext}
461
461
  </code>
462
462
  </p>
463
463
 
@@ -497,7 +497,7 @@ export default function HomePage() {
497
497
  \`;
498
498
  }
499
499
  `;
500
- fs.writeFileSync(path.join(appDir, `page.${ext}x`), homePageContent);
500
+ fs.writeFileSync(path.join(appDir, `page.${ext}`), homePageContent);
501
501
 
502
502
  // Server file
503
503
  const serverContent = `/**
@@ -680,15 +680,15 @@ bun run dev
680
680
 
681
681
  Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
682
682
 
683
- You can start editing the page by modifying \`${useSrcDir ? 'src/' : ''}app/page.${ext}x\`. The page auto-updates as you edit the file.
683
+ You can start editing the page by modifying \`${useSrcDir ? 'src/' : ''}app/page.${ext}\`. The page auto-updates as you edit the file.
684
684
 
685
685
  ## Project Structure
686
686
 
687
687
  \`\`\`
688
688
  ${projectName}/
689
689
  ├── ${useSrcDir ? 'src/' : ''}app/
690
- │ ├── layout.${ext}x # Root layout
691
- │ ├── page.${ext}x # Home page (/)
690
+ │ ├── layout.${ext} # Root layout
691
+ │ ├── page.${ext} # Home page (/)
692
692
  │ └── globals.css # Global styles
693
693
  ├── public/ # Static files
694
694
  ${useTailwind ? '├── tailwind.config.js # Tailwind config\n' : ''}├── oven.config.${ext} # Oven config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-oven",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Create a new Oven project - Next.js-style framework for Bun",
5
5
  "type": "module",
6
6
  "bin": {