Skip to content

Commit

Permalink
chore: include node files (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret authored Nov 28, 2023
1 parent eb06326 commit e804a14
Show file tree
Hide file tree
Showing 4 changed files with 730 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ The built site will auto-refresh when the files are updated.
We use prettier to validate the files when building the project.
It is recommended that you install prettier and run it when you make changes.
You can find instructions [here](https://prettier.io/docs/en/install).

You may also install prettier & husky using npm, which will also add a pre-commit hook
which formats the files for you:

```shell
$ npm install
```

then you may run prettier using:

```shell
$ npx prettier . --write
```
Loading

0 comments on commit e804a14

Please sign in to comment.