Starter template for Cloudflare Worker project using Typescript, Jest, Eslint, Prettier, Webpack, and of course, Wrangler cli.
This project has been generated using worker-typescript-template.
- Install the dependencies:
yarn install - One of the dependency is the Cloudflare Worker cli called wrangler which is used to develop and publish the worker
yarn devwill compile the ts files and open a preview of the worker in the browser (watch mode enabled)- Switch to the "Testing" tab to check the response status and headers
yarn test- Add your accound and zone id in wrangler.toml
- Login in Cloudflare using
yarn login(short foryarn wrangler login) - Publish your changes:
yarn publish