Ionite
1 year ago
4 changed files with 64 additions and 0 deletions
@ -0,0 +1,18 @@
|
||||
{ |
||||
"version": 1, |
||||
"isRoot": true, |
||||
"tools": { |
||||
"husky": { |
||||
"version": "0.6.0", |
||||
"commands": [ |
||||
"husky" |
||||
] |
||||
}, |
||||
"xamlstyler.console": { |
||||
"version": "3.2206.4", |
||||
"commands": [ |
||||
"xstyler" |
||||
] |
||||
} |
||||
} |
||||
} |
@ -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' |
||||
dotnet husky run --group "pre-commit" |
||||
|
||||
## 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 |
@ -0,0 +1,18 @@
|
||||
{ |
||||
"tasks": [ |
||||
{ |
||||
"name": "Run csharpier", |
||||
"group": "pre-commit", |
||||
"command": "dotnet", |
||||
"args": [ "csharpier", "${staged}" ], |
||||
"include": [ "**/*.cs" ] |
||||
}, |
||||
{ |
||||
"name": "Run xamlstyler", |
||||
"group": "pre-commit", |
||||
"command": "dotnet", |
||||
"args": [ "xstyler", "${staged}" ], |
||||
"include": [ "**/*.axaml" ] |
||||
} |
||||
] |
||||
} |
Loading…
Reference in new issue