Skip to content
Nicola Mometto edited this page Sep 27, 2013 · 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 leln-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 to confirm the patch works for you.

Lein 2

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

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

Apply the patch and use lein-cljsbuild as usual to confirm the patch works for you.

Clone this wiki locally