Skip to content

Instantly share code, notes, and snippets.

@roman
Created November 29, 2012 00:32
Show Gist options
  • Save roman/4165851 to your computer and use it in GitHub Desktop.
Save roman/4165851 to your computer and use it in GitHub Desktop.
An example of a dalap_rules.clj file for lein-dalap
{
["src/clj/util.clj" "src/cljs/util.clj"]
;; ^ this is the file-spec
;; bellow are the transformation rules that will work _only_ on util.clj
[
;; rule 1
JavaClass js_class ;; replace all the JavaClass symbols with js_class on cljs
;; rule 2
.findRegexp .findRgxp ;; replace all the .findRegexp invocations to .findRgxp
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment