create-ereo 0.1.28 → 0.1.31

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/dist/index.js +11 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -478,7 +478,7 @@ async function generateTailwindProject(projectDir, projectName, typescript, trac
478
478
  };
479
479
  await Bun.write(join(projectDir, "package.json"), JSON.stringify(packageJson, null, 2));
480
480
  const ereoConfig = `
481
- import { defineConfig, env } from '@ereo/core';
481
+ import { defineConfig } from '@ereo/core';
482
482
  import tailwind from '@ereo/plugin-tailwind';
483
483
 
484
484
  export default defineConfig({
@@ -490,13 +490,6 @@ export default defineConfig({
490
490
  build: {
491
491
  target: 'bun',
492
492
  },
493
- // Environment variable validation
494
- env: {
495
- NODE_ENV: env.enum(['development', 'production', 'test'] as const).default('development'),
496
- // Add your environment variables here:
497
- // DATABASE_URL: env.string().required(),
498
- // API_KEY: env.string(),
499
- },
500
493
  plugins: [
501
494
  tailwind(),
502
495
  ],
@@ -673,14 +666,14 @@ export interface ActionResult<T = unknown> {
673
666
  slug: 'full-stack-tracing',
674
667
  title: 'Full-Stack Tracing with @ereo/trace',
675
668
  excerpt: 'See every request from HTTP to database in a beautiful timeline. Zero-config observability for your EreoJS app.',
676
- content: \\\`
669
+ content: \`
677
670
  # Full-Stack Tracing with @ereo/trace
678
671
 
679
672
  EreoJS includes built-in full-stack observability that traces every request across all 11 framework layers.
680
673
 
681
674
  ## Enabling Tracing
682
675
 
683
- Tracing is already configured in this project! Run \\\\\\\`bun run dev\\\\\\\` and open http://localhost:3000/__ereo/traces to see the trace viewer.
676
+ Tracing is already configured in this project! Run \\\`bun run dev\\\` and open http://localhost:3000/__ereo/traces to see the trace viewer.
684
677
 
685
678
  ## What Gets Traced
686
679
 
@@ -694,18 +687,18 @@ Tracing is already configured in this project! Run \\\\\\\`bun run dev\\\\\\\` a
694
687
 
695
688
  The CLI reporter shows a live tree view of every request:
696
689
 
697
- \\\\\\\`\\\\\\\`\\\\\\\`
690
+ \\\`\\\`\\\`
698
691
  GET /blog 200 42.1ms
699
692
  |-- routing 1.2ms matched /blog
700
693
  |-- data 38.4ms
701
694
  | |-- posts 35.1ms db query
702
- \\\\\\\\\\\\\\\`-- render 2.5ms
703
- \\\\\\\`\\\\\\\`\\\\\\\`
695
+ \\\\\\\`-- render 2.5ms
696
+ \\\`\\\`\\\`
704
697
 
705
698
  ## Production
706
699
 
707
- For production, alias \\\\\\\`@ereo/trace\\\\\\\` to \\\\\\\`@ereo/trace/noop\\\\\\\` \u2014 a 592-byte no-op that tree-shakes to zero runtime cost.
708
- \\\`.trim(),
700
+ For production, alias \\\`@ereo/trace\\\` to \\\`@ereo/trace/noop\\\` \u2014 a 592-byte no-op that tree-shakes to zero runtime cost.
701
+ \`.trim(),
709
702
  author: 'EreoJS Team',
710
703
  date: '2024-02-01',
711
704
  readTime: '3 min read',
@@ -1383,7 +1376,8 @@ export default function BlogLayout({ children }${ts ? ": BlogLayoutProps" : ""})
1383
1376
  const blogIndex = `
1384
1377
  import { PostCard } from '~/components/PostCard';
1385
1378
  import { getAllPosts, simulateDelay } from '~/lib/data';
1386
-
1379
+ ${ts ? `import type { Post } from '~/lib/types';
1380
+ ` : ""}
1387
1381
  /**
1388
1382
  * Loader for the blog index page.
1389
1383
  */
@@ -1395,15 +1389,7 @@ export async function loader() {
1395
1389
 
1396
1390
  ${ts ? `interface BlogIndexProps {
1397
1391
  loaderData: {
1398
- posts: Array<{
1399
- slug: string;
1400
- title: string;
1401
- excerpt: string;
1402
- author: string;
1403
- date: string;
1404
- readTime: string;
1405
- tags: string[];
1406
- }>;
1392
+ posts: Post[];
1407
1393
  };
1408
1394
  }
1409
1395
  ` : ""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ereo",
3
- "version": "0.1.28",
3
+ "version": "0.1.31",
4
4
  "license": "MIT",
5
5
  "author": "Ereo Team",
6
6
  "homepage": "https://ereo.dev",