brawler
brawler is a command-line tool and library to develop and deploy
Cloudflare Workers with
Deno and
Wrangler.
It uses dnt (https://github.com/denoland/dnt) for Deno-to-Node transformation
internally.
Warning
The project is still in an early-beta stage and not tested extensively yet.
Installation
Use the script installer of deno:
deno install -A --name brawler https://deno.land/x/brawler@0.1.0/cli.tsNote that wrangler (https://github.com/cloudflare/wrangler2) must be also
installed to use brawler.
Usage
Use brawler init, brawler dev, and brawler publish instead of
wrangler init, wrangler dev, and wrangler publish, respectively.
You can pass any options available in wrangler.
See brawler --help and wrangler --help for details.
# create wrangler.toml and deno.json in the current directory
brawler init
# develop a script locally with hot-reload
touch index.ts
brawler dev index.ts
# publish it
brawler publish index.ts --name my-brawler-projectExamples
- /examples/hono: Hello-world with
Hono framework
- Hosted version: https://brawler-hono.hasundue.workers.dev
Background
Yes, we have denoflare (https://denoflare.dev), which is a great project
letting you work with a pure Deno environment. The project bravely follows the
philosophy of Deno.
However, denoflare still lacks a significant portion of functionality in
wrangler, which is why this project exists for now.