Fork me on GitHub
#hoplon
<
2019-05-16
>
jouerose12:05:25

@micha i am back 🙂

jouerose12:05:26

@micha for your upcoming app, is it going to be a mobile web app ? if yes, what do you plan to use to make it look app-like

micha12:05:28

Yes mobile and desktop, I wasn’t planning to do anything special really. I think it’s ok if it looks like a web app as long as it’s functional

micha12:05:56

You know like the slack web app for example

micha16:05:30

@jouerose if you see anything that looks solid for building mobile apps I’d be interested to see

jouerose17:05:08

@micha will let you know

jouerose17:05:14

if i find anyting interesting

jumblerg21:05:59

@jouerose last time i made one, a few years back, i hacked together a boot task that shelled out to cordova.

jumblerg21:05:50

from the build.boot:

(deftask cordova
  [p platform OPT str  "target operating system"
   r run          bool "run after building"]
  (comp (target :dir ["bld/www"])
        (with-pre-wrap fileset
          (binding [*sh-dir* "bld"]
            (dosh "cordova" "requirements")
            (dosh "cordova" (if run "run" "build") platform))
          fileset)))

(deftask develop
  [o optimizations OPT kw  "Optimizations to pass the cljs compiler."
   p platform      OPT str "Platform to use during development"]
  (let [opt (or optimizations :none)
        run (if (and platform (not= platform "browser")) #(cordova :platform platform :run true) serve)]
    (comp (watch) (speak) (hoplon) (reload) (cljs :optimizations opt) (run))))

(deftask build
  [p platform OPT str "target operating system"]
  (comp (speak) (hoplon) (cljs :optimizations :whitespace) (cordova :platform platform)))