Skip to content

Commit

Permalink
feat✨: 在提交之前自动更新时间
Browse files Browse the repository at this point in the history
  • Loading branch information
200803001 committed Jun 6, 2023
1 parent 5d29f9a commit 7180246
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
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"

npm run time
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
"url": "https://github.com/simply-none/latest-blogs.git"
},
"scripts": {
"prepare": "husky install",
"init": "npm i docsify-cli -g --registry=https://registry.npmmirror.com",
"time": "node ./time.js",
"dev": "node ./time.js & docsify serve"
},
"dependencies": {
"shelljs": "^0.8.5"
},
"devDependencies": {
"husky": "^8.0.3",
"standard-version": "^9.5.0"
},
"standard-version": {
Expand Down

0 comments on commit 7180246

Please sign in to comment.