-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from kachick/refine-tasks
Refine tasks
- Loading branch information
Showing
7 changed files
with
61 additions
and
62 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
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 |
---|---|---|
@@ -1,69 +1,32 @@ | ||
[config] | ||
skip_core_tasks = true | ||
|
||
[tasks.default] | ||
alias = "help" | ||
|
||
[tasks.help] | ||
script = [ | ||
'makers --list-all-steps', | ||
] | ||
|
||
[tasks.setup] | ||
category = "Tools" | ||
description = "Install and configure dependencies (WIP)" | ||
script = [ | ||
"git config --local core.hooksPath .githooks", | ||
] | ||
|
||
[tasks.update] | ||
category = "Tools" | ||
script = [ | ||
"dprint config update --yes", | ||
] | ||
|
||
[tasks.format-check] | ||
category = "Tools" | ||
description = "Run formatters without changes" | ||
script = [ | ||
"dprint check", | ||
] | ||
[tasks.lint] | ||
command = './scripts/lint.bash' | ||
|
||
[tasks.format-apply] | ||
category = "Tools" | ||
description = "Run formatters with changes" | ||
script = [ | ||
"dprint fmt", | ||
] | ||
|
||
[tasks.typos-check] | ||
category = "Tools" | ||
description = "Run formatters without changes" | ||
script = [ | ||
"typos", | ||
] | ||
|
||
[tasks.prevent-secret] | ||
category = "Tools" | ||
script = [ | ||
"gitleaks detect", | ||
] | ||
[tasks.fmt] | ||
command = './scripts/fmt.bash' | ||
|
||
[tasks.check] | ||
category = "Tools" | ||
description = 'Parallel runner for all tests and linters' | ||
run_task = { name = ["typos-check", "format-check", "prevent-secret"] } | ||
|
||
[tasks.versions] | ||
category = "Tools" | ||
description = 'Print dependency versions' | ||
script = [ | ||
"makers --version", | ||
"dprint --version", | ||
"shellcheck --version", | ||
"shfmt --version", | ||
# Returns NON 0, why...? :< | ||
# "nixpkgs-fmt --version", | ||
"gitleaks version", | ||
"fd --version", | ||
"typos --version", | ||
] | ||
alias = "lint" | ||
|
||
[tasks.help] | ||
category = "Tools" | ||
description = 'Might help you - (This one)' | ||
script = [ | ||
'makers --list-category-steps Tools', | ||
] | ||
[tasks.deps] | ||
command = './scripts/print-deps.bash' |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
shopt -s globstar | ||
|
||
# fixing typo is a fmt ...? | ||
typos . .github .config .vscode --write-changes | ||
|
||
dprint fmt |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
shopt -s globstar | ||
|
||
dprint check | ||
shfmt --diff ./**/*.bash | ||
shellcheck ./**/*.bash | ||
nixpkgs-fmt --check ./**/*.nix | ||
typos . .github .config .vscode | ||
gitleaks detect |
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
shopt -s globstar | ||
|
||
makers --version | ||
nix --version | ||
dprint --version | ||
shellcheck --version | ||
shfmt --version | ||
gitleaks version | ||
fd --version | ||
typos --version | ||
|
||
# Returns NON 0, why...? :< | ||
# "nixpkgs-fmt --version", |