Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
add git hooks
Browse files Browse the repository at this point in the history
Co-Authored-By: George Tsotsos <[email protected]>
  • Loading branch information
bluskript and Geoxor committed Dec 25, 2021
1 parent 43d1b40 commit 6c08463
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 1,456 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ jobs:
- name: Install bloatware
run: "pnpm i"
- name: Check Blusk's grammar
run: "pnpm run lint"
run: "pnpm lint"

tests-check:
name: "Unit Tests"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install gangster npm
run: "npm i pnpm -g"
- name: Install bloatware
run: "pnpm i"
- name: Determine if Blusk's logic is flawed
run: "pnpm test"

type-check:
name: "Typecheck"
Expand All @@ -28,7 +41,7 @@ jobs:
- name: Install bloatware
run: "pnpm i"
- name: Check Blusk's false logic
run: "pnpm run typecheck"
run: "pnpm typecheck"

compile-check:
name: Compile Typescript
Expand All @@ -41,4 +54,4 @@ jobs:
- name: Install bloatware
run: "pnpm i"
- name: Build the masterpiece
run: "pnpm run build"
run: "pnpm build"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/nano-staged
3 changes: 3 additions & 0 deletions .nano-staged.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,ts,vue}": "pnpm prettify"
}
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"build": "vite build",
"typecheck": "vue-tsc --noEmit",
"serve": "vite preview",
"test": "jest src",
"test": "pnpm vitest --run",
"prettify": "eslint --fix \"**/*.{vue,ts,js}\"",
"lint": "eslint \"**/*.{vue,ts,js}\""
"lint": "eslint \"**/*.{vue,ts,js}\"",
"postinstall": "npx husky install"
},
"dependencies": {
"@harmony-dev/harmony-web-sdk": "^0.0.2-alpha-3",
Expand All @@ -27,18 +28,17 @@
"@antfu/eslint-config": "^0.14.0",
"@iconify/json": "1.1.432",
"@protobuf-ts/runtime-rpc": "^2.1.0",
"@types/jest": "27.0.3",
"@types/node": "16.11.9",
"@vitejs/plugin-vue": "1.10.0",
"@vitejs/plugin-vue-jsx": "1.3.0",
"@vue/compiler-sfc": "^3.2.26",
"dayjs": "^1.10.7",
"esbuild-jest": "^0.5.0",
"eslint": "^8.5.0",
"jest": "^27.4.5",
"husky": "^7.0.4",
"nano-staged": "^0.5.0",
"pnpm": "^6.24.2",
"rollup-plugin-visualizer": "^5.5.2",
"simple-git-hooks": "^2.7.0",
"tippy.js": "^6.3.7",
"typescript": "4.4.4",
"unplugin-icons": "0.12.18",
Expand All @@ -48,7 +48,7 @@
"vite-plugin-mkcert": "^1.5.2",
"vite-plugin-pwa": "0.11.6",
"vite-plugin-windicss": "^1.6.1",
"vue-jest": "^5.0.0-alpha.10",
"vitest": "^0.0.113",
"vue-tsc": "0.29.6",
"windicss": "^3.4.0",
"workbox-window": "6.4.1"
Expand Down
Loading

1 comment on commit 6c08463

@vercel
Copy link

@vercel vercel bot commented on 6c08463 Dec 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.