From 9d7fcd4d917f06c5123242c62338b55c1d061833 Mon Sep 17 00:00:00 2001 From: Burt Date: Sun, 10 Nov 2024 22:31:37 +0800 Subject: [PATCH] feat: readme --- .husky/commit-msg | 10 +++++++++- .husky/pre-commit | 8 ++++++++ README.md | 8 ++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 7241764..db13bbb 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,12 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npx --no-install commitlint --edit +# Load nvm +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + +# Use the correct Node.js version +nvm use v20.15.1 + +# Run the commit-msg hook +npx --no-install commitlint --edit diff --git a/.husky/pre-commit b/.husky/pre-commit index fc7c89d..03adbc9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,12 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +# Load nvm +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + +# Use the correct Node.js version +nvm use v20.15.1 + +# Run the pre-commit hook npx --no-install -- lint-staged diff --git a/README.md b/README.md index e97443e..8d7dd36 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,14 @@ unibest - 最好的 uniapp 开发框架 +
+旧仓库 codercup 进不去了,star 也拿不回来,这里也展示一下那个地址的 star. + +[![GitHub Repo stars](https://img.shields.io/github/stars/codercup/unibest?style=flat&logo=github)](https://github.com/codercup/unibest) +[![GitHub forks](https://img.shields.io/github/forks/codercup/unibest?style=flat&logo=github)](https://github.com/codercup/unibest) + +
+
[![GitHub Repo stars](https://img.shields.io/github/stars/feige996/unibest?style=flat&logo=github)](https://github.com/feige996/unibest)