Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a build step to leiningen?

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?

like image 330
alexgolec Avatar asked Nov 01 '22 16:11

alexgolec


1 Answers

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.

like image 192
Chiron Avatar answered Nov 15 '22 05:11

Chiron