Skip to content

Commit 2d6081c

Browse files
committed
update taskfile
1 parent db83639 commit 2d6081c

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

Taskfile.dist.yaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,11 @@ tasks:
4343
cmds:
4444
- task: lint-dotenv
4545
- task: lint-stackup
46+
- task: lint-spell
4647

4748
update-version-file:
48-
# status:
49-
# don't run this task in CI
50-
# - '[ "$CI" == "" ]'
5149
cmds:
52-
- printf "running update-version-file"
5350
- go run tools/generate-version-file.go
54-
- printf "ran update-version-file"
5551

5652
lint-dotenv:
5753
desc: Lints all dotenv files
@@ -60,6 +56,17 @@ tasks:
6056
cmds:
6157
- dotenv-linter {{.DOTENV_FILES}}
6258

59+
lint-spell:
60+
desc: Check for typos in filenames and source code
61+
ignore_error: true
62+
preconditions:
63+
- which typos
64+
vars:
65+
SRC_DIRS:
66+
sh: "/bin/ls -1F | grep '/' | egrep -v '(\\..+|build|dist|assets|tools)' | tr -s '\\n/' ' '"
67+
cmds:
68+
- typos ./lib ./templates ./README.md
69+
6370
lint-stackup:
6471
desc: Runs golangci-lint
6572
vars:
@@ -116,11 +123,6 @@ tasks:
116123
update-checksums:
117124
dir: templates/remote-includes
118125
cmds:
119-
- sha256sum containers.yaml > containers.yaml.sha256
120-
- sha256sum laravel.yaml > laravel.yaml.sha256
121-
- sha256sum node.yaml > node.yaml.sha256
122-
- sha256sum php.yaml > php.yaml.sha256
123-
- sha256sum python.yaml > python.yaml.sha256
124126
- sha256sum *.yaml > checksums.sha256.txt
125127
- task: commit-updated-checksums
126128

@@ -129,5 +131,13 @@ tasks:
129131
internal: true
130132
silent: true
131133
cmds:
132-
- git add templates/remote-includes/*.sha256 templates/remote-includes/checksums.*.txt
134+
- git add templates/remote-includes/checksums.*.txt
133135
- git commit -m "update checksum files"
136+
137+
autobuild:
138+
interactive: true
139+
desc: Watches for changes and automatically rebuilds the project binary, displays a minimal system notification on start/finish
140+
preconditions:
141+
- which watchexec
142+
cmds:
143+
- watchexec --exts go --fs-events create,modify,remove -N --debounce 300 -w ./lib -- task build -f

0 commit comments

Comments
 (0)