Skip to content
swannodette edited this page Nov 19, 2012 · 14 revisions

Creating patches

Make a branch off master and write the code for the patch and commit it. Please squash multiple commits into a single commit. Then produce the patch with the following:

git format-patch master --stdout > cljs_ticket_number.patch

Testing patches

In order to test ClojureScript patches in your own project (assuming you are using lein-cljsbuild) please do the following.

Lein 1.7.X

git clone clojurescript into a directory in your project called checkouts. Add the following to your project.clj

:extra-classpath-dirs ["checkouts/clojurescript/src/clj"
                       "checkouts/clojurescript/src/cljs"]

Apply the patch and use lein-cljsbuild as usual.

Lein 2

git clone clojuresript into your project directory. Append the following to your :source-paths in your project.clj

:source-paths [... your source paths ...
               "checkouts/clojurescript/src/clj"
               "checkouts/clojurescript/src/cljs"]

Apply the patch and use lein-cljsbuild as usual.

Clone this wiki locally