add README.md to workers-assets-gen command

This commit is contained in:
syumai 2024-01-11 20:48:46 +09:00
parent 974f8eb29c
commit fb933b3dd1
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=

View File

@ -0,0 +1,15 @@
# workers-assets-gen
* `workers-assets-gen` command generates files needed to run `workers` package.
- e.g. wasm_exec.js, worker.mjs ...
## Usage
* See `Makefile` in [templates](https://github.com/syumai/workers/tree/main/_templates/cloudflare/worker-tinygo).
## Supported options
* `-mode`
- switch generated file depends on Go / TinyGo.
* `-o`
- change output directory (default: `build`)