Skip to content

Commit

Permalink
🎉 (/honox-minimal) Add new scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comamoca committed Jul 9, 2024
1 parent b1ccb00 commit 00945e8
Show file tree
Hide file tree
Showing 10 changed files with 1,419 additions and 0 deletions.
34 changes: 34 additions & 0 deletions honox-minimal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# prod
dist/

# dev
.hono/
.wrangler/
.yarn/
!.yarn/releases
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf

# deps
node_modules/

# env
.env
.env.production
.dev.vars

# logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# misc
.DS_Store
54 changes: 54 additions & 0 deletions honox-minimal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<div align="center">

<img src="https://emoji2svg.deno.dev/api/🦊" alt="eyecatch" height="100">

# honox-minimal

Template of Honox minimal template.

<br>
<br>


</div>

<div align="center">

</div>

## 🚀 How to use

```sh
bun i # or bun i --yarn
bun run dev
```
## ⬇️ Install

```sh
# using scaffox
scaffox https://github.com/comamoca/scaffold

# using degit
degit https://github.com/comamoca/scaffold/honox-minimal
```

## ⛏️ Development

```sh
bun run dev
```
## 📜 License

MIT

### 🧩 Modules

- [HonoX](https://github.com/honojs/honox)

## 👏 Affected projects

- [honojs/starter](https://github.com/honojs/starter)

## 💕 Special Thanks

- [Hono](https://github.com/honojs/hono/)
9 changes: 9 additions & 0 deletions honox-minimal/app/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createRoute } from "honox/factory";

export default createRoute((c) => {
return c.render(
<div>
<h1>Hello!</h1>
</div>,
);
});
8 changes: 8 additions & 0 deletions honox-minimal/app/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createApp } from "honox/server";
import { showRoutes } from "hono/dev";

const app = createApp();

showRoutes(app);

export default app;
Binary file added honox-minimal/bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions honox-minimal/bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install.lockfile]
print = "yarn"
17 changes: 17 additions & 0 deletions honox-minimal/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "honox-minimal",
"type": "module",
"dependencies": { "hono": "^4.4.12", "honox": "^0.1.23", "vite": "^5.3.3" },
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"scripts": {
"dev": "vite",
"build": "vite build --mode client && vite build",
"preview": "wrangler pages dev",
"deploy": "$npm_execpath run build && wrangler pages deploy"
}
}
23 changes: 23 additions & 0 deletions honox-minimal/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"skipLibCheck": true,
"lib": [
"ESNext",
"DOM"
],
"types": [
"vite/client",
"@cloudflare/workers-types"
],
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
},
"include": [
"**/*.ts",
"**/*.tsx"
]
}
6 changes: 6 additions & 0 deletions honox-minimal/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import honox from "honox/vite";

export default defineConfig({
plugins: [honox()],
});
Loading

0 comments on commit 00945e8

Please sign in to comment.