@webjsdev/cli 0.10.67 → 0.10.69

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.
@@ -147,8 +147,8 @@ for (const f of ['db/dev.db', 'db/dev.db-shm', 'db/dev.db-wal']) rm(f);
147
147
  // children before test/ so it reads as empty.
148
148
  for (const d of ['app/api', 'test/unit', 'test/e2e', 'test']) if (pruneEmpty(d)) removed++;
149
149
 
150
- console.log(`Gallery cleared (${removed} paths removed). The agent skill and your database wiring are kept. Build your own design system: run \`npx webjsdev ui add <name>\` and theme it (see .agents/skills/webjs/references/styling.md).`);
151
- console.log('Next: regenerate the database (db:generate then db:migrate), then start the dev server and build your app in app/ and modules/.');
150
+ console.log(`Gallery cleared (${removed} paths removed). The agent docs and your database wiring are kept.`);
151
+ console.log('Next: follow the build steps in AGENTS.md (schema, then db:generate and db:migrate, then modules/ and app/).');
152
152
 
153
153
  function MINIMAL_PAGE() {
154
154
  return `import { html } from '@webjsdev/core';
@@ -163,7 +163,7 @@ export default function Home() {
163
163
  <h1 class="text-4xl font-bold tracking-tight m-0">Your app</h1>
164
164
  <p class="text-base leading-relaxed m-0 opacity-70">
165
165
  The gallery is cleared. This is <code class="text-[0.9em]">app/page.ts</code>. Build your
166
- app from here. The guide is <code class="text-[0.9em]">.agents/skills/webjs/SKILL.md</code>.
166
+ app from here. The guide is <code class="text-[0.9em]">AGENTS.md</code>.
167
167
  </p>
168
168
  <nav class="flex items-center gap-5 text-sm opacity-70">
169
169
  <a href="https://webjs.dev/docs" target="_blank" rel="noopener" class="hover:opacity-100 transition-opacity no-underline">Docs</a>
@@ -191,9 +191,9 @@ import type { LayoutProps } from '@webjsdev/core';
191
191
  * to pull primitives, then theme them here.
192
192
  */
193
193
 
194
- // Favicon via metadata.icons so the framework emits the <link> into <head> (a
195
- // hand-written <link> in the template body is ignored by browsers).
196
- export const metadata = { icons: '/public/favicon.svg' };
194
+ // The favicon is app/icon.svg (and the manifest app/manifest.webmanifest): the
195
+ // framework links both into <head>, so nothing is declared here. Replace the
196
+ // placeholder icon with this app's own.
197
197
 
198
198
  export default function RootLayout({ children }: LayoutProps) {
199
199
  return html\`
@@ -1,12 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="WebJs">
2
- <!-- Matches the gallery navbar brand mark (a rounded square with a
3
- foreground -> muted-foreground gradient), using the DARK-theme token
4
- values (#dee2e6 -> #94989c) so it reads on a dark browser tab bar. -->
5
- <defs>
6
- <linearGradient id="wj" x1="0" y1="0" x2="1" y2="1">
7
- <stop offset="0" stop-color="#dee2e6"/>
8
- <stop offset="1" stop-color="#94989c"/>
9
- </linearGradient>
10
- </defs>
11
- <rect width="32" height="32" rx="10" fill="url(#wj)"/>
12
- </svg>