Skip to content

nx-cloudflare: add a binding/resource generator #133

Description

@NachoVazquez

Why. Wiring a binding's config block + Env field (+ class & migrations for DO/Workflow) by hand is the core daily friction — exactly where an Nx generator shines.

Fix. nx g @naxodev/nx-cloudflare:binding --project=w --type=kv|r2|d1|do|queue|workflow|service. Edits wrangler.jsonc, adds the code stub (DO/Workflow/RPC/queue-consumer classes + required [[migrations]] for DO), re-runs wrangler types, emits a matching test. Start with the GA set (KV, R2, D1, Durable Objects, Queues, Workflows, Service/RPC); expand later (Hyperdrive, Vectorize, AI, Browser Rendering).

Depends on: wrangler.jsonc + wrangler types. Effort: M-L · Impact: Very High.

Part of #115.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnx-cloudflareThe @naxodev/nx-cloudflare plugin

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions