Fork me on GitHub
#boot
<
2015-07-05
>
podviaznikov01:07:49

@juhoteperi: great first post:) I included your blog in the examples section (https://github.com/hashobject/perun#examples)

juhoteperi09:07:45

@danielsz: @podviaznikov : Thanks. I wasn't sure if the post was finished yet but I guess it is good enough 😄

danielsz11:07:59

@juhoteperi: I was confused by two points you made.

danielsz11:07:16

You write “Figwheel style ClojureScript development is already possible with Boot using boot-livereload but that requires ClojureScript. "

danielsz11:07:53

What about boot-reload?

juhoteperi11:07:02

ah, that should mentition boot-reload

danielsz11:07:21

what is the difference between https://github.com/bhurlow/clj-livereload and boot-reload?

juhoteperi11:07:06

boot-reload client is written in cljs and has special handling for doing hot cljs reloads (only reloading the changed files instead of full page reload)

juhoteperi11:07:21

boot-livereload/clj-livereload/livereload.js do full page reloads and the client is in JS

danielsz11:07:29

What is the use case for clj-livereload ?

juhoteperi11:07:37

Static pages without cljs

juhoteperi11:07:46

boot-reload doesn't do html reloads, livereload does

danielsz11:07:54

is Perun without cljs?

juhoteperi11:07:35

It is static page generator so yes. But if you want to use cljs you can.

juhoteperi11:07:34

It is also possible to use both boot-reload and boot-livereload: (comp (livereload :filter #".html$") (reload)) would work if you have static page and some Cljs code, livereload would do full page reloads when html is changed and reload would handle JS and CSS changes

juhoteperi11:07:56

danielsz: Thanks for the comments. I did update the post.

danielsz11:07:32

deraen: Awesome.

juhoteperi11:07:14

Interesting. Medium uses serif font for text body ans sans-serif for headers.

danielsz12:07:49

deraen: that sounds to me like a common typographic design pattern

micha14:07:01

deraen: boot-reload doesn't do html reload?

micha14:07:06

this is a bug i think

micha14:07:52

or maybe that was removed, i can't remember now

juhoteperi14:07:20

Oh, it does. I guess I was thinking about Figwheel.

meow14:07:49

I added a section to the boot-cljs-repl Readme file about using Clojure version 1.7. Did I write this up accurately? https://github.com/adzerk-oss/boot-cljs-repl#clojure-version-170

micha14:07:07

pkobrien: looks good!

micha14:07:26

maybe in the next section show the clojure :dependencies entry as well?

meow14:07:39

@micha: not sure what you mean. Isn't that covered in the next section? https://github.com/adzerk-oss/boot-cljs-repl#usage

micha14:07:24

pkobrien: i was just referring to the dependency on [org.clojure/clojure "1.7.0"] that you need, in addition to the BOOT_CLOJURE_VERSION

micha14:07:28

i mean you shouldn't need it, in theory, but there are libraries like instaparse i think that are sniffing the clojure version by looking for things in the classpath instead of by looking at clojure.core/*clojure-version*

micha14:07:05

so if you don't have an explicit dependency on both clojure and clojurescript you can get weird errors

meow14:07:50

I see. So far I've only had a dependency on [org.clojure/clojurescript "0.0-3308"]

meow14:07:22

I guess I should have one for [org.clojure/clojure "1.7.0"] as well.

micha14:07:10

it doesn't always cause problems, but in general it's a good idea to explicitly depend on clojure and clojurescript in your application :dependencies

meow14:07:42

@micha: that's good to know, thanks.

micha14:07:17

because every library you'll use adds a transitive dependency on those, so you can get any crazy version maven chooses

micha14:07:31

like clojure 1.2 or something

micha14:07:40

and some version of cljs from like 5 years ago

meow14:07:14

was there a cljs 5 years ago?

micha14:07:23

haha i guess not

meow14:07:37

but I get your point

meow18:07:44

And, guess what isn't working for me now... 😞

meow18:07:26

Looks like its my app, not boot-cljs-repl, which is what I thought was broken.

meow18:07:41

When I go to all I get is a Directory listing

meow18:07:15

I'll take that as a sign that my .js file didn't compile correctly.

meow19:07:15

Doh! Fixed it.