A basic project setup.
See also: seancorfield/deps-new
Run the main function
$ clj -X:run
See cognitect-labs/test-runner
$ clj -X:test:runner '{:dirs ["test"]}'
$ clj -M:test:refresh
Run
$ clj -M:dev
See clojure/tools.namespace See jeaye/orchestra
By default
user=> (reset)
is provided to reload changed namespaces.
It also automatically instruments
all function with specs where fdefs
are provided.
Every function such instrumented gets checked
in :args
, :ret
and :fn
.
Instead of using (refresh)
, code can also be loaded automatically.
$ clj -M:dev:auto
Note that automatic instrumentation with specs (see section above) is not available in this mode.
See bhauman/rebel-readline .
$ clj -M:dev:rebel
Run
$ clj -M:dev:auto:rebel
See nrepl/nrepl
Run
$ clj -M:dev(:test):nREPL -m nrepl.cmdline -p \<port-number>
- REPL
- Connect to a running REPL in your project
- Generic
- localhost:<port-number>
- Generic
- Connect to a running REPL in your project
See tonsky/uberdeps
$ clj -M:package <package name>.jar
$ java -cp <package name>.jar clojure.main -m main