Skip to content

Commit

Permalink
docs: add setup guide for deno (#4199)
Browse files Browse the repository at this point in the history
* docs: add setup guide for deno

* Update getting-started.md
  • Loading branch information
typed-sigterm authored Nov 22, 2024
1 parent 3bda93d commit c161ef3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ npm install --save-dev @commitlint/config-conventional @commitlint/cli
pnpm add --save-dev @commitlint/{cli,config-conventional}
```

```sh [deno]
deno add --dev npm:@commitlint/cli npm:@commitlint/config-conventional
```

:::

## Configuration
Expand Down
11 changes: 11 additions & 0 deletions docs/guides/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ npm pkg set scripts.commitlint="commitlint --edit"
echo "pnpm commitlint \${1}" > .husky/commit-msg
```

== deno

```sh
deno add --dev husky

deno task --eval husky init

# Add commit message linting to commit-msg hook
echo "deno task --eval commitlint --edit \$1" > .husky/commit-msg
```

:::

---
Expand Down

0 comments on commit c161ef3

Please sign in to comment.