如何添加一个构建步骤到leiningen? [英] How can I add a build step to leiningen?

查看:134
本文介绍了如何添加一个构建步骤到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