keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
2018-07-21T16:19:09.000065Z

Is there a reason for keechma-router to have public/index.html in the build? It's colliding with figwheel and causing problems.

2018-07-21T17:00:21.000063Z

@mihaelkonjevic, it looks like @bhauman went ahead and created an issue for this: https://github.com/keechma/router/issues/1

mihaelkonjevic 2018-07-21T17:26:22.000021Z

@ghopper New version (0.1.2) is released which addresses this issue

2018-07-21T17:34:37.000026Z

Thanks, @mihaelkonjevic!

2018-07-21T17:36:11.000009Z

@mihaelkonjevic, will that new version be in keechma, or should I just add a dependency for the 0.1.2 router in addition?

mihaelkonjevic 2018-07-21T17:37:18.000036Z

Add explicit dependency for now. I'll make a new keechma release in a day or two (I have some other things I've planned for this release)

2018-07-21T17:38:19.000034Z

:thumbsup: Thanks for the quick turnaround. πŸ™‚ Now lein-doo has a public/index.html... πŸ˜•

2018-07-21T17:39:38.000023Z

@mihaelkonjevic lein-doo can be a dev dep, right? https://github.com/keechma/keechma/blob/master/project.clj#L14

2018-07-21T17:40:47.000039Z

:scope "test", I guess

mihaelkonjevic 2018-07-21T17:41:56.000041Z

Yeah, it can. I think you can add it as an exclusion. BTW which lein template are you using? I don't have any of these problems in keechma template so I'd like to check what's going on (to make sure this is not happening)

2018-07-21T17:42:42.000010Z

Oh, I'm using deps.edn. I'll do an exclusion; thanks for the idea.

mihaelkonjevic 2018-07-21T17:43:41.000080Z

Ah, ok I'll check how it works with deps.edn then

2018-07-21T17:57:55.000037Z

Hmm, deps.edn doesn't seem to accept my :exclusions. πŸ˜•

mihaelkonjevic 2018-07-21T18:38:21.000035Z

@ghopper can you send me your deps.edn file?

2018-07-21T18:41:22.000033Z

@mihaelkonjevic I've got a lot of misc aliases and whatnot in my deps.edn. This reproduces it though:

{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}
        keechma/keechma {:mvn/version "0.3.12" :exclusions [lein-doo]}
        keechma/router {:mvn/version "0.1.2"}}}
clj -Stree shows lein-doo

mihaelkonjevic 2018-07-21T18:42:58.000025Z

Try adding it as an exclusion to the router too

mihaelkonjevic 2018-07-21T18:43:40.000036Z

I'm using lein-doo in all keechma related projects. I'll have to go and cleanup all of the project.clj files

2018-07-21T18:44:20.000026Z

(from clj -Stree)

keechma/keechma 0.3.12
  com.cognitect/transit-cljs 0.8.239
    com.cognitect/transit-js 0.8.846
  cljsjs/react-with-addons 15.6.1-0
  lein-doo/lein-doo 0.1.7
    doo/doo 0.1.7
      karma-reporter/karma-reporter 0.1.0
  syntest/syntest 0.1.0
    cljsjs/jquery 3.2.1-0
    funcool/promesa 1.9.0
  org.clojars.mihaelkonjevic/cljs-react-test 0.1.5
    camel-snake-kebab/camel-snake-kebab 0.4.0
  prismatic/dommy 1.1.0
  com.stuartsierra/dependency 0.2.0

2018-07-21T18:44:30.000003Z

I added it to the router as well.

mihaelkonjevic 2018-07-21T18:49:20.000070Z

@ghopper Try adding it as lein-doo/lein-doo

mihaelkonjevic 2018-07-21T18:49:31.000030Z

It works for me. This is the output:

mihaelkonjevic 2018-07-21T18:49:35.000037Z

clj -Stree
org.clojure/clojure 1.9.0
  org.clojure/core.specs.alpha 0.1.24
  org.clojure/spec.alpha 0.1.143
keechma/router 0.1.2
  secretary/secretary 1.2.3
    com.cemerick/clojurescript.test 0.2.3-SNAPSHOT
