Skip to content

Template for durable objects, rollup, es modules

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

loopdive/durable-objects-typescript

 
 

👷 Durable Objects Counter template

A template for kick starting a Cloudflare Workers project using:

  • Durable Objects
  • Modules (ES Modules to be specific)
  • Rollup
  • Wrangler

Worker code is in src/. The Durable Object Counter class is in src/counter.mjs, and the eyeball script is in index.mjs.

Rollup is configured to output a bundled ES Module to dist/index.mjs.

  • This bundle is also configured to be the main module, using the module key in package.json.

On your first publish, you must use wrangler publish --new-class to allow the Counter class to implement Durable Objects.

About

Template for durable objects, rollup, es modules

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.9%
  • JavaScript 18.1%