So I've got an application built using Foundation and Ring, and I want to be able to compile my custom Foundation CSS whenever I run lein ring server
or the like. Specifically, I'd like to be able to add a step the runs compass compile [path]
. What's the idiomatic way to do this?
Asked
Active
Viewed 1,053 times
5

alexgolec
- 26,898
- 33
- 107
- 159
1 Answers
2
I would say, Leiningen Hooks are the proper and idiomatic way to do so: Hooks.
You can modify the behaviour of built-in tasks to a degree using hooks. Hook functionality is provided by the Robert Hooke library, which is included with Leiningen.

Chiron
- 20,081
- 17
- 81
- 133
-
1Does the hook block the completion of the build? In other words, is the build not considered complete until all hooks have executed? – alexgolec Aug 14 '13 at 23:23
-
Meanwhile in the distant future, hooks have been deprecated but the documentation doesn't mention any alternative. I'm assuming the sensible way to proceed is to wrap the 'lein' call as a custom step in some other build process (e.g. npm, maven) – Andy Feb 27 '21 at 07:25