🏁 Deno starter repository with GitHub Actions CI
This is a starter template for building Deno packages in TypeScript, with GitHub Actions-powered CI, tests, CLI, and Semantic Release on GitHub and npm.
README.md
README.md
.github/workflows/*.yml
files, add additional permissions after deno test
NPM_TOKEN
with your npm token.github/workflows/deno.yml
, find and replace “denorg/starter” with your “username/repository”If you’re not building a Denorg project, the following steps are required too:
README.md
README.md
badges sectionLICENSE
and under “License” in README.md
Import the mode
function and use it:
import { mode } from "https://raw.githubusercontent.com/denorg/starter/master/mod.ts";
const result = mode();
After installing DPX, you can directly use the CLI using the dpx
command:
dpx --allow-read starter <arguments>
Alternatively, you can use it directly from the CLI by using deno run
:
deno run --allow-read https://raw.githubusercontent.com/denorg/starter/master/cli.ts <arguments>
You can also install it globally using the following:
deno install --allow-read -n starter https://raw.githubusercontent.com/denorg/starter/master/cli.ts
Then, the package is available to run:
starter <arguments>
Required permissions:
--allow-read
Run tests:
deno test --allow-read
MIT © Denorg
A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →