Hey folks, After the configleaf plugin stopped working (most likely because of a change in Leiningen), I decided to take it under my wing as and call it slothcfg so that folks could grab the new changes via Clojars & Leiningen.
Features slothcfg for Leiningen 2 fills in the missing features in Leiningen 2's profile support: Makes the project.clj file available to your code at runtime so that you can use it as a config file! Build profiles for Leiningen that can be set and remain in effect until unset. Built-in templates to create .cljs, .cljx or .cljs config files. The new plugin features lots of updates: What's new in 1.0.0 (aka 1.0.1): Renamed project to slothcfg so that users can pull new features from Clojars. Removed all use of :use (it's bad, mmm'k?) Removed robert-hooke dependency because it comes with leiningen 2. Consolidated the set-profile and unset-profile tasks under a generic slothcfg task to future-proof slothcfg. Added :file-ext option to specify config file extension. Added :template option to allow the option of providing your own mustache template. Added :middleware option to optionally transform the project map. Added templates for .cljx and .cljs :file-ext. Updated .clj template to use 'defonce' now. Templates now store config map in an atom to allow for updates within the project. dissoc :checkout-deps-shares from the project map to fix an incompatibility with Leiningen 2.3.0 that caused an "Unreadable form" RuntimeException. Included @ninjudd's PR to configleaf to add :keyseq and :var options Restructured and updated text in README.md Grab it at Github: https://github.com/taoeffect/slothcfg Cheers! Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA.
signature.asc
Description: Message signed with OpenPGP using GPGMail