From 9655b27f6d58941092f6e3ccb8307c590d3b2745 Mon Sep 17 00:00:00 2001 From: Joost Diepenmaat Date: Wed, 23 Nov 2022 15:59:09 +0100 Subject: [PATCH] Fixup project, add linter, show namespace in readme --- README.md | 2 ++ project.clj | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b5788b..d57e4d0 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ API documentation is available inline and at [cljdoc](https://cljdoc.org/d/nl.jo # USAGE ```clojure +(require '[nl.jomco.select-tree :refer [select-tree]]) + (def ring-request {:request-method :post :uri "/foo" diff --git a/project.clj b/project.clj index 5878097..651782a 100644 --- a/project.clj +++ b/project.clj @@ -4,7 +4,8 @@ :license {:name "MIT" :url "https://opensource.org/licenses/MIT" :distribution :repo} - :profiles {:provided {:dependencies [[org.clojure/clojure "1.11.1"]]}} + :profiles {:provided {:dependencies [[org.clojure/clojure "1.11.1"]]} + :dev {:dependencies [[clj-kondo "2022.05.31"]]}} :repl-options {:init-ns nl.jomco.select-tree} :release-tasks [["test-full"] ["vcs" "assert-committed"] @@ -17,4 +18,6 @@ ["vcs" "push"]] ;; link to git repo, also ensures that cljdoc.org finds additional markdown files :scm {:name "git" - :url "https://git.sr.ht/~jomco/select-tree"}) + :url "https://git.sr.ht/~jomco/select-tree"} + :aliases {"lint" ["run" "-m" "clj-kondo.main" "--lint" "src"] + "test-full" ["do" "lint," "test"]}) -- 2.38.5