Fork me on GitHub
#untangled
<
2016-09-13
>
therabidbanana18:09:57

Here's the blog post I was promising someone a while back, complete with some code samples (and a bit of selling for our coworkers who haven't seen live-reloading in action): http://tech.adstage.io/2016/09/12/how-we-test-full-stack-clojure.html

therabidbanana19:09:02

Thanks! Think I covered everything - @currentoor and @kenbier helped proof-read/make suggestions

shaun-mahood19:09:23

@therabidbanana: Really interesting post, I think it's worth posting to some non-untangled channels as well - lots in there that applies to pretty much every front end CLJS project.

baris19:09:39

Good job. So u guys are using boot instead of leiningen. Great! Any ideas to share the experiences?

therabidbanana19:09:37

I think that'd probably be something worth writing up, but I'm more of a clojure newcomer so I haven't really dealt with leiningen all that much for comparison

therabidbanana19:09:36

Oh yeah, forgot @currentoor released that.

therabidbanana19:09:36

Doesn't look like it takes much advantage of being in boot from the looks of the build.boot file - we have a lot more in our actual project. Might be worth updating a bit.

baris19:09:43

But it's a very good place to start with boot and untangled. Thanks @currentoor

baris19:09:13

Ok, after reviewing the files an update would be nice ;)

baris19:09:22

sth with boot-reload and so on. I'm happy to talk and help out if I can.

currentoor20:09:48

Hey @baris I've actually got a boot-untangled template in the works. I'll post it here as soon as it's ready!

ethangracer20:09:52

the visual regression test with advanced compilation is a brilliant idea

adambros20:09:25

@currentoor: I鈥檝e already got untangled-template going, have you looked at that and/or is there a reason you couldn鈥檛 put boot in that?

currentoor20:09:21

@adambros sorry it's not a template like that, a simple toy application

currentoor20:09:34

like TODO MVC but hopefully more silly

adambros20:09:50

ok well i would like to see it as maybe i can put it in that project

currentoor20:09:10

for sure, i'll keep you posted. i've just setup the skeleton so far

tony.kay20:09:25

@therabidbanana Nice article! Thanks for sharing.

currentoor20:09:53

@ethangracer it's kind of funny the devcards visual regression test idea were the direct result of spite and anger with a former teammate rather than some good idea we deliberately cooked up

tony.kay20:09:58

I agree with @ethangracer, the visual regression stuff is nice

tony.kay20:09:14

nice to know something good comes from spite 馃槈

currentoor20:09:31

i basically got furious one night and had to prove the clojure stack was worth us using 馃槃

currentoor20:09:29

i don't think i would have been as motivated otherwise lol

tony.kay20:09:46

yeah, new obscure frameworks are a tough sell. I was exploring the competition today...still not seeing anything I like nearly as well. I know I'm biased, but the full-stack story we have is pretty darn compelling once you understand it.

tony.kay20:09:04

it has kinks to work out still...

tony.kay20:09:26

anyone playing with anything to componentize CSS with respect to their Om/Untangled components?

tony.kay20:09:54

I've been brainstorming on that particular topic because we're starting an untangled-components library, and I want people to be able to style the things easily.

tony.kay20:09:22

I've got a meeting to go to now, but if anyone has ideas, feel free to share them here or in PM

currentoor20:09:34

oh that would be cool!

tony.kay20:09:17

yeah, co-located CSS? Compiler integrations the extract base CSS like the i18n stuff? Naming conventions with CSS name generation macros, etc.

tony.kay20:09:41

I'm trying to weigh the different options and see what seems to have the best long-term promise

currentoor20:09:26

i used react-material-ui once in cljs

currentoor20:09:40

you specified the theme with a js object

currentoor20:09:49

and then apply it to the context feature in react

currentoor20:09:07

but maybe here it would make most sense to just store it in the app-state?

therabidbanana20:09:12

Other approach would be use something like garden, I've played with that recently, not too bad to use (but in CLJ, not sure if it works well in CLJS)

therabidbanana20:09:38

Now that our designer is getting more into the CLJS files maybe we can subject him to a few experiments.

anmonteiro21:09:35

shameless plug right there, but it works quite nicely for some cases

currentoor21:09:11

@anmonteiro I have not but it looks pretty cool.

tony.kay21:09:14

it is now on my list to evaluate

tony.kay21:09:46

I'm not sure it is the right solution...e.g. how would a designer override that?

anmonteiro21:09:15

the approach there is to generate css based on the colocated styles

tony.kay21:09:38

I understand. I'm wondering how well that can be made to work where you have components some CSS person is trying to style

anmonteiro21:09:39

generated classes are ns-name prefixed by default, but you can specify raw classes without prefixes

anmonteiro21:09:05

in that case you can write CSS against those classes

tony.kay21:09:38

I'll look it over...glad to see you're already working on a solution

tony.kay21:09:54

I expect to be pleasantly surprised 馃槈

anmonteiro21:09:01

let鈥檚 hope so!

anmonteiro21:09:10

I鈥檝e also recently added support for Sablono

tony.kay21:09:16

oh, and when did you want that job??? 馃槃