create-ereo 0.1.29 → 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.
- package/dist/index.js +4 -18
- 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
|
|
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
|
],
|
|
@@ -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:
|
|
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
|
` : ""}
|