dnt-template
Setup
Replace github username / project name throughout files:
deno run -A scripts/setup.ts
Add a GitHub Actions repository secret called NPM_TOKEN
with publishing permissions.
Go to your GitHub repository Settings > Actions > General and set Workflow permissions
to Read and write permissions
, as well as enabling Allow GitHub Actions to create and approve pull requests
.
Development
Testing in Deno can be ran in a single pass with:
deno test
Or in watch mode with:
deno test --watch
Node tests are ran with the build command:
deno task build
Format code with:
deno task format
Typecheck / lint code with:
deno task check
Contributing Changes
Install CLI:
npm i -g @changesets/cli
Generate changeset:
npx changeset