hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
jouerose 2019-05-16T12:28:25.054Z

@micha i am back 🙂

jouerose 2019-05-16T12:29:26.054900Z

@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

micha 2019-05-16T12:33:28.057100Z

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

micha 2019-05-16T12:33:56.057700Z

You know like the slack web app for example

jouerose 2019-05-16T13:19:59.057900Z

ok

jouerose 2019-05-16T13:20:00.058100Z

thans

jouerose 2019-05-16T13:20:04.058300Z

thanks

micha 2019-05-16T16:30:30.059700Z

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

jouerose 2019-05-16T17:36:08.060Z

@micha will let you know

jouerose 2019-05-16T17:36:14.060200Z

if i find anyting interesting

2019-05-16T21:31:59.061500Z

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

2019-05-16T21:48:50.062300Z

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)))