-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
8 changed files
with
101 additions
and
171 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,18 +1,15 @@ | ||
# fecs-git-hooks [](https://www.npmjs.com/package/fecs-git-hooks) | ||
|
||
## 自动方式(推荐) | ||
## Usage | ||
|
||
项目根目录下运行 | ||
### install | ||
|
||
$ npm i fecs-git-hooks | ||
``` | ||
npm i fecs-git-hooks | ||
``` | ||
|
||
## 命令行方式 | ||
### uninstall | ||
|
||
安装: | ||
|
||
$ npm install fecs-git-hooks -g | ||
|
||
使用: | ||
|
||
$ fecs-hook init | ||
$ fecs-hook disable | ||
``` | ||
npm uni fecs-git-hooks | ||
``` |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
/** | ||
* @file npm install 时自动运行的脚本 | ||
* @author chenxiao07 | ||
* @author cxtom | ||
*/ | ||
|
||
/* eslint-disable no-console */ | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @file npm uninstall 时自动运行的脚本 | ||
* @author cxtom | ||
*/ | ||
|
||
/* eslint-disable no-console */ | ||
|
||
var Util = require('./util'); | ||
|
||
try { | ||
Util.unInstallHooks('pre-commit'); | ||
} | ||
catch (e) { | ||
console.trace(e); | ||
} |
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