honox 0.0.3 → 0.1.0
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 +17 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,22 @@
|
|
|
12
12
|
- **Islands hydration** - If you want interactions, create an island. JavaScript is hydrated only for it.
|
|
13
13
|
- **Middleware** - It works as Hono, so you can use a lot of Hono's middleware.
|
|
14
14
|
|
|
15
|
+
## Installing
|
|
16
|
+
|
|
17
|
+
You can install the `honox` package from the npm.
|
|
18
|
+
|
|
19
|
+
```txt
|
|
20
|
+
npm install hono honox
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Starter template
|
|
24
|
+
|
|
25
|
+
If you are starting a new HonoX project, use the `hono-create` command. Run the following and choose `x-basic`.
|
|
26
|
+
|
|
27
|
+
```txt
|
|
28
|
+
npm create hono@latest
|
|
29
|
+
```
|
|
30
|
+
|
|
15
31
|
## Get Started - Basic
|
|
16
32
|
|
|
17
33
|
Let's create a basic HonoX application using hono/jsx as a renderer. This application has no client JavaScript and renders JSX on the server side.
|
|
@@ -519,7 +535,7 @@ import mdx from '@mdx-js/rollup'
|
|
|
519
535
|
import honox from 'honox/vite'
|
|
520
536
|
import remarkFrontmatter from 'remark-frontmatter'
|
|
521
537
|
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
|
|
522
|
-
import { defineConfig } from '
|
|
538
|
+
import { defineConfig } from 'vite'
|
|
523
539
|
|
|
524
540
|
const entry = './app/server.ts'
|
|
525
541
|
|
|
@@ -645,7 +661,6 @@ wrangler pages deploy ./dist
|
|
|
645
661
|
|
|
646
662
|
## Examples
|
|
647
663
|
|
|
648
|
-
- [/example](./examples/)
|
|
649
664
|
- https://github.com/yusukebe/honox-examples
|
|
650
665
|
|
|
651
666
|
## Related projects
|