Skip to content

Master-Hash/durable-objects-typescript-rollup-esm

 
 

Durable Objects TypeScript Counter template

Note: You must use wrangler 1.19.3 or newer to use this template.

Please read the Durable Object documentation before using this template.

A template for kick starting a Cloudflare Workers project using:

  • Durable Objects
  • TypeScript
  • Jest for unit testing
  • Modules (ES Modules to be specific)
  • Rollup
  • Wrangler

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

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

There's an example unit test in src/index.test.ts, which will run as part of wrangler build. To run tests on their own use npm test.

About

No description, website, or topics provided.

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 73.3%
  • JavaScript 26.7%