Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue3_ts_naiveui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
vue3_ts_naiveui
Commits
9932f91d
Commit
9932f91d
authored
Mar 26, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 加入husky
parent
20c49b65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletions
+36
-1
.gitignore
+0
-1
.husky/_/.gitignore
+0
-0
.husky/_/husky.sh
+36
-0
No files found.
.gitignore
View file @
9932f91d
...
...
@@ -23,4 +23,3 @@ dist-ssr
*.sln
*.sw?
pnpm-lock.yaml
!.husky/*
.husky/_/.gitignore
0 → 100644
View file @
9932f91d
.husky/_/husky.sh
0 → 100644
View file @
9932f91d
#!/usr/bin/env sh
if
[
-z
"
$husky_skip_init
"
]
;
then
debug
()
{
if
[
"
$HUSKY_DEBUG
"
=
"1"
]
;
then
echo
"husky (debug) -
$1
"
fi
}
readonly
hook_name
=
"
$(
basename
--
"
$0
"
)
"
debug
"starting
$hook_name
..."
if
[
"
$HUSKY
"
=
"0"
]
;
then
debug
"HUSKY env variable is set to 0, skipping hook"
exit
0
fi
if
[
-f
~/.huskyrc
]
;
then
debug
"sourcing ~/.huskyrc"
.
~/.huskyrc
fi
readonly
husky_skip_init
=
1
export
husky_skip_init
sh
-e
"
$0
"
"
$@
"
exitCode
=
"
$?
"
if
[
$exitCode
!=
0
]
;
then
echo
"husky -
$hook_name
hook exited with code
$exitCode
(error)"
fi
if
[
$exitCode
=
127
]
;
then
echo
"husky - command not found in PATH=
$PATH
"
fi
exit
$exitCode
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment