File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Utility for setting up git hooks. A Deno port of [husky]
1010 git init
1111 ```
1212
13- 2 . Run setup script
13+ 2 . Run setup script:
1414
1515 ``` bash
1616 deno run -A jsr:@vnphanquang/githooks/bin init
@@ -19,24 +19,24 @@ Utility for setting up git hooks. A Deno port of [husky]
1919 Alternatively, run with verbose permissions ** at project root** :
2020
2121 ``` bash
22- deno run --allow-read=" ." --allow-write=" ./. githooks" --allow-run=" git" jsr:@vnphanquang/githooks/bin init
22+ deno run --allow-read=" ." --allow-write=" .githooks" --allow-run=" git" jsr:@vnphanquang/githooks/bin init
2323 ```
2424
25253 . Edit ` ./githooks/pre-commit ` to your needs. Alternatively, you can create any git hook script by adding
26- it to ` .githooks/<your_hook> ` . For example
26+ it to ` .githooks/<your_hook> ` . For example:
2727
2828 ``` bash
2929 # .githooks/pre-push
3030 deno fmt
3131 ```
3232
33334 . Optionally, add script as [ deno task] ( https://docs.deno.com/runtime/reference/cli/task_runner/ )
34- to ` deno.json `
34+ to ` deno.json ` :
3535
3636 ``` json
3737 {
3838 "tasks" : {
39- "githooks" : " deno run --allow-read=\" .\" --allow-write=\" ./. githooks\" --allow-run=\" git\" jsr:@vnphanquang/githooks/bin init"
39+ "githooks" : " deno run --allow-read=\" .\" --allow-write=\" .githooks\" --allow-run=\" git\" jsr:@vnphanquang/githooks/bin init"
4040 }
4141 }
4242 ```
You can’t perform that action at this time.
0 commit comments