Skip to content

Commit

Permalink
chore: convert flake to flake parts and add git-hooks (#1599)
Browse files Browse the repository at this point in the history
This PR adds

- flake-parts to the flake
- a git hook that checks formatting on push
- npm package installation if node_modules does not exist to prevent
errors when pushing

The reason I set on-push for the hooks is, that people could get quite
annoyed when having to check for proper formatting on every commit.
Since we doe merge PRs anyway, we can require proper formatting on push
and ease local development for contributors.

I'd like to hear feedback from other contributors here on what to add or
to change before I merge this into main.
  • Loading branch information
thilobillerbeck authored Dec 12, 2024
1 parent efca92f commit 0a8b14e
Show file tree
Hide file tree
Showing 3 changed files with 401 additions and 234 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
/public/guides/nix-pills/
/public/demos/*.cast
/public/demos/*.svg

.pre-commit-config.yaml
187 changes: 145 additions & 42 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a8b14e

Please sign in to comment.