chore: prepare first release 1.0.1
This commit is contained in:
@@ -99,6 +99,21 @@ export default nextConfig;
|
||||
eslintConfig
|
||||
);
|
||||
|
||||
// Create env validation script
|
||||
await fs.ensureDir(path.join(fullPath, "scripts"));
|
||||
await fs.writeFile(
|
||||
path.join(fullPath, "scripts/validate-env.ts"),
|
||||
`import { validateMintelEnv } from "@mintel/next-utils";
|
||||
|
||||
try {
|
||||
validateMintelEnv();
|
||||
console.log("✅ Environment variables validated");
|
||||
} catch (error) {
|
||||
process.exit(1);
|
||||
}
|
||||
`
|
||||
);
|
||||
|
||||
// Create basic src structure
|
||||
await fs.ensureDir(path.join(fullPath, "src/app/[locale]"));
|
||||
await fs.writeFile(
|
||||
@@ -186,10 +201,14 @@ export default function RootLayout({
|
||||
|
||||
await fs.writeFile(
|
||||
path.join(fullPath, "src/app/[locale]/page.tsx"),
|
||||
`export default function Home() {
|
||||
`import { useTranslations } from 'next-intl';
|
||||
|
||||
export default function Home() {
|
||||
const t = useTranslations('Index');
|
||||
|
||||
return (
|
||||
<main>
|
||||
<h1>Welcome to ${projectName}</h1>
|
||||
<h1>{t('title')} to ${projectName}</h1>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user