add initial implementation of cloudflare worker

This commit is contained in:
Brandon Liu
2022-07-19 20:35:05 +08:00
parent 3a77103373
commit dc85fc60c2
4 changed files with 687 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{
"devDependencies": {
"esbuild": "^0.14.42",
"typescript": "^4.7.2"
},
"scripts": {
"build": "esbuild worker.ts --target=es2020 --outfile=dist/worker.js --format=esm --bundle --banner:js=//$(git describe --always)",
"tsc": "tsc --noEmit --watch"
}
}