Skip to content

Commit 7fee5ec

Browse files
committed
reset cloudflare workers testing
1 parent fb13324 commit 7fee5ec

File tree

6 files changed

+942
-651
lines changed

6 files changed

+942
-651
lines changed

test/cloudflare_workers/.gitignore

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1-
node_modules
2-
dist
1+
# prod
2+
dist/
3+
4+
# dev
5+
.yarn/
6+
!.yarn/releases
7+
.vscode/*
8+
!.vscode/launch.json
9+
!.vscode/*.code-snippets
10+
.idea/workspace.xml
11+
.idea/usage.statistics.xml
12+
.idea/shelf
13+
14+
# deps
15+
node_modules/
316
.wrangler
17+
18+
# env
19+
.env
20+
.env.production
421
.dev.vars
522

6-
# Change them to your taste:
7-
wrangler.toml
23+
# logs
24+
logs/
25+
*.log
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
pnpm-debug.log*
30+
lerna-debug.log*
31+
32+
# misc
33+
.DS_Store

test/cloudflare_workers/README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
```
1+
```txt
22
npm install
33
npm run dev
44
```
55

6-
```
6+
```txt
77
npm run deploy
88
```
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+
```

0 commit comments

Comments
 (0)