An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        


worker logo






---

## 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