@helloleo/plugins 0.2.0-beta.3 → 0.2.0-beta.4
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
CHANGED
|
@@ -24924,7 +24924,7 @@ var scaffold = tool({
|
|
|
24924
24924
|
"- Add routes as files in src/routes/. Do not default export route components. Routing and layout conventions are documented in src/routes/README.md, read it before adding routes.",
|
|
24925
24925
|
"- For JSON/CRUD APIs, add server routes under src/routes/api/. Read src/routes/api/health.ts first, add routes as needed.",
|
|
24926
24926
|
"- shadcn/ui components are already in src/components/ui.",
|
|
24927
|
-
"- Design system: edit the
|
|
24927
|
+
"- Design system: style exclusively with the token utilities, never hardcoded colors. To change the look, edit the token values in src/styles.css (light and dark blocks).",
|
|
24928
24928
|
"- The database schema lives in src/db/schema.ts. Migrations run automatically.",
|
|
24929
24929
|
"- Always fetch data with react-query (useQuery and useMutation).",
|
|
24930
24930
|
"",
|
|
@@ -19,6 +19,9 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
|
|
|
19
19
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
|
|
20
20
|
{ title: '{{LEO_NAME}}' },
|
|
21
21
|
{ name: 'description', content: '{{LEO_DESCRIPTION}}' },
|
|
22
|
+
{ property: 'og:title', content: '{{LEO_NAME}}' },
|
|
23
|
+
{ property: 'og:description', content: '{{LEO_DESCRIPTION}}' },
|
|
24
|
+
{ property: 'og:type', content: 'website' },
|
|
22
25
|
],
|
|
23
26
|
links: [
|
|
24
27
|
{ rel: 'stylesheet', href: appCss },
|
|
@@ -33,8 +36,6 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
|
|
|
33
36
|
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap',
|
|
34
37
|
},
|
|
35
38
|
],
|
|
36
|
-
// Leo preview telemetry, do not delete
|
|
37
|
-
scripts: [{ src: '/leo-runtime.js' }],
|
|
38
39
|
}),
|
|
39
40
|
component: RootComponent,
|
|
40
41
|
})
|
package/package.json
CHANGED
|
@@ -19,6 +19,9 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
|
|
|
19
19
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
|
|
20
20
|
{ title: '{{LEO_NAME}}' },
|
|
21
21
|
{ name: 'description', content: '{{LEO_DESCRIPTION}}' },
|
|
22
|
+
{ property: 'og:title', content: '{{LEO_NAME}}' },
|
|
23
|
+
{ property: 'og:description', content: '{{LEO_DESCRIPTION}}' },
|
|
24
|
+
{ property: 'og:type', content: 'website' },
|
|
22
25
|
],
|
|
23
26
|
links: [
|
|
24
27
|
{ rel: 'stylesheet', href: appCss },
|
|
@@ -33,8 +36,6 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
|
|
|
33
36
|
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap',
|
|
34
37
|
},
|
|
35
38
|
],
|
|
36
|
-
// Leo preview telemetry, do not delete
|
|
37
|
-
scripts: [{ src: '/leo-runtime.js' }],
|
|
38
39
|
}),
|
|
39
40
|
component: RootComponent,
|
|
40
41
|
})
|
package/src/tools/scaffold.ts
CHANGED
|
@@ -101,7 +101,7 @@ export const scaffold = tool({
|
|
|
101
101
|
"- Add routes as files in src/routes/. Do not default export route components. Routing and layout conventions are documented in src/routes/README.md, read it before adding routes.",
|
|
102
102
|
"- For JSON/CRUD APIs, add server routes under src/routes/api/. Read src/routes/api/health.ts first, add routes as needed.",
|
|
103
103
|
"- shadcn/ui components are already in src/components/ui.",
|
|
104
|
-
"- Design system: edit the
|
|
104
|
+
"- Design system: style exclusively with the token utilities, never hardcoded colors. To change the look, edit the token values in src/styles.css (light and dark blocks).",
|
|
105
105
|
"- The database schema lives in src/db/schema.ts. Migrations run automatically.",
|
|
106
106
|
"- Always fetch data with react-query (useQuery and useMutation).",
|
|
107
107
|
"",
|