Skip to content

Commit a2dc588

Browse files
committed
README: document Make tasks
1 parent 3a5a9fd commit a2dc588

File tree

2 files changed

+23
-28
lines changed

2 files changed

+23
-28
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test eastwood cljfmt install fast-install smoketest deploy clean detect_timeout lein-repl repl lint light-kondo
1+
.PHONY: test quick-test fast-test eastwood cljfmt install fast-install smoketest deploy clean detect_timeout lein-repl repl lint light-kondo
22
.DEFAULT_GOAL := quick-test
33

44
CLOJURE_VERSION ?= 1.11

README.md

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,42 +61,37 @@ Before submitting a patch or a pull request make sure all tests are
6161
passing and that your patch is in line with the [contribution
6262
guidelines](.github/CONTRIBUTING.md).
6363

64-
### Working with mranderson (inlining runtime dependencies)
64+
### Local development
6565

66-
[mranderson][] is used to
67-
avoid classpath collisions.
66+
Local development tasks, like firing up a repl, running the tests or locally installing cider-nrepl are offered by our Makefile.
67+
We recommend using it, since some aspects can be intrincate to newcomers.
6868

69-
To work with `mranderson` the first thing to do is:
69+
These are its main tasks for local development:
7070

7171
```
72-
lein do clean, inline-deps
73-
```
74-
75-
This creates the munged local dependencies in `target/srcdeps` directory.
76-
77-
After that you can run your tests or your REPL with:
72+
# Fire up a repl and nrepl server you can cider-connect to:
73+
make repl
7874
79-
```
80-
lein with-profile +plugin.mranderson/config repl
81-
lein with-profile +plugin.mranderson/config test
82-
```
75+
# Run tests, using mranderson (slower but more realistic)
76+
make test
8377
84-
Note the `+` sign before the leiningen profile. For this leiningen
85-
profile to work **you need leiningen version 2.5.0+!** If you want to
86-
use `mranderson` while developing locally with the REPL the source has
87-
to be modified in the `target/srcdeps` directory. When you want to
88-
release locally:
78+
# Run tests, without using mranderson (considerably faster)
79+
make fast-test
8980
90-
```
91-
lein with-profile plugin.mranderson/config install
92-
```
93-
94-
#### Using the Makefile
81+
# Install the project in your local ~/.m2 directory, using mranderson (recommended)
82+
# The JVM flag is a temporary workaround.
83+
export LEIN_JVM_OPTS="-Dmranderson.internal.no-parallelism=true"
84+
PROJECT_VERSION=0.37.1 make install
9585
96-
...Or you can use the `Makefile` as:
86+
# Install the project in your local ~/.m2 directory, without using mranderson
87+
# (it's faster, but please only use when you repeatedly need to install cider-nrepl)
88+
# The JVM flag is a temporary workaround.
89+
export LEIN_JVM_OPTS="-Dmranderson.internal.no-parallelism=true"
90+
PROJECT_VERSION=0.37.1 make fast-install
9791
98-
```
99-
PROJECT_VERSION=0.37.1 make install
92+
# Runs clj-kondo, cljfmt and Eastwood (in that order, with fail-fast).
93+
# Please try to run this before pushing commits.
94+
make lint
10095
```
10196

10297
## Releasing to Clojars

0 commit comments

Comments
 (0)