create-avalon 0.1.4 → 0.1.6
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/cli.js +5 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1203,7 +1203,8 @@ function generatePackageJson(config) {
|
|
|
1203
1203
|
const devDependencies = {
|
|
1204
1204
|
vite: "latest",
|
|
1205
1205
|
typescript: "latest",
|
|
1206
|
-
nitro: "latest"
|
|
1206
|
+
nitro: "latest",
|
|
1207
|
+
"vite-imagetools": "latest"
|
|
1207
1208
|
};
|
|
1208
1209
|
switch (config.styling) {
|
|
1209
1210
|
case "tailwind":
|
|
@@ -1301,6 +1302,7 @@ function generateViteConfig(config) {
|
|
|
1301
1302
|
` integrations: [${integrationsList}],`,
|
|
1302
1303
|
` modules: 'app/modules',`,
|
|
1303
1304
|
` layoutsDir: 'app/shared/layouts',`,
|
|
1305
|
+
` image: true,`,
|
|
1304
1306
|
` nitro: {`,
|
|
1305
1307
|
` preset: 'node_server',`,
|
|
1306
1308
|
` streaming: true,`,
|
|
@@ -1365,7 +1367,7 @@ export default async function HomeLayout({ children }: Readonly<LayoutProps>) {
|
|
|
1365
1367
|
// src/templates/pages.ts
|
|
1366
1368
|
function generateHomePage(config) {
|
|
1367
1369
|
return `export const metadata = {
|
|
1368
|
-
title: '
|
|
1370
|
+
title: 'Avalon — Islands Architecture',
|
|
1369
1371
|
description: 'A multi-framework islands architecture project powered by Avalon.',
|
|
1370
1372
|
};
|
|
1371
1373
|
|
|
@@ -1379,7 +1381,7 @@ export default async function HomePage() {
|
|
|
1379
1381
|
<p style={{ fontSize: '0.8rem', letterSpacing: '0.15em', textTransform: 'uppercase', color: '#818cf8', marginBottom: '1.5rem', fontWeight: 500 }}>Islands Architecture</p>
|
|
1380
1382
|
|
|
1381
1383
|
<h1 style={{ fontSize: 'clamp(2.5rem, 6vw, 4rem)', fontWeight: 700, lineHeight: 1.1, margin: '0 0 1.5rem', background: 'linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent' }}>
|
|
1382
|
-
|
|
1384
|
+
Avalon
|
|
1383
1385
|
</h1>
|
|
1384
1386
|
|
|
1385
1387
|
<p style={{ fontSize: '1.15rem', lineHeight: 1.7, color: '#94a3b8', marginBottom: '2.5rem', maxWidth: '480px', marginLeft: 'auto', marginRight: 'auto' }}>
|