@rshono/core 1.0.0-rc.2 → 1.0.0-rc.3
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 +3 -3
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Minimalist web framework — [Hono](https://hono.dev) + [Rspack](https://rspack.
|
|
|
10
10
|
One required file (`src/routes.ts`), one optional file (`src/server.ts`), and you get a dev server with HMR, streaming SSR with RSC hydration, server actions with progressive enhancement, soft navigation, build-time prerendering, and hard env/secret safety.
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
|
|
13
|
+
npx @rshono/create@latest my-app # scaffold one, with a deploy target and tooling of your choosing
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
```bash
|
|
@@ -132,7 +132,7 @@ Call them directly from client code (typed args and result), or wire them to `<f
|
|
|
132
132
|
@import 'tailwindcss';
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
Keep `type: 'css/auto'` rather than `'css'`, or `*.module.css` stops being a CSS module. `
|
|
135
|
+
Keep `type: 'css/auto'` rather than `'css'`, or `*.module.css` stops being a CSS module. `npx @rshono/create@latest --tailwind` writes all four of these for you.
|
|
136
136
|
|
|
137
137
|
## Static files
|
|
138
138
|
|
|
@@ -221,7 +221,7 @@ export default defineConfig({
|
|
|
221
221
|
|
|
222
222
|
- **unit** — the parsers and path maths (`bodySizeLimit`, `allowedOrigins`, SSG paths and traversal, control-signal digests, page-file scanning, `Vary`/`ETag` helpers). Imports the built `dist/`, so it also proves the published output loads in plain Node.
|
|
223
223
|
- **compression** — that gzip does not swallow a streamed response: a chunk the renderer flushes has to reach the client while the response is still open, which is the one property the platform `CompressionStream` would quietly break.
|
|
224
|
-
- **production e2e** — builds `
|
|
224
|
+
- **production e2e** — builds `apps/testbed`, boots the real production server, and asserts pages, flight protocol, actions (client + progressive enhancement), CSRF rejection, secret stripping in bundles _and_ rendered HTML, SSG output with `ETag`/304, cache and security headers, and error reporting. Settings baked into the bundle (CSP, CSRF allowlist/origin-check, body-size cap) each get their own build from a fixture config (`test/fixtures/`, via `rshono build --config`).
|
|
225
225
|
- **minimal app** — a fixture with `src/routes.ts` and nothing else: no `server.ts`, no `public/`, no config, no `notFound`/`error` pages. Everything the docs call optional, actually left out.
|
|
226
226
|
- **postcss** — a Tailwind fixture wiring the loader up through the `rspack` hook, from an `@import "tailwindcss"` nothing could resolve through to compiled utilities in the stylesheet the served page links. The documented four lines, actually run.
|
|
227
227
|
- **dev** — a smoke test through the dev server's worker + proxy.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rshono/core",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "Minimalist web framework — Hono + Rspack + React Server Components",
|
|
5
5
|
"author": "Lasse <lasse@lassetange.com> (https://www.lassetange.com)",
|
|
6
6
|
"license": "ISC",
|
|
@@ -50,15 +50,6 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"scripts": {
|
|
54
|
-
"build": "tsc -p tsconfig.build.json && node scripts/copy-dist-assets.mjs",
|
|
55
|
-
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
56
|
-
"dev": "tsc -p tsconfig.build.json --watch",
|
|
57
|
-
"typecheck": "tsc --noEmit",
|
|
58
|
-
"test": "npm run build && node --test --test-concurrency=1 \"test/*.test.mjs\"",
|
|
59
|
-
"test:browser": "npm run build && playwright test",
|
|
60
|
-
"prepack": "npm run build"
|
|
61
|
-
},
|
|
62
53
|
"dependencies": {
|
|
63
54
|
"@hono/node-server": "^2.0.11",
|
|
64
55
|
"@rspack/core": "2.1.5",
|
|
@@ -82,5 +73,13 @@
|
|
|
82
73
|
"hono": "^4.8.0",
|
|
83
74
|
"react": "^19.1.0",
|
|
84
75
|
"react-dom": "^19.1.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "tsc -p tsconfig.build.json && node scripts/copy-dist-assets.mjs",
|
|
79
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
80
|
+
"dev": "tsc -p tsconfig.build.json --watch",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"test": "npm run build && node --test --test-concurrency=1 \"test/*.test.mjs\"",
|
|
83
|
+
"test:browser": "npm run build && playwright test"
|
|
85
84
|
}
|
|
86
|
-
}
|
|
85
|
+
}
|