@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.
- package/bin/webjs.js +1 -1
- package/lib/app-icon.js +55 -0
- package/lib/create.js +30 -20
- package/lib/dev-supervisor.js +16 -1
- package/lib/doctor/codes.js +1 -0
- package/lib/doctor/probes/app-icon.js +36 -0
- package/lib/doctor/runner.js +2 -0
- package/lib/gallery-shell-files.js +1 -1
- package/lib/resolve-bin.js +26 -0
- package/package.json +2 -2
- package/templates/.agents/rules/workflow.md +14 -17
- package/templates/.agents/skills/webjs/SKILL.md +3 -1
- package/templates/.agents/skills/webjs/references/built-ins.md +2 -0
- package/templates/.agents/skills/webjs/references/routing-and-pages.md +18 -4
- package/templates/.agents/skills/webjs/references/runtime.md +2 -0
- package/templates/.claude/hooks/nudge-uncommitted.sh +7 -0
- package/templates/AGENTS.md +47 -77
- package/templates/CLAUDE.md +14 -16
- package/templates/CONVENTIONS.md +10 -11
- package/templates/gallery/app/icon.ts +8 -6
- package/templates/gallery/app/manifest.ts +4 -1
- package/templates/partials/agents-playbook-fullstack.md +566 -130
- package/templates/scripts/clear-gallery.mjs +6 -6
- package/templates/public/favicon.svg +0 -12
|
@@ -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
|
|
151
|
-
console.log('Next:
|
|
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]"
|
|
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
|
-
//
|
|
195
|
-
//
|
|
196
|
-
|
|
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>
|