Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.65 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.65 KB

racer159.net

CI

A Cloudflare Worker driving serverless web 1.0 content (you heard that right), easter eggs and fun to the planet-earth region, for my personal net, racer159.net.

Note: You must use wrangler 1.17 or newer for development of this worker.

Getting Started

This worker uses the Wrangler CLI for development. If you are not already familiar with the tool, it is recommended that you install the tool and configure it to work with your Cloudflare account. Documentation can be found here.

Testing

Run npm test to execute the unit tests via Jest.

Linting

Run npm run lint to execute linting via TS-ESLint.

Previewing and Publishing

For information on how to preview and publish your worker, please see the Wrangler docs.

Cloudflare Caveats

The service-worker-mock used by the tests is not a perfect representation of the Cloudflare Workers runtime. It is a general approximation. It's recommend that you test end to end with wrangler dev in addition to a staging environment to test things before deploying.