I'm still having difficulties running the examples 🙂 I'm sure it's something silly on my part
I've run lein install, lein cljsbuild auto, but when I open an index.html file it seems like the files its expecting aren't there
@dehli when you do the lein install
, check if there aren't any warnings like Warning: skipped duplicate file: deps.cljs
, if there are, delete the target
folder and try again
after you finish, it should say which version was instaled, if you are on master will be like ...om-1.0.0-beta2-SNAPSHOT.jar
so then on your project deps, use [org.omcljs/om "1.0.0-beta2-SNAPSHOT" :scope "provided"]
then you should clean your project build and start over
I know, a lot of stuff, but then you should have the dev version working 🙂
okay, so i'm seeing the 1.0.0-beta2-SNAPSHOT
then if I reference that version in my own project, it'll be my own local version?
b/c it seems like it's creating it in the /om
folder itself
it is installing on your local maven repository
so you should jsut be able to use it from that version
ahh, that's neat! and it's for cljs & clj?
👍
for clj I recommend checking lein checkouts
, they are more convenient and work great for clj
well i really just need to test out the cljs stuff
lein checkouts: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies (edited)
sure, just go with the install and it should be good
what are you trying to archive? use the om dev version, or make some changes on it?
ya, i'm trying to make some changes. i'm trying to see if we can get js class interop
to get around the create react class warning
ah, if you want to check, I sent a PR for that: https://github.com/omcljs/om/pull/883
ahh, nice! 😄 i'm going to see if we can do it w/o pulling in that library
https://github.com/clojure/clojurescript/wiki/Working-with-Javascript-classes i was reading this and it seems like it might be possible
anyway, if you want to keep a fast iteration cycle, I recommend a different approach, because doing the lein install
is really bad for that (after every change you would have to re-install and re-start the build for your project)
would lein checkouts fix that?
maybe, but I personally was never able to make it work for cljs, but you might 🙂
but there is an easier option
you can just copy the namespace you want to change on your source path (following the correct namespaces)
then the namespaces you have locally will have priority over the ones installed, this way you can iterate as if was just part of your code
ooooh, that's very smart!
thanks! i'll do that