org.clojure/clojurescript 1.10.339
  org.clojure/data.json 0.2.6
  org.clojure/google-closure-library 0.0-20170809-b9c14c6b
    org.clojure/google-closure-library-third-party 0.0-20170809-b9c14c6b
  org.mozilla/rhino 1.7R5
  com.cognitect/transit-clj 0.8.309
    com.cognitect/transit-java 0.8.332
      commons-codec/commons-codec 1.10
      com.fasterxml.jackson.core/jackson-core 2.8.7
      org.msgpack/msgpack 0.6.12
        com.googlecode.json-simple/json-simple 1.1.1
        org.javassist/javassist 3.18.1-GA
  org.clojure/tools.reader 1.3.0-alpha3
  com.google.javascript/closure-compiler-unshaded v20180610
    com.google.errorprone/error_prone_annotations 2.0.18
    com.google.jsinterop/jsinterop-annotations 1.0.0
    com.google.javascript/closure-compiler-externs v20180610
    com.google.guava/guava 22.0
      org.codehaus.mojo/animal-sniffer-annotations 1.14
      com.google.j2objc/j2objc-annotations 1.1
    args4j/args4j 2.33
    com.google.protobuf/protobuf-java 3.0.2
    com.google.code.findbugs/jsr305 3.0.1
    com.google.code.gson/gson 2.7
keechma/keechma 0.3.12
  cljsjs/react-dom 15.6.1-0
  com.cognitect/transit-cljs 0.8.239
    com.cognitect/transit-js 0.8.846
  cljsjs/react-with-addons 15.6.1-0
  reagent/reagent 0.7.0
    cljsjs/create-react-class 15.5.3-0
  cljsjs/react-dom-server 15.6.1-0
  syntest/syntest 0.1.0
    cljsjs/jquery 3.2.1-0
    funcool/promesa 1.9.0
    org.clojure/core.async 0.3.443
      org.clojure/tools.analyzer.jvm 0.7.0
        org.clojure/tools.analyzer 0.6.9
        org.clojure/core.memoize 0.5.9
          org.clojure/core.cache 0.6.5
            org.clojure/data.priority-map 0.0.7
        org.ow2.asm/asm-all 4.2
  org.clojars.mihaelkonjevic/cljs-react-test 0.1.5
    camel-snake-kebab/camel-snake-kebab 0.4.0
  prismatic/dommy 1.1.0
  com.stuartsierra/dependency 0.2.0

2018-07-21T18:50:06.000035Z

I tried that, but it wasn't on both. I'll try that.

2018-07-21T18:55:28.000015Z

@mihaelkonjevic, it works, but I still get the the index.html from <http://clojure.java.io/resource|clojure.java.io/resource>. πŸ˜•

Clojure 1.9.0
user=&gt; (require '<http://clojure.java.io|clojure.java.io>)
nil
user=&gt; (<http://clojure.java.io/resource|clojure.java.io/resource> "public/index.html")
#object[java.net.URL 0x6b4a2887 "jar:file:/data/prs/m2/repository/keechma/keechma/0.3.12/keechma-0.3.12.jar!/public/index.html"]
user=&gt;

mihaelkonjevic 2018-07-21T19:01:34.000048Z

@ghopper I’ve pushed keechma 0.3.13 . It includes the latest router and it doesn’t have the resources folder in the keechma project

2018-07-21T19:02:17.000028Z

@mihaelkonjevic, Thanks! πŸ™‚

2018-07-21T19:02:40.000082Z

Heh, now I've got a syntest public/index.html. πŸ˜›

mihaelkonjevic 2018-07-21T19:04:09.000080Z

You can also exclude syntest, it's for test purposes. What is the command you're using for running the app? I'll try to clean everything up tomorrow

2018-07-21T19:12:29.000015Z

Yeah, I'll need to see if that's the last step needed later. I've got a flight to catch.

2018-07-21T19:12:45.000019Z

Thanks for taking care of this so quick.

mihaelkonjevic 2018-07-21T19:20:48.000038Z

No problem, feel free to ping me if you have any questions

2018-07-21T19:50:08.000015Z

@mihaelkonjevic keechma/keechma {:mvn/version "0.3.13" :exclusions [lein-doo/lein-doo syntest/syntest]} works like a charm. πŸ™‚ Thanks!

πŸŽ‰ 1