@evjs/create-app 0.0.30 → 0.0.32
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/README.md +7 -4
- package/package.json +1 -1
- package/templates/api-routes/README.md +2 -2
- package/templates/api-routes/package.json +1 -1
- package/templates/api-routes/src/server.ts +1 -1
- package/templates/basic/README.md +2 -2
- package/templates/basic/package.json +1 -1
- package/templates/complex-routing/README.md +1 -1
- package/templates/complex-routing/package.json +1 -1
- package/templates/custom-ws-transport/README.md +2 -2
- package/templates/custom-ws-transport/package.json +1 -1
- package/templates/mpa/README.md +3 -3
- package/templates/mpa/package.json +1 -1
- package/templates/plugin-authoring/README.md +3 -3
- package/templates/plugin-authoring/package.json +1 -1
- package/templates/with-sqlite/README.md +2 -2
- package/templates/with-sqlite/package.json +1 -1
- package/templates/with-tailwind/package.json +1 -1
- package/templates/with-trpc/README.md +2 -2
- package/templates/with-trpc/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,12 +22,15 @@ npx @evjs/create-app [name] [options]
|
|
|
22
22
|
|
|
23
23
|
| Name | Description |
|
|
24
24
|
|------|-------------|
|
|
25
|
-
| **`basic
|
|
26
|
-
| **`
|
|
27
|
-
| **`
|
|
28
|
-
| **`configured-server-fns`** | Full-stack with `@evjs/create-app` + `ev.config.ts`. |
|
|
25
|
+
| **`basic`** | Basic full-stack example with routing and server functions. |
|
|
26
|
+
| **`mpa`** | Multi-page application with separate page entries. |
|
|
27
|
+
| **`api-routes`** | Programmatic REST API routes via `createRoute()`. |
|
|
29
28
|
| **`complex-routing`** | Nested layouts, loaders, and search params. |
|
|
29
|
+
| **`custom-ws-transport`** | Custom transport example using WebSockets. |
|
|
30
|
+
| **`plugin-authoring`** | Starter focused on plugin authoring and bundler hooks. |
|
|
31
|
+
| **`with-sqlite`** | Full-stack CRUD example backed by SQLite. |
|
|
30
32
|
| **`with-tailwind`** | Ready-to-go Tailwind CSS integration. |
|
|
33
|
+
| **`with-trpc`** | Example interoperating with tRPC. |
|
|
31
34
|
|
|
32
35
|
## Quick Start via npx
|
|
33
36
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ The standard starting point for an evjs application. Demonstrates both client-si
|
|
|
5
5
|
## Run
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm run dev
|
|
8
|
+
npm run dev
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Key Files
|
|
@@ -23,5 +23,5 @@ npm run dev -w example-basic
|
|
|
23
23
|
- Client-side routing with `createApp` and `createRoute`
|
|
24
24
|
- `"use server"` directive for auto-discovered server functions
|
|
25
25
|
- `useQuery(getUsers)` for type-safe data fetching
|
|
26
|
-
- `useMutation({ mutationFn: createUser })` for mutations
|
|
26
|
+
- `useMutation({ mutationFn: createUser })` for server-side mutations
|
|
27
27
|
- `getFnQueryKey(getUsers)` for cache invalidation
|
package/templates/mpa/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# mpa
|
|
2
2
|
|
|
3
3
|
Minimal multi-page application example using evjs `pages` config.
|
|
4
4
|
|
|
5
5
|
## Run
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm run dev
|
|
8
|
+
npm run dev
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Build
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm run build
|
|
14
|
+
npm run build
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Key Files
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# plugin-authoring
|
|
2
2
|
|
|
3
3
|
Demonstrates the evjs plugin system with all available hooks:
|
|
4
4
|
|
|
5
|
-
- **`
|
|
5
|
+
- **`bundlerConfig`** — modify the underlying bundler config (type-safe via `utoopack()` helper)
|
|
6
6
|
- **`buildStart`** — run logic before compilation begins
|
|
7
7
|
- **`buildEnd`** — run logic after compilation completes
|
|
8
8
|
- **`transformHtml`** — modify the parsed HTML document after asset injection
|
|
@@ -17,4 +17,4 @@ npm run dev
|
|
|
17
17
|
|
|
18
18
|
1. Console output from `buildStart` and `buildEnd` hooks during build
|
|
19
19
|
2. The `<!-- Built with evjs | N asset(s) -->` comment in the output HTML (injected by `transformHtml`)
|
|
20
|
-
3. `.txt` file support added via the `
|
|
20
|
+
3. `.txt` file support added via the `bundlerConfig` hook (utoopack raw rule)
|