@@ -147,20 +147,20 @@ How to run common tasks for Clojure development.
147
147
* Built-in: tasks provided by Clojure CLI
148
148
* Practicalli: aliases provided by Practicalli Clojure CLI Config
149
149
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 |
164
164
165
165
166
166
## REPL terminal UI
@@ -170,7 +170,7 @@ Run an interactive REPL on the command line with the basic built-in REPL UI or [
170
170
nREPL 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.
171
171
172
172
| Command | Description |
173
- | ------------------------------- | ---------------------------------------------------------------------------------- |
173
+ | -------------------------------- | ------------------------------------------------------------------------------------ |
174
174
| ` clojure -M:repl/rebel ` | Rebel Rich terminal UI Clojure REPL with nREPL for connecting editors |
175
175
| ` clojure -M:repl/basic ` | Basic terminal UI Clojure REPL with nREPL for connecting editors |
176
176
| ` 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
212
212
[ tubular] ( https://github.com/mfikes/tubular ) is a Socket Server client for Clojure and Clojurescript REPL processes.
213
213
214
214
| Command | Description |
215
- | -------------------------------- | ------------------------------------------------------------------------------- |
215
+ | ---------------------------------- | --------------------------------------------------------------------------------- |
216
216
| ` clojure -M:repl/socket ` | Clojure REPL using Socket Server on port 50505 |
217
217
| ` clojure -M:repl/socket-zero ` | As above but on first available port (container, cloud environment) |
218
218
| ` 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)
243
243
* ` :name practicalli/playground ` creates a practicalli domain containing ` playground ` namespace and example Clojure code
244
244
245
245
| Command | Description |
246
- | --------------------------------------------------------------- | ----------------------------------------- |
246
+ | ----------------------------------------------------------------- | ------------------------------------------- |
247
247
| ` clojure -T:project/create :template app :name domain/app-name ` | A simple application |
248
248
| ` clojure -T:project/create ` | Practicalli application called playground |
249
249
| ` clojure -T:project/create :template practicalli/service ` | Practicalli Service called playground |
250
250
251
251
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.
254
253
255
254
| Command | Description |
256
- | --------------------------------------------------------------------------------------------------------| ---------------------------------------------------- |
255
+ | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
257
256
| ` clojure -T:project/new :template app :name practicalli/my-application ` | App project with given name |
258
257
| ` clojure -T:project/new :template luminus :name practicalli/full-stack-app :args '["+http-kit" "+h2"]' ` | Luminus project with given name and template options |
259
258
| ` 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
289
288
* [ ` :search/outdated ` ] ( https://github.com/liquidz/antq ) - report newer versions for maven and git dependencies
290
289
* [ ` :search/outdated-mvn ` ] ( https://github.com/slipset/deps-ancient ) - check for newer dependencies (maven only)
291
290
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 |
296
295
| ` 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) |
299
298
300
299
> ` :search/libraries ` will show warnings about unqualified libraries the first time it is used, which can safely be ignored
301
300
@@ -309,10 +308,10 @@ Then the project can be run using `clojure -X:project/run` and arguments can opt
309
308
* [ ` :project/unused ` ] ( https://github.com/borkdude/carve.git ) - alternative alias name for : project /carve
310
309
* [ ` :project/unused-vars ` ] ( https://github.com/borkdude/carve.git ) - alternative alias name for : project /carve
311
310
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 |
316
315
317
316
Generate report in a file:
318
317
0 commit comments