-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support clojurescript projects #26
Comments
I'm pushing this to the The first blocker is a There may be additional work to do after that, I don't know, but that's the first place to start. |
I have submitted a patch in Dec 14 regarding Now that clojure supports reader conditionals, the patch might be approved |
Hah, that's funny. In any case, I'm fine building a direct workaround into Yagni in the meanwhile. I don't see a particularly compelling reason to delay implementing this until Only thing to note is that I personally do have something of a development schedule here. If you felt like taking it upon yourself to put together a PR I'd accept it, but otherwise I'm going to prioritize better JVM interop and tagged literals for the |
hmm.. I gave it a try but it's not easy: how could I make Meanwhile, I have renamed my
So I removed the Also, |
The best way would probably be to refactor some reasonable section of that codebase out and just place it directly in Yagni; an alternative would be to use The compilation error you're experiencing there is not being caused by Yagni, it's being caused by the fact that renaming the Yagni doesn't trigger a running of the project, but |
|
(defn init []
(if (and js/document
(.-getElementById js/document))
(let [theForm (.getElementById js/document "shoppingForm")]
(set! (.-onsubmit theForm) calculate))))
(set! (.-onload js/window) init) |
look at this thread about |
Good catch, I'll comment in there. |
any update about supporting |
None, but you'll be happy to know that I'm now actively developing in ClojureScript on a daily basis, so I'll probably take a serious look at doing a port in the near future. |
Great! On Fri, Oct 2, 2015 at 3:27 AM, Ursa americanus kermodei <
"Are we what we become or do we become what we are?" - Prof. Beno Gross |
This would be a great addition given that |
At the moment I'm afraid my attentions are focused elsewhere. I'd happily take a pull request if someone felt up to the challenge. |
Still no luck? Cheers - Victor |
I'm afraid Yagni is basically unmaintained at the moment. My day job right now doesn't involve me writing Clojure and while I use some of my Clojure tooling with frequency (e.g. Ultra, my vim plugins) I'm not using Yagni at all. If I were going to return to this project I would probably consider a comprehensive rewrite. |
That having been said, I'm more than open to a PR. |
Thanks for taking the time to answer - much appreciated! |
If anyone is interested, I wrote a complementary tool for cljs https://github.com/stacksideflow/cljs-yagni (implementation-wise this tool is very different though, based on dynamic analysis and source-maps), tested on some biggish codebases. |
I have tried to run
lein yagni
on a very smallcljs
project: https://github.com/viebel/cljs-exploreAnd nothing happened. The
cljs
files are not parsed.The text was updated successfully, but these errors were encountered: