Skip to content

Commit

Permalink
Merge pull request #32 from liquidz/dev
Browse files Browse the repository at this point in the history
Next release
  • Loading branch information
liquidz authored Dec 18, 2022
2 parents 8cd148c + 3084f36 commit 8a67881
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
25 changes: 14 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.inline-deps:
clojure -T:build inline-deps
touch .inline-deps

.PHONY: inline-deps
inline-deps: clean .inline-deps
inline-deps: clean .inline-deps ## Inline deps

.PHONY: repl
repl:
iced repl --without-cljs --force-clojure-cli -A:dev:injection
repl: ## Start REPL
iced repl --without-cljs -A:dev:injection

.PHONY: lint
lint:
lint: ## Lint codes
clj-kondo --lint src:test
cljstyle check


.PHONY: test
test: .inline-deps
test: .inline-deps ## Run tests with inlining
clojure -M:dev:srcdeps:test
clojure -M:dev:1.9:srcdeps:test
clojure -M:dev:1.10:srcdeps:test

.PHONY: dev-test
dev-test:
dev-test: ## Run tests without inlining
clojure -M:dev:injection:test

.PHONY: install
install: .inline-deps
install: .inline-deps ## Install jar to local Maven repos
clojure -T:build install

.PHONY: coverage
coverage:
coverage: ## Show coverage
clojure -M:dev:injection:coverage \
--src-ns-path=src \
--test-ns-path=test \
--codecov \
--ns-exclude-regex 'icedtest\..*'

.PHONY: outdated
outdated:
outdated: ## Show and upgrade outdated deps
clojure -M:outdated --upgrade

.PHONY: clean
clean:
clean: ## Clean
\rm -rf target .inline-deps .cpcache
6 changes: 3 additions & 3 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
org.clojure/tools.namespace {:mvn/version "1.3.0" ; required by cljfmt
:exclusions [org.clojure/clojure
org.clojure/java.classpath]}
cider/orchard {:mvn/version "0.10.0"}
cider/orchard {:mvn/version "0.11.0"}
cljfmt/cljfmt {:mvn/version "0.9.0"
:exclusions [org.clojure/clojure
org.clojure/clojurescript
Expand All @@ -40,8 +40,8 @@
:main-opts ["-m" "cloverage.coverage"]}

:build {:extra-paths ["resources"]
:deps {com.github.liquidz/build.edn {:git/tag "0.7.145" :git/sha "776501e"}
leiningen/leiningen {:mvn/version "2.9.10"} ; required by mranderson
:deps {com.github.liquidz/build.edn {:git/tag "0.9.188" :git/sha "d2d25b0"}
leiningen/leiningen {:mvn/version "2.10.0"} ; required by mranderson
thomasa/mranderson {:mvn/version "0.5.3"}}
:ns-default build}}}

0 comments on commit 8a67881

Please sign in to comment.