Skip to content

Commit

Permalink
chore: bump deps and use husky for git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Nov 1, 2023
1 parent 5d2d8fa commit f194df5
Show file tree
Hide file tree
Showing 6 changed files with 375 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks:
docker run -it -p 27017:27017 -v /workspace/data:/data/db hyper-mongodb
- name: Setup Git Hooks
init: git config core.hooksPath .hooks
init: deno task prepare
command: |
export MONGO_URL=mongodb://127.0.0.1:27017
deno task test
1 change: 0 additions & 1 deletion .hooks/pre-commit

This file was deleted.

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"
]
}
2 changes: 2 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tasks": {
"prepare": "deno run -A npm:husky@^8 install",
"staged": "deno run -A npm:lint-staged@^15",
"cache": "deno cache --lock=deno.lock --lock-write deps.ts dev_deps.ts",
"test": "deno lint && deno fmt --check && deno test -A --unstable",
"test:integration-native": "deno test -A --unstable adapter.native.integration.test.ts",
Expand Down
Loading

0 comments on commit f194df5

Please sign in to comment.