Fork me on GitHub

Hi. Just wanted to let you know that I've released a new version of today - 0.1.0. You can test it out by including [mattsum/boot-react-native "0.1.0-SNAPSHOT"] in your dependencies, and adding (before-cljsbuild) and (after-cljsbuild) to your boot build pipeline. This release features a major cleanup of the code, and copies decker405's figwheel functionality - hot reloading now works for both normal and Chrome modes. Also added some documentation and an example app. I also played around using Appium to test the reloading functionality - pretty cool for integration level testing of mobile apps, and definitely something that I'm going to investigate more. Check it out in example/integration-tests.boot.


@mjmeintjes: thank you! Really cool to hear about testing, gonna play with your project today


btw - hot reloading are coming to the react native, so I guess in boot-react-native you may drop the figwheel eventually. And actually re-natal and ktoa may also shift to the react packager as well. This is btw PR regarding appium and testing: Another cool thing that happened during the night (I feel like a news reporter lol) is this one Now with re-natal you can specify CLI params with a package name that you want to use and viola! you can simply use (js/require ‘react-super-package). Same thing should work for images as well, no more hassle with looking for package ID and hardcoding that into your source and so on


might be a newbie question but I'm not that deep into clojure yet. What would boot give me that lein doesn't




you can define your own tasks like:


(deftask dev
  "Run a restartable system in the Repl"
   (environ :env {:http-port "3000"})
   (watch :verbose true)
   (system :sys #'dev-system :auto-start true :hot-reload true :files ["handler.clj"])
   (cljs :source-map true)
   (repl :server true)))


so if you want to have sass stylesheet compilation and stuff you just slot it in then run boot dev in your command line


yeah, with mobile development where we have to take care about different things and where build process is more complicated boot approach looks better


What I like about boot is that it gives you a lot of control over your build process. From my experience, with lein you are mostly stuck with what is provided to you, with boot you can very easily add some functionality into your build pipeline. For example, in boot-react-native I only had to focus on implementing react-native specific functionality, and got the rest (repl, reloading) for free.


@artemyarulin Cool, didn't know hot reloading was coming to RN. I'm not using figwheel, rather the normal cljs-reload task. Basically, all boot-rn does is override Google Closure js loader functionality to work in react-native environment.


@mjmeintjes: You mentioned and copies decker405's figwheel functionality so I thought that you started to use figwheel as well, no?


No, just re-used a lot of the JavaScript code from decker405's project. Boot reload is pretty heavily based on figwheel (in fact I think they are busy replacing the back end with figwheel core) so most of the code from decker405's project was transferrable.


oh, that’s cool


so just to clarify - with boot and boot-reload there is no need to use figwheel?


@artemyarulin: you could eventually take a look at and particularly at the 16th tutorial That said, your work is awesome!


Thanks, I’ll have a look


@artemyarulin Yeah, no need for figwheel or lein - all you do is add the 2 tasks (before-cljsbuild and after-cljsbuild) to your build pipeline and everything (reload and repl) should just work. See example project's build.boot for working example.


nice, really cool, didn’t know that boot has to much staff.


The more I use boot the more I like it. Recently discovered it has shebang support for writing single file, self contained clojure scripts that automatically pulls in its own dependencies - really cool for writing quick scripts.


Related to ^boot scripts^, be sure to add these BOOT_JVM_OPTIONS to your environment: Doing that yesterday caused my script to startup about twice as fast.