create-apexjs 0.6.1 → 0.6.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-apexjs",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Scaffold a new Apex JS app",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@ an MCP tool**. This file tells you (the agent) how to work here effectively.
19
19
  ```bash
20
20
  apex make page dashboard # pages/dashboard.alpine (a route → /dashboard)
21
21
  apex make component Card # components/Card.alpine (<Card /> in templates)
22
+ apex make component ui/Navbar # group in a folder → components/ui/Navbar.alpine (<UiNavbar />)
22
23
  apex make model Post title:string body:string # models/Post.ts → migration + REST + MCP CRUD
23
24
  apex make api webhooks # server/api/webhooks.ts (defineApexRoute; also an MCP tool)
24
25
  apex make service Billing # services/BillingService.ts
@@ -37,7 +38,8 @@ apex test # run Vitest
37
38
  ```
38
39
  pages/**/*.alpine Routes. File path → URL. [param] = dynamic. index.alpine → parent path.
39
40
  layouts/*.alpine Shared shells; default.alpine wraps every page (<slot/>).
40
- components/*.alpine Reusable <PascalCase/> components (props via attributes).
41
+ components/**/*.alpine Reusable <PascalCase/> components (props via attributes). Group in
42
+ folders: components/ui/Card.alpine → <UiCard/> (folder-namespaced, Nuxt-style).
41
43
  server/api/*.ts Typed routes (defineApexRoute) / model resources → REST + MCP.
42
44
  server/auth.ts Identity (sessionAuth) → ctx.user everywhere. (from `apex extend auth`)
43
45
  models/*.ts defineModel → schema + migration + table + REST/MCP CRUD.