Skip to content

Commit 36908f5

Browse files
committed
Add a devenv setup with git hooks
1 parent a26a2d0 commit 36908f5

7 files changed

Lines changed: 450 additions & 0 deletions

File tree

‎.editorconfig‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

‎.envrc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
eval "$(devenv direnvrc)"
4+
use devenv

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
# devenv
1313
.devenv
1414
.devenv.flake.nix
15+
.pre-commit-config.yaml

‎README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,15 @@ open "Format JSON.shortcut"
4646
```
4747

4848
To see all the options, run `format-code shortcuts --help`.
49+
50+
## Development
51+
52+
The project uses [devenv](https://devenv.sh) to install Node.js and npm. To
53+
enter the dev shell, run:
54+
55+
```sh
56+
devenv shell
57+
```
58+
59+
If you use [direnv](https://direnv.net), run `direnv allow` one time. Then
60+
direnv loads the dev shell when you enter the folder.

0 commit comments

Comments
 (0)