Skip to content

Commit c161ef3

Browse files
docs: add setup guide for deno (#4199)
* docs: add setup guide for deno * Update getting-started.md
1 parent 3bda93d commit c161ef3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/guides/getting-started.md

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ npm install --save-dev @commitlint/config-conventional @commitlint/cli
2222
pnpm add --save-dev @commitlint/{cli,config-conventional}
2323
```
2424

25+
```sh [deno]
26+
deno add --dev npm:@commitlint/cli npm:@commitlint/config-conventional
27+
```
28+
2529
:::
2630

2731
## Configuration

docs/guides/local-setup.md

+11
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ npm pkg set scripts.commitlint="commitlint --edit"
8383
echo "pnpm commitlint \${1}" > .husky/commit-msg
8484
```
8585

86+
== deno
87+
88+
```sh
89+
deno add --dev husky
90+
91+
deno task --eval husky init
92+
93+
# Add commit message linting to commit-msg hook
94+
echo "deno task --eval commitlint --edit \$1" > .husky/commit-msg
95+
```
96+
8697
:::
8798

8899
---

0 commit comments

Comments
 (0)