-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2953b4a
commit 61d0173
Showing
5 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
behaviour | ||
Byelide | ||
commitlint | ||
conventionalcommits | ||
optimizelegibility | ||
pinia | ||
tiptap | ||
vuedraggable | ||
vuejs | ||
TDAPP | ||
reduxjs | ||
bilibili | ||
localforage | ||
ahooks | ||
antd | ||
languagedetector | ||
redownload | ||
Redownload | ||
watting | ||
Watting | ||
cancle | ||
Sider | ||
inversify | ||
datetime | ||
typeorm | ||
bili | ||
mediago | ||
nocheck | ||
metas | ||
DDTHH | ||
Conpty | ||
execa | ||
bodys | ||
cliqz | ||
adblocker | ||
acodec | ||
KHTML | ||
svgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm exec tsx ./scripts/pre-commit.ts | ||
npx tsx ./scripts/pre-commit.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
#!/usr/bin/env zx | ||
|
||
import { echo } from "zx"; | ||
import { $, echo } from "zx"; | ||
import type { ProcessOutput } from "zx"; | ||
import { printObject } from "./utils"; | ||
|
||
echo("开始执行代码质量评估...\n"); | ||
// import type { ProcessOutput } from "zx"; | ||
// import { printObject } from "./utils"; | ||
|
||
// await $`pnpm spellcheck`.catch((out: ProcessOutput) => { | ||
// throw new Error(out.stdout); | ||
// }); | ||
await $`pnpm spellcheck`.catch((out: ProcessOutput) => { | ||
printObject(out); | ||
throw new Error(out.stdout); | ||
}); | ||
|
||
// check type and stage | ||
// await Promise.all([$`pnpm types`, $`pnpm lint-stage`]).catch( | ||
// (out: ProcessOutput) => { | ||
// printObject(out); | ||
// throw new Error(out.stdout); | ||
// }, | ||
// ); | ||
await Promise.all([$`pnpm types`, $`pnpm lint-staged`]).catch( | ||
(out: ProcessOutput) => { | ||
printObject(out); | ||
throw new Error(out.stdout); | ||
}, | ||
); |