-
Notifications
You must be signed in to change notification settings - Fork 39
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
c7a4425
commit e4c37bc
Showing
7 changed files
with
100 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"husky": { | ||
"version": "0.7.1", | ||
"commands": [ | ||
"husky" | ||
] | ||
}, | ||
"csharpier": { | ||
"version": "0.29.2", | ||
"commands": [ | ||
"dotnet-csharpier" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
## husky task runner examples ------------------- | ||
## Note : for local installation use 'dotnet' prefix. e.g. 'dotnet husky' | ||
|
||
## run all tasks | ||
#husky run | ||
|
||
### run all tasks with group: 'group-name' | ||
#husky run --group group-name | ||
|
||
## run task with name: 'task-name' | ||
#husky run --name task-name | ||
|
||
## pass hook arguments to task | ||
#husky run --args "$1" "$2" | ||
|
||
## or put your custom commands ------------------- | ||
#echo 'Husky.Net is awesome!' | ||
|
||
dotnet husky run --group pre-commit |
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,18 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"name": "Run csharpier on staged files", | ||
"group": "pre-commit", | ||
"command": "dotnet", | ||
"args": ["csharpier", "${staged}"], | ||
"include": ["**/*.cs"] | ||
}, | ||
{ | ||
"name": "Check csharpier on entire repository", | ||
"group": "verify", | ||
"command": "dotnet", | ||
"args": ["csharpier", "."], | ||
"include": ["**/*.cs"] | ||
} | ||
] | ||
} |
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