@@ -147,20 +147,20 @@ How to run common tasks for Clojure development.
147147* Built-in: tasks provided by Clojure CLI
148148* Practicalli: aliases provided by Practicalli Clojure CLI Config
149149
150- | Task | Command | Configuration |
151- | -------------------------------------------------- | --------------------------------------------------------- | --------------- |
152- | Create minimal playground project | ` clojure -T:project/create ` | Practicalli |
153- | Clojure REPL - rebel readline & nrepl server | ` clojure -M:repl/rebel ` | Practicalli |
154- | ClojureScript REPL with nREPL server | ` clojure -M:repl/cljs ` | Practicalli |
155- | Run tests / watch for changes | ` clojure -X:test/run ` / ` clojure -X:test/watch ` | Practicalli |
156- | Run the project (clojure.main) | ` clojure -M -m domain.main-namespace ` | Built-in |
157- | Check library dependencies for newer versions | ` clojure -T:search/outdated ` | Practicalli |
158- | Download dependencies | ` clojure -P ` (followed by optional aliases) | Built-in |
159- | Generate image of project dependency graph | ` clojure -T:project/graph-deps ` | Practicalli |
160- | Deploy library locally (~ /.m2/repository) | ` clojure -X:deps mvn-install :jar '"project.jar"' ` | Built-in |
161- | Find library names (Clojars & Maven Central) | ` clojure -M:search/libraries qualified-library-names ` | Practicalli |
162- | Find available versions of a library | ` clojure -X:deps find-versions :lib domain/library-name ` | Built-in |
163- | Resolve git coord tags to shas and update deps.edn | ` clojure -X:deps git-resolve-tags git-coord-tag ` | Built-in |
150+ | Task | Command | Configuration |
151+ | ---------------------------------------------------- | ---------------------------------------------------------- | ---------------|
152+ | Create minimal playground project | ` clojure -T:project/create ` | Practicalli |
153+ | Clojure REPL - rebel readline & nrepl server | ` clojure -M:repl/rebel ` | Practicalli |
154+ | ClojureScript REPL with nREPL server | ` clojure -M:repl/cljs ` | Practicalli |
155+ | Run tests / watch for changes | ` clojure -X:test/run ` / ` clojure -X:test/watch ` | Practicalli |
156+ | Run the project (clojure.main) | ` clojure -M -m domain.main-namespace ` | Built-in |
157+ | Check library dependencies for newer versions | ` clojure -T:search/outdated ` | Practicalli |
158+ | Download dependencies | ` clojure -P ` (followed by optional aliases) | Built-in |
159+ | Generate image of project dependency graph | ` clojure -T:project/graph-deps ` | Practicalli |
160+ | Deploy library locally (~ /.m2/repository) | ` clojure -X:deps mvn-install :jar '"project.jar"' ` | Built-in |
161+ | Find library names (Clojars & Maven Central) | ` clojure -M:search/libraries qualified-library-names ` | Practicalli |
162+ | Find available versions of a library | ` clojure -X:deps find-versions :lib domain/library-name ` | Built-in |
163+ | Resolve git coord tags to shas and update deps.edn | ` clojure -X:deps git-resolve-tags git-coord-tag ` | Built-in |
164164
165165
166166## REPL terminal UI
@@ -170,7 +170,7 @@ Run an interactive REPL on the command line with the basic built-in REPL UI or [
170170nREPL server is started for all Clojure repl aliases along with the cider-nrepl middleware, so Clojure editors can connect to the REPL process started on the command line.
171171
172172| Command | Description |
173- | ------------------------------- | ---------------------------------------------------------------------------------- |
173+ | -------------------------------- | ------------------------------------------------------------------------------------ |
174174| ` clojure -M:repl/rebel ` | Rebel Rich terminal UI Clojure REPL with nREPL for connecting editors |
175175| ` clojure -M:repl/basic ` | Basic terminal UI Clojure REPL with nREPL for connecting editors |
176176| ` clojure -M:repl/reloaded ` | As above with ` dev ` path, library hotload, namespace reload, Portal data inspector |
@@ -212,7 +212,7 @@ Clojure 1.10.x onward can [run a Socket Server](https://clojure.org/reference/re
212212[ tubular] ( https://github.com/mfikes/tubular ) is a Socket Server client for Clojure and Clojurescript REPL processes.
213213
214214| Command | Description |
215- | -------------------------------- | ------------------------------------------------------------------------------- |
215+ | ---------------------------------- | --------------------------------------------------------------------------------- |
216216| ` clojure -M:repl/socket ` | Clojure REPL using Socket Server on port 50505 |
217217| ` clojure -M:repl/socket-zero ` | As above but on first available port (container, cloud environment) |
218218| ` clojure -M:repl/socket-zero -r ` | As above but and run a REPL |
@@ -243,17 +243,16 @@ Default values (can be over-ridden on the command line)
243243* ` :name practicalli/playground ` creates a practicalli domain containing ` playground ` namespace and example Clojure code
244244
245245| Command | Description |
246- | --------------------------------------------------------------- | ----------------------------------------- |
246+ | ----------------------------------------------------------------- | ------------------------------------------- |
247247| ` clojure -T:project/create :template app :name domain/app-name ` | A simple application |
248248| ` clojure -T:project/create ` | Practicalli application called playground |
249249| ` clojure -T:project/create :template practicalli/service ` | Practicalli Service called playground |
250250
251251
252- > ` :project/new ` - uses [ clj-new] ( https://github.com/seancorfield/clj-new ) which is an archived project, although can still be used to create projects using Leiningen style templates. A Clojure CLI configuration must be manually added if these templates do not provide one.
253-
252+ > ` :project/new ` uses [ clj-new] ( https://github.com/seancorfield/clj-new ) which is an archived project, although can still be used to create projects using Leiningen style templates. A Clojure CLI configuration must be manually added if these templates do not provide one.
254253
255254| Command | Description |
256- | --------------------------------------------------------------------------------------------------------| ---------------------------------------------------- |
255+ | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
257256| ` clojure -T:project/new :template app :name practicalli/my-application ` | App project with given name |
258257| ` clojure -T:project/new :template luminus :name practicalli/full-stack-app :args '["+http-kit" "+h2"]' ` | Luminus project with given name and template options |
259258| ` clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["--reagent"]' ` | ClojureScript Figwheel-main project with reagent |
@@ -289,13 +288,13 @@ Then the project can be run using `clojure -X:project/run` and arguments can opt
289288* [ ` :search/outdated ` ] ( https://github.com/liquidz/antq ) - report newer versions for maven and git dependencies
290289* [ ` :search/outdated-mvn ` ] ( https://github.com/slipset/deps-ancient ) - check for newer dependencies (maven only)
291290
292- | Command | Description |
293- | ----------------------------------------------------- | -----------------------------------------------------------|
294- | ` clojure -M:project/check ` | detailed report of compilation errors for a project |
295- | ` clojure -M:search/libraries library-name ` | fuzzy search Maven & Clojars |
291+ | Command | Description |
292+ | ----------------------------------------------------| -----------------------------------------------------------|
293+ | ` clojure -M:project/check ` | detailed report of compilation errors for a project |
294+ | ` clojure -M:search/libraries library-name ` | fuzzy search Maven & Clojars |
296295| ` clojure -M:search/libraries -F:save library-name ` | fuzzy search Maven & Clojars and save to project deps.edn |
297- | ` clojure -T:search/outdated ` | report newer versions for maven and git dependencies |
298- | ` clojure -M:search/outdated-mvn ` | check for newer dependencies (maven only) |
296+ | ` clojure -T:search/outdated ` | report newer versions for maven and git dependencies |
297+ | ` clojure -M:search/outdated-mvn ` | check for newer dependencies (maven only) |
299298
300299> ` :search/libraries ` will show warnings about unqualified libraries the first time it is used, which can safely be ignored
301300
@@ -309,10 +308,10 @@ Then the project can be run using `clojure -X:project/run` and arguments can opt
309308* [ ` :project/unused ` ] ( https://github.com/borkdude/carve.git ) - alternative alias name for : project /carve
310309* [ ` :project/unused-vars ` ] ( https://github.com/borkdude/carve.git ) - alternative alias name for : project /carve
311310
312- | Command | Description |
313- | --------------------------------------------------------------------------------------- | ------------------------------------------------|
314- | ` clojure -M:project/unused --opts '{:paths ["src" "test"]}' ` | remove unused vars from the src and test paths |
315- | ` clojure -M:project/unused --opts '{:paths ["src" "test"] :report {:format :text}} ' ` | report unused vars from the src and test paths |
311+ | Command | Description |
312+ | --------------------------------------------------------------------------------------| ------------------------------------------------|
313+ | ` clojure -M:project/unused --opts '{:paths ["src" "test"]}' ` | remove unused vars from the src and test paths |
314+ | ` clojure -M:project/unused --opts '{:paths ["src" "test"] :report {:format :text}}' ` | report unused vars from the src and test paths |
316315
317316Generate report in a file:
318317
0 commit comments