Skip to content

Commit

Permalink
chore: use husky and lint-staged to enforce checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Dec 1, 2023
1 parent 58f5155 commit 2537291
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
image:
file: .gitpod.Dockerfile

tasks:
- name: Setup Git Hooks
init: deno task prepare
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"

deno task staged
7 changes: 7 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"**/*.{md,json,js,ts}": ["deno fmt"],
"**/README.md": [
"deno run -A --no-lock npm:markdown-toc-gen@1 insert",
"deno fmt"
]
}
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
<a href="https://docs.hyper.io/whats-new">What's New</a>
</p>

<!-- toc -->

- [Introduction](#introduction)
- [Status](#status)
- [Running Locally](#running-locally)
- [Documentation](#documentation)
- [Contributions](#contributions)
- [Developer Setup](#developer-setup)
- [Thank you](#thank-you)

<!-- tocstop -->

## Introduction

👋 Hey 👋
Expand Down Expand Up @@ -63,7 +75,7 @@ Alternatively, if you're using `node`, you can run `npx hyper-nano`
This `nano` version of hyper implements the following ports and adapters:

- `data` (powered by [PouchDB](https://github.com/hyper63/hyper-adapter-pouchdb))
- `data` (powered by [In-Memory MongoDB](https://github.com/hyper63/hyper-adapter-mongodb))
- `cache` (powered by [Sqlite](https://github.com/hyper63/hyper-adapter-sqlite))
- `storage` (powered by your local [file system](https://github.com/hyper63/hyper-adapter-fs))
- `search` (powered by [Sqlite and Minisearch](https://github.com/hyper63/hyper-adapter-minisearch))
Expand Down
4 changes: 4 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"tasks": {
"prepare": "deno run -A --no-lock npm:husky@^8 install",
"staged": "deno run -A --no-lock npm:lint-staged@^15"
},
"fmt": {
"include": ["./"],
"exclude": ["./**/CHANGELOG.md"],
Expand Down

0 comments on commit 2537291

Please sign in to comment.