This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (3)
- # alda (4)
- # beginners (30)
- # boot (116)
- # cbus (5)
- # cider (20)
- # clara (10)
- # cljs-dev (12)
- # cljsjs (41)
- # cljsrn (9)
- # clojars (6)
- # clojure (131)
- # clojure-bangladesh (5)
- # clojure-colombia (2)
- # clojure-dev (9)
- # clojure-ireland (4)
- # clojure-japan (3)
- # clojure-norway (10)
- # clojure-poland (6)
- # clojure-russia (59)
- # clojure-sg (1)
- # clojurebridge (2)
- # clojurescript (76)
- # clojurewerkz (4)
- # css (6)
- # cursive (21)
- # data-science (24)
- # datomic (27)
- # emacs (9)
- # hoplon (68)
- # jobs (2)
- # jobs-rus (1)
- # ldnclj (10)
- # lein-figwheel (9)
- # leiningen (21)
- # off-topic (5)
- # om (232)
- # onyx (63)
- # parinfer (2)
- # proton (25)
- # re-frame (12)
- # reagent (39)
- # untangled (6)
- # yada (122)
has anyone boot-ized the luminus project yet? looking for a good full stack template similar to Tenzing
The extensions are a convention used in cljsjs packages. They are used by
deps-cljs task when packaging cljsjs libs.
Hello. I'm relatively new to boot and am just trying to create a (pure clojure - no cljs) project that uses 'watch' and recompiles when I change a file in my source-paths.
I have these tasks: (deftask bundle  (comp (speak) (aot) (pom) (uber) (jar))) (deftask dev  (comp (watch) (repl) (bundle)))
When I change a file, I get Could not locate james/imbibe__init.class or james/imbibe.clj on classpath. (after i edit imbibe.clj)
Killing boot and executing 'boot dev' once again takes forever to restart (building the uber?). What is the best way to do this?
So I should just get rid of (aot)? (I'm still learning boot and possibly don't even know what aot actually does...)
I have removed (aot) from the 'bundle' task and now I get the following error: Error: Could not find or load main class james.core when running java -cp target/project.jar james.core http://localhost:3554/new-index.html
(ns james.main (:gen-class)) (defn -main [& args] (require 'james.core) (apply (resolve 'james.core/-main) args))
> java -cp target/project.jar james.main http://localhost:3554/new-index.html Exception in thread "main" java.io.FileNotFoundException: Could not locate james/core__init.class or james/core.clj on classpath.
both are on the build classpath, but
:sourec-paths isn't included in packaging, like the target dir or jar files etc
more info about that here: https://github.com/boot-clj/boot/wiki/Filesets#roles-of-files
in the boot file, (comp (speak) (aot) (uber) (jar) (sift :include #"\.jar$") (target))
all the public api namespaces are here https://github.com/boot-clj/boot/tree/master/doc
loading clj namespaces is fine because the classes it generates are basically anonymous
Off topic - Just wondering with a nickname like 'micha', are you in the slavic world somewhere?
@inhortte: if you get a moment and want to update the wiki with a note about aot and watch that would be most appreciated, but no pressure
i keep forgetting to monitor stack overflow, which would probably be the most googlable way to make these little tricks available
@micha: Let me know what you think and if I should add / subtract / obliterate anything: https://github.com/boot-clj/boot/wiki/Watch-and-Code-Reloading
perhaps rename the article to be something related to working around limitations of the watch task and aot combination?
like the shim is to allow you to avoid aot compilation of namespaces you'll be changing
@micha I changed a few things... https://github.com/boot-clj/boot/wiki/Circumnavigating-Watch-and-AOT-Compilation-Limitations
Not that anyone will care but I switched FW/1 (a lightweight MVC framework) over to Boot, including making its template a Boot-specific one. It was a Leiningen template before.
Partly because we’re starting to use FW/1 at work. We’ve been using the CFML version of FW/1 for years. We’re just, finally, starting to write end-to-end Clojure web apps and therefore using the Clojure version of FW/1!