如何添加一个构建步骤到leiningen? [英] How can I add a build step to leiningen?
问题描述
所以我有一个使用Foundation和Ring建立的应用程序,我想要能够编译我的自定义的基础CSS每当我运行 lein环服务器
或类似。具体来说,我想能够添加一个步骤运行 compass compile [path]
。
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?
推荐答案
我想说的是,Leiningen Hooks是这样做的正确和惯用的方式: a href =https://github.com/technomancy/leiningen/blob/master/doc/PLUGINS.md#hooks =nofollow> Hooks 。
I would say, Leiningen Hooks are the proper and idiomatic way to do so: Hooks.
您可以使用钩子将内置任务的行为修改为一定程度。 Hook功能由Robert Hooke库提供,其中包括Leiningen。
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.
这篇关于如何添加一个构建步骤到leiningen?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!