Closed freakinruben closed 9 years ago
+1
I'm also experimenting that.
I'd love a release with this fix included.
Hi @cemerick, please could you make new release with this fix?
This bug is particularly ugly with emezeske/lein-cljsbuild#362. Cljx creates additional .clj files (which include file: inside its path), cljsbuild tries to load them and fails.
Thank you.
I really appreciate @niwibe's work in addressing this, but the proposed PR was just too complicated (adding a suite of general-purpose string processing fns, etc).
I believe I've addressed this on master. Available in [org.clojars.cemerick/cljx "0.6.0-SNAPSHOT"]
until the final 0.6.0 release is cut. Please test that and report any remaining problems.
Thanks! ;)
Brilliant! Thanks Chas! This solves the problem and I'm now able to use cljx and cljsbuild in conjunction.
I'm using cljx 0.5.0 and it works great when I run
lein cljx once
. However, when I runlein cljx auto
it will generate the code twice and I'm not sure wether this is caused by a misconfiguration in theproject.clj
or a bug of cljx.The following folders are created:
target/generated-src/{ns}...
-> correct clj/cljs filestarget/generated-src/file//{path-to-project}/test/cljx/{ns}/...
-> contains generated clj/cljs test-filestarget/generated-test/{ns}...
-> correct clj/cljs test-filestarget/generated-src/file//{path-to-project}/src/cljx/{ns}/...
-> contains generated clj/cljs filesWith
lein cljx once
only the folders of 1 and 3 are generated.My project.clj contains the following: