martinklepsch / tenzing

⚡️ Clojurescript application template using Boot
Eclipse Public License 1.0
404 stars 39 forks source link

Boot source/resource paths #8

Closed bsima closed 9 years ago

bsima commented 9 years ago

I have no idea why this happens, but when I do lein new tenzing myapp +reagent +divshot +garden, a build.boot is generated with the following:

(set-env!
 :src-paths   #{"src/cljs" "src/clj"}
 :rsc-paths #{"resources"}
 :dependencies '[[adzerk/boot-cljs      "0.0-2411-3" :scope "test"]
                 [adzerk/boot-cljs-repl "0.1.7"       :scope "test"]
                 [adzerk/boot-reload    "0.2.0"       :scope "test"]
                 [pandeiro/boot-http "0.3.0"]
                 [reagent "0.4.3"]
                 [boot-garden "1.2.5-1"]
                 [cljsjs/react "0.11.2"]])

:src-paths should be :source-paths and :rsc-paths should be :resource-paths. From a quick look, the code in your repo looks correct, so maybe the lein template is behind a version or two? I have no idea, but I thought I'd mention it. (I spent an embarrassingly long time debugging that lol)

martinklepsch commented 9 years ago

Hey, I'm sorry you ran into this. It's fixed in master. I'll deploy a new release in the next hour. Although you shouldn't expect that to fully work. There are some issues with used libraries still that need to be addressed first.

On Tuesday, December 23, 2014, Ben Sima notifications@github.com wrote:

I have no idea why this happens, but when I do lein new tenzing myapp +reagent +divshot +garden, a build.boot is generated with the following:

(set-env! :src-paths #{"src/cljs" "src/clj"} :rsc-paths #{"resources"} :dependencies '[[adzerk/boot-cljs "0.0-2411-3" :scope "test"] [adzerk/boot-cljs-repl "0.1.7" :scope "test"] [adzerk/boot-reload "0.2.0" :scope "test"] [pandeiro/boot-http "0.3.0"] [reagent "0.4.3"] [boot-garden "1.2.5-1"] [cljsjs/react "0.11.2"]])

:src-paths should be :source-paths and :rsc-paths should be :resource-paths. From a quick look, the code in your repo looks correct, so maybe the lein template is behind a version or two? I have no idea, but I thought I'd mention it. (I spent an embarrassingly long time debugging that lol)

— Reply to this email directly or view it on GitHub https://github.com/martinklepsch/tenzing/issues/8.

— Martin http://martinklepsch.org http://martinklepsch.org?ref=email

bsima commented 9 years ago

No problem. I'm also re-learning boot, since so much has happened in the last few months (I've been writing javascript, not clojure, unfortunately) so it's mostly my fault for missing the bug.

I also noticed that (cljs :unified true) should be (cljs :unified-mode true), in case you missed that one. Source here

martinklepsch commented 9 years ago

@bsima closing this one, if you encountered any other issues, just open another issue :)