Skip to content

Commit

Permalink
add :aliases advice (ref gh-54)
Browse files Browse the repository at this point in the history
  • Loading branch information
cemerick committed Dec 8, 2014
1 parent e4a1dfb commit 4328682
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,23 @@ A more comprehensive configuration example can be found
[here](https://github.com/lynaghk/cljx/blob/master/sample.project.clj).

If you want cljx to be invoked automatically as part of the Leiningen
compilation process (e.g. before testing, or cutting a jar), add cljx to your
`:prep-tasks` vector in `project.clj`:
compilation process (e.g. before cutting a jar, performing a release), add cljx
to your `:prep-tasks` vector in `project.clj`:

```clojure
:prep-tasks [["cljx" "once"]]
```

Note that any Clojure tests generated by cljx will not be picked up by
Leiningen's test runner (see
[this](https://github.com/technomancy/leiningen/issues/1782) for some
background). In general, it is probably advisable to set up aliases so you can
completely control what Leiningen will run:

```clojure
:aliases {"cleantest" ["do" "clean," "cljx" "once," "test," "cljsbuild" "test"]}
```

## Changelog

See `CHANGES.md` at the root of this repo.
Expand Down

0 comments on commit 4328682

Please sign in to comment.