Skip to main content
Deno 2 is finally here 🎉️
Learn more

edcb

edcb (for Eibens-Deno Continuous Build) is an opinionated workflow for building a Deno project locally and in a CI environment. It is implemented as a bash script and can be used in a local shell and GitHub Actions.

License Deno doc Deno module Github tag Build Code coverage

Motivation

In order to make a Deno project production ready, the code should be formatted, linted, and tested. This workflow is usually very similar across projects. edcb is an attempt of generalizing these tasks across projects and across local systems and CI environments.

Documentation

The latest version of the edcb.sh file can be installed in a shell:

# Downloads edcb.sh and makes it executable.
curl -s https://deno.land/x/edcb/edcb.sh > /usr/bin/edcb && chmod +x /usr/bin/edcb

Building a project is now as simple as running this in the project root:

edcb

The ci.yml workflow file demonstrates how edcb can be used with GitHub Actions. If the CI environment variable is true (which is automatically set by GitHub), code coverage will be uploaded to codecov.