Skip to content

Commit d6515e8

Browse files
committed
add devenv task for linters
1 parent d115e9a commit d6515e8

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ pnpm lint
2929
pnpm scalar-lint
3030
```
3131

32+
or with `devenv`
33+
34+
```bash
35+
devenv tasks run api:check
36+
```
37+
3238
### Format the yaml files
3339

3440
```shell

devenv.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,16 @@
2424
cd $DEVENV_ROOT/doc
2525
pnpm install
2626
'';
27+
28+
tasks = {
29+
"api:check" = {
30+
exec = ''
31+
pnpm run spectral
32+
pnpm run lint
33+
pnpm run scalar-lint
34+
pnpm run check-format
35+
'';
36+
cwd = "doc";
37+
};
38+
};
2739
}

0 commit comments

Comments
 (0)