https://github.com/maxam2017/workers
a repo for all interesting workers.
https://github.com/maxam2017/workers
cloudflare-worker
Last synced: 14 days ago
JSON representation
a repo for all interesting workers.
- Host: GitHub
- URL: https://github.com/maxam2017/workers
- Owner: maxam2017
- License: mit
- Created: 2021-05-08T06:36:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T14:49:35.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T20:41:34.683Z (2 months ago)
- Topics: cloudflare-worker
- Language: TypeScript
- Homepage:
- Size: 300 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
![]()
![]()
![]()
![]()
---
## Overview
a repo for all interesting workers.
## Setup
```bash
npm i @cloudflare/wrangler -g
npm install # use npm for lerna
lerna bootstrap
```## Command
> `npm run pick [...arguments of wrangler script]`|function|cmd|
|-|-|
|dev|`npm run pick dev`|
|build|`npm run pick build`|
|create kv namespace|`npm run pick kv:namespace create --preview`|## FAQ
1. How to create a new worker```bash
npm i @cloudflare/wrangler -g
npm run generate
```2. Where is global wrangle config?
```bash
$HOME/.wrangler/config/default.toml
```## Reference
https://developers.cloudflare.com/workers/tutorials/manage-projects-with-lerna