Skip to content

Commit d284941

Browse files
committed
first working version
1 parent b25cfc2 commit d284941

27 files changed

+1334
-390
lines changed

.gitignore

Lines changed: 29 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,34 @@
1-
# Logs
2-
3-
logs
4-
_.log
5-
npm-debug.log_
6-
yarn-debug.log*
7-
yarn-error.log*
8-
lerna-debug.log*
9-
.pnpm-debug.log*
10-
11-
# Diagnostic reports (https://nodejs.org/api/report.html)
12-
13-
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
14-
15-
# Runtime data
16-
17-
pids
18-
_.pid
19-
_.seed
20-
\*.pid.lock
21-
22-
# Directory for instrumented libs generated by jscoverage/JSCover
23-
24-
lib-cov
25-
26-
# Coverage directory used by tools like istanbul
27-
28-
coverage
29-
\*.lcov
30-
31-
# nyc test coverage
32-
33-
.nyc_output
34-
35-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36-
37-
.grunt
38-
39-
# Bower dependency directory (https://bower.io/)
40-
41-
bower_components
42-
43-
# node-waf configuration
44-
45-
.lock-wscript
46-
47-
# Compiled binary addons (https://nodejs.org/api/addons.html)
48-
49-
build/Release
50-
51-
# Dependency directories
52-
1+
# prod
2+
dist/
3+
!dist/client.js
4+
5+
# dev
6+
.yarn/
7+
!.yarn/releases
8+
.vscode/*
9+
!.vscode/launch.json
10+
!.vscode/*.code-snippets
11+
.idea/workspace.xml
12+
.idea/usage.statistics.xml
13+
.idea/shelf
14+
15+
# deps
5316
node_modules/
54-
jspm_packages/
55-
56-
# Snowpack dependency directory (https://snowpack.dev/)
57-
58-
web_modules/
59-
60-
# TypeScript cache
61-
62-
\*.tsbuildinfo
63-
64-
# Optional npm cache directory
65-
66-
.npm
67-
68-
# Optional eslint cache
69-
70-
.eslintcache
71-
72-
# Optional stylelint cache
73-
74-
.stylelintcache
75-
76-
# Microbundle cache
77-
78-
.rpt2_cache/
79-
.rts2_cache_cjs/
80-
.rts2_cache_es/
81-
.rts2_cache_umd/
82-
83-
# Optional REPL history
84-
85-
.node_repl_history
86-
87-
# Output of 'npm pack'
88-
89-
\*.tgz
90-
91-
# Yarn Integrity file
92-
93-
.yarn-integrity
94-
95-
# dotenv environment variable files
17+
.wrangler
9618

19+
# env
9720
.env
98-
.env.development.local
99-
.env.test.local
100-
.env.production.local
101-
.env.local
102-
103-
# parcel-bundler cache (https://parceljs.org/)
104-
105-
.cache
106-
.parcel-cache
107-
108-
# Next.js build output
109-
110-
.next
111-
out
112-
113-
# Nuxt.js build / generate output
114-
115-
.nuxt
116-
dist
117-
118-
# Gatsby files
119-
120-
.cache/
121-
122-
# Comment in the public line in if your project uses Gatsby and not Next.js
123-
124-
# https://nextjs.org/blog/next-9-1#public-directory-support
125-
126-
# public
127-
128-
# vuepress build output
129-
130-
.vuepress/dist
131-
132-
# vuepress v2.x temp and cache directory
133-
134-
.temp
135-
.cache
136-
137-
# Docusaurus cache and generated files
138-
139-
.docusaurus
140-
141-
# Serverless directories
142-
143-
.serverless/
144-
145-
# FuseBox cache
146-
147-
.fusebox/
148-
149-
# DynamoDB Local files
150-
151-
.dynamodb/
152-
153-
# TernJS port file
154-
155-
.tern-port
156-
157-
# Stores VSCode versions used for testing VSCode extensions
158-
159-
.vscode-test
160-
161-
# yarn v2
162-
163-
.yarn/cache
164-
.yarn/unplugged
165-
.yarn/build-state.yml
166-
.yarn/install-state.gz
167-
.pnp.\*
21+
.env.production
22+
.dev.vars
16823

169-
# wrangler project
24+
# logs
25+
logs/
26+
*.log
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
pnpm-debug.log*
31+
lerna-debug.log*
17032

171-
.dev.vars
172-
.wrangler/
33+
# misc
34+
.DS_Store

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```txt
2+
npm install
3+
npm run dev
4+
```
5+
6+
```txt
7+
npm run deploy
8+
```
9+
10+
[For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types):
11+
12+
```txt
13+
npm run cf-typegen
14+
```
15+
16+
Pass the `CloudflareBindings` as generics when instantiation `Hono`:
17+
18+
```ts
19+
// src/index.ts
20+
const app = new Hono<{ Bindings: CloudflareBindings }>()
21+
```

bun.lock

Lines changed: 133 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)