Skip to content

Commit 8fae9a5

Browse files
committed
chore: use husky and lint-staged to enforce checks
1 parent 955ebc3 commit 8fae9a5

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

.gitpod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
image:
22
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- name: Setup Git Hooks
6+
init: deno task prepare

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
deno task staged

.lintstagedrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"**/*.{md,json,js,ts}": ["deno fmt"],
3+
"**/README.md": [
4+
"deno run -A --no-lock npm:markdown-toc-gen@1 insert",
5+
"deno fmt"
6+
]
7+
}

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
<a href="https://docs.hyper.io/whats-new">What's New</a>
2121
</p>
2222

23+
<!-- toc -->
24+
25+
- [Introduction](#introduction)
26+
- [Status](#status)
27+
- [Running Locally](#running-locally)
28+
- [Documentation](#documentation)
29+
- [Contributions](#contributions)
30+
- [Developer Setup](#developer-setup)
31+
- [Thank you](#thank-you)
32+
33+
<!-- tocstop -->
34+
2335
## Introduction
2436

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

66-
- `data` (powered by [PouchDB](https://github.com/hyper63/hyper-adapter-pouchdb))
78+
- `data` (powered by [In-Memory MongoDB](https://github.com/hyper63/hyper-adapter-mongodb))
6779
- `cache` (powered by [Sqlite](https://github.com/hyper63/hyper-adapter-sqlite))
6880
- `storage` (powered by your local [file system](https://github.com/hyper63/hyper-adapter-fs))
6981
- `search` (powered by [Sqlite and Minisearch](https://github.com/hyper63/hyper-adapter-minisearch))

deno.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"tasks": {
3+
"prepare": "deno run -A --no-lock npm:husky@^8 install",
4+
"staged": "deno run -A --no-lock npm:lint-staged@^15"
5+
},
26
"fmt": {
37
"include": ["./"],
48
"exclude": ["./**/CHANGELOG.md"],

0 commit comments

Comments
 (0)