clj-new template to be used for Dorab's libs.
Set up an alias for clj-new
{:aliases
{:new {:extra-deps {seancorfield/clj-new
{:mvn/version "1.0.199"}}
:main-opts ["-m" "clj-new.create"]}}
...}
The easiest way is to use clj-new and this template from Clojars. To create an application with just the base template, use this command:
clj -A:new dorab-lib-template <myname>/<project-name>
where you might, for example, substitute my-github-name/my-killer-app for the
<myname/project-name> bit or, perhaps, my-orgname-name/an-early-masterpiece.
By default this will try to write the output to the pathmyname/project-name.
If you want it to just go to project-name or some other arbitrary name you can
append at the end -o project-name or whatever name you want.
An alternative is to clone this repo locally. In that case, use this command:
clj -A:new <path-to-local-repo>::dorab-lib-template <myname>/<project-name>
Build a deployable jar of this template:
$ clojure -A:jar
Install it locally:
$ clojure -A:install
Deploy it to Clojars -- needs CLOJARS_USERNAME and CLOJARS_PASSWORD environment variables:
$ clojure -A:deploy
The MIT License (MIT)
Copyright © 2020 Dorab Patel
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |