create-apexjs 0.6.3 → 0.6.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/package.json +1 -1
- package/templates/default/AGENTS.md +4 -2
- package/templates/default/pages/about.alpine +1 -1
- package/templates/default/pages/blog/[slug].alpine +1 -1
- package/templates/default/pages/blog/index.alpine +1 -1
- package/templates/default/pages/index.alpine +1 -1
- package/templates/features/auth/pages/account.alpine +1 -1
- package/templates/features/data/pages/guestbook.alpine +1 -1
- package/templates/features/i18n/pages/hello.alpine +1 -1
package/package.json
CHANGED
|
@@ -56,13 +56,15 @@ tests/*.test.ts Vitest. createTestApp boots the whole app in-process.
|
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## The `.alpine` single-file component
|
|
59
|
+
`.alpine` is **TypeScript-only** — `<script>` blocks are always TS; `lang` is optional
|
|
60
|
+
(a `lang="js"` is a parse error).
|
|
59
61
|
```alpine
|
|
60
|
-
<script server
|
|
62
|
+
<script server>
|
|
61
63
|
// Runs on the server. loader() data becomes the page's x-data (real HTML first).
|
|
62
64
|
export function loader() { return { title: 'Hello' } }
|
|
63
65
|
export function head() { return { title: 'Hello' } } // SEO
|
|
64
66
|
</script>
|
|
65
|
-
<script client
|
|
67
|
+
<script client>
|
|
66
68
|
// Optional client-only logic; import composables here.
|
|
67
69
|
</script>
|
|
68
70
|
<template x-data>
|