twrangler
v0.0.10
Published
> [!WARNING] > This project is still in early development. Please use it with caution!
Readme
TWrangler
[!WARNING] This project is still in early development. Please use it with caution!
TWrangler is a simple tool to help you to manage wrangler.toml file for Cloudflare Stacks.
TWrangler means (T)ype-safe (Wrangler).toml.
Enhance your DX with configure your wrangler.toml file.
Usage
npm install -D twranglerWrite your wrangler.config.ts file.
import { defineConfig } from "twrangler";
export default defineConfig({
name: "my-project",
main: "src/index.ts",
compatibility_date: "2022-03-21",
});npx twrangler buildprefer to add "prepare": "twrangler build" in your package.json scripts.
You can get generated wrangler.toml file in cwd.
Features (Roadmap)
- :zap: Configure
wrangler.tomlfile in TypeScript with type support. - :rocket: Generate
wrangler.tomlfile from TypeScript. - :key: Built-in
.envand.varssupport. - :earth_americas: Multiple environment support.
License
MIT
