A template project for Cloudflare Workers that written in TypeScript.
This repository also contains configurations for various formatters and linters.
This template is meant to be used with Wrangler or GitHub Template Repository.
If you generate using Wrangler, run this command:
$ wrangler generate my-typescript-worker https://github.com/mika-f/cloudflare-workers-typescript-template.git
If you want to use this repository as template repository, fork and configure as template repository.
And create a new repository from GitHub and select it.
Run yarn start
command and edit src/index.ts
.
Edit the files in the __tests__
directory and run yarn test
command.
Apache 2.0 OR MIT by @6jz