donthorp / clj-utils

Small reusable code for projects I work on.

Repository from Github https://github.comdonthorp/clj-utilsRepository from Github https://github.comdonthorp/clj-utils

clj-utils

Clojure utilities to be used primarily with Babashka

Usage

FIXME: write usage documentation!

Invoke a library API function from the command-line:

$ clojure -X donthorp.clj-utils/foo :a 1 :b '"two"'
{:a 1, :b "two"} "Hello, World!"

Run the project's tests (they'll fail until you edit them):

$ clojure -T:build test

Run the project's CI pipeline and build a JAR (this will fail until you edit the tests to pass):

$ clojure -T:build ci

This will produce an updated pom.xml file with synchronized dependencies inside the META-INF directory inside target/classes and the JAR in target. You can update the version (and SCM tag) information in generated pom.xml by updating build.clj.

Install it locally (requires the ci task be run first):

$ clojure -T:build install

Deploy it to Clojars -- needs CLOJARS_USERNAME and CLOJARS_PASSWORD environment variables (requires the ci task be run first):

$ clojure -T:build deploy

Your library will be deployed to com.github.donthorp/clj-utils on clojars.org by default.

License

Copyright © 2021 Don Thorp

Distributed under the Eclipse Public License version 1.0.

About

Small reusable code for projects I work on.

License:Eclipse Public License 2.0


Languages

Language:Clojure 100.0%