Starter Template for Cloudflare Workers with GitHub Actions CI and Automatic Releases
- Semantic Release with Gitmoji
- Automatic publishing with wrangler-action
- Linting with Eslint
- Automatic Dependabot PR merging
- Write code in Typescript
- Comes with Mocha tests
- Based on Cloudflare's Workers template
- Create a new repository from this template
- Clone your new repository
- Install dependencies using
npm install - Update package details in
package.jsonandREADME.md- Find and replace
betahuhn/cf-worker-starterwithuser/repository - Find and replace
@betahuhn/cf-worker-starterwith projects npm name
- Find and replace
- Create a repository secret called
CF_API_TOKENto use the wrangler-action - Specify your worker details in the
wrangler.tomlfile (more info in Cloudflare's Docs)
- run
yarn lintornpm run lintto run eslint. - run
yarn testornpm run testto run all Mocha tests. - run
yarn devornpm run devto run the Worker locally with Wrangler. - run
yarn buildornpm run buildto produce a production version with webpack.
This project was developed by me (@betahuhn) in my free time. If you want to support me:
Copyright 2021 Maximilian Schiller
This project is licensed under the MIT License - see the LICENSE file for details.