Skip to content

Commit

Permalink
examples: update cfw builder;
Browse files Browse the repository at this point in the history
- now handles typescript by default~!
  • Loading branch information
lukeed committed Mar 25, 2021
1 parent fbf6e48 commit 21a6af9
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 43 deletions.
19 changes: 0 additions & 19 deletions examples/cfw.setup.js

This file was deleted.

3 changes: 1 addition & 2 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"deploy": "cfw deploy"
},
"devDependencies": {
"cfw": "0.0.10",
"rollup-plugin-typescript2": "0.30.0",
"cfw": "0.1.0",
"worktop": "latest"
}
}
9 changes: 0 additions & 9 deletions examples/workers/basic/cfw.js

This file was deleted.

9 changes: 9 additions & 0 deletions examples/workers/basic/cfw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "worktop-demo-basic",
"zoneid": "<YOUR ZONE ID>",
"profile": "personal",
"entry": "index.ts",
"routes": [
"<YOUR DOMAIN>/*"
]
}
2 changes: 1 addition & 1 deletion examples/workers/basic/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example: Basic

> [View in Playground](https://cloudflareworkers.com/#3412c57a64c43ed896db87c3ada951c6:https://tutorial.cloudflareworkers.com/)
> [View in Playground](https://cloudflareworkers.com/#168e65c86c627f31e9d026f829c2e828:https://tutorial.cloudflareworkers.com)
Defines two `GET` endpoints:
* `GET /` – displays a welcome message (public cache)
Expand Down
12 changes: 0 additions & 12 deletions examples/workers/kv-todos/cfw.js

This file was deleted.

12 changes: 12 additions & 0 deletions examples/workers/kv-todos/cfw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "worktop-demo-kv-todos",
"zoneid": "<YOUR ZONE ID>",
"profile": "personal",
"entry": "index.ts",
"routes": [
"<YOUR DOMAIN>/*"
],
"globals": {
"TODOS": "KV:<NAMESPACEID>"
}
}

0 comments on commit 21a6af9

Please sign in to comment.