Package Exports
- @k11r/nx-cloudflare-wrangler
- @k11r/nx-cloudflare-wrangler/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@k11r/nx-cloudflare-wrangler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nx-cloudflare-wrangler
An executor and generator for Cloudflare Wrangler (workers and pages)
Workers
Generate a new worker project
npx nx g @k11r/nx-cloudflare-wrangler:worker <app-name>
Creates a new NX project (based on the node template) with a new worker.
build and deploy targets are added automatically.
Pages
Add deploy target to an existing project
npx nx g @k11r/nx-cloudflare-wrangler:pages <app-name> --directory=<root>/<app-name>
This will only add a deploy target, the build property in wrangler.toml will point to the build target of the project.