Skip to content

Commit

Permalink
Make use of new syntax for single cmd tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
dpassen committed Jun 11, 2023
1 parent 85b3122 commit b83e7e9
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ silent: true

tasks:
default:
cmds:
- task --list
cmd: task --list

test:
desc: Run unit tests
cmds:
- clojure -X:test
cmd: clojure -X:test

test:watch:
desc: Watch source code and run tests accordingly
cmds:
- clojure -X:test:watcher
cmd: clojure -X:test:watcher

lint:
desc: Lint source code
Expand All @@ -25,30 +22,24 @@ tasks:

lint:kondo:
desc: Lint source code using clj-kondo
cmds:
- rg -tclojure -tedn --files | xargs clj-kondo --parallel --lint
cmd: rg -tclojure -tedn --files | xargs clj-kondo --parallel --lint

lint:splint:
desc: Lint source code using splint
cmds:
- clojure -M:splint src test
cmd: clojure -M:splint src test

check:
desc: Check for reflection using clj-check
cmds:
- clojure -M:check
cmd: clojure -M:check

editorconfig:
desc: Check for editorconfig violations using editorconfig-checker
cmds:
- git ls-files | xargs editorconfig-checker
cmd: git ls-files | xargs editorconfig-checker

install:
desc: Install locally
cmds:
- clojure -T:build install
cmd: clojure -T:build install

publish:
desc: Deploy to Clojars
cmds:
- clojure -T:build deploy
cmd: clojure -T:build deploy

0 comments on commit b83e7e9

Please sign in to comment.