This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-22
Channels
- # aatree (2)
- # beginners (14)
- # boot (190)
- # cider (16)
- # cljs-dev (15)
- # cljsjs (6)
- # cljsrn (7)
- # clojure (101)
- # clojure-austin (26)
- # clojure-berlin (2)
- # clojure-estonia (4)
- # clojure-greece (53)
- # clojure-russia (46)
- # clojurescript (44)
- # core-async (12)
- # cursive (57)
- # data-science (49)
- # datomic (5)
- # emacs (8)
- # hoplon (92)
- # ldnclj (20)
- # lein-figwheel (22)
- # leiningen (4)
- # mount (37)
- # om (103)
- # onyx (26)
- # parinfer (70)
- # proton (6)
- # re-frame (32)
- # reagent (1)
- # yada (24)
In deraen/boot-sass should a file app.main.sass
create a app.css
or a app.main.css
file?
It does the latter for me but all documentation I find seems to indicate the former.
@martinklepsch: deraen/boot-less also does the former so that looks like a bug
I have a main.main.less
and that becomes main.css
thanks
Hmm, I'm trying to remember if there was a idea that sass4clj should work more like other sass tools
partial files start with _
and other files are "main files"
find-mainfiles
should be changed a bit then
and the documentation
Ah no!
it already filters out files starting with _
so only the docs are wrong
oh ok, so the main.sass thing isn't a thing any more really?
(makes sense I guess)
@martinklepsch: @mitchelkuijpers: https://github.com/Deraen/sass4clj/commit/5eb5549fac5d2561b7f6d6978542ebb71e7d407e
@juhoteperi: task docstring also mentions main.sass
@martinklepsch: Should be fixed & deployed.
I'm pretty sure JSass supports it... yep, I think: http://jsass.readthedocs.org/en/latest/options.html#source-map
Any boot-test maintainer around? There's a PR to avoid an unexpected exception when there are no namespaces to test: https://github.com/adzerk-oss/boot-test/pull/23, usually not a major issue but it would be great if it gets merged
@nberger: seems safe to merge, will merge and cut a release
thanks @martinklepsch!
@nberger: [adzerk/boot-test "1.1.1"]
hello. i'm trying to get a simple compojure app running with boot-http and the classpath isn't giving me any love. all my static resources are in target/, and all my .class and .clj files are in target/classes. how can I control the classpath used by boot-http's server?
@mobileink: where are the files you want to have on the classpath?
@mobileink: are these static files and you put them into target yourself?
i may be misunderstanding the server - I'm following the way servlet containers do it, static resources are not on the cp
you don't have a src
directory?
what are you setting :source-paths
and :resource-paths
to?
@pandeiro: No source-map support currectly, there were some problems with paths or something, haven't had time to look into it. PR welcome.
my build process copies from src/ to target/classes. this is a requirement for GAE; I'm trying to make one process that works for gae, jetty, etc.
@martinklepsch: i've tried lots of different things - it still isn't clear to me what they should be
a common setting is :source-paths #{"src"}
and :resource-paths #{"resources"}
@mobileink: anyways what does your ring handler look like if you're trying to serve from target/classes
?
i'm using the minimal example from lein new compojure. I added hiccup, and I'm trying to access a namespace where I have config info
you might be able to get an idea if you look at https://github.com/mobileink/boot-bowdlerize
you want to require the namespace or respond with the contents of its file? what do you mean by "config info"
the idea is that the files in the config/ dir are processed by bowdlerize/install and bowdlerize/config. the former wraps bower and installs. the latter generates .clj source that is then used at runtime
@pandeiro: This issue has very short description of the problem: https://github.com/Deraen/sass4clj/issues/1
my handler requires e.g. [hello.scripts :as scripts], [hello.styles :as styles])) then my hiccup code can do e.g. [:link {:type "text/css" :rel="stylesheet" :href (:uri styles/materialize)]
the basic idea is use the same information for both build-time tasks (e.g. bower install a Polymer component) and runtime tasks (e.g. generate a URL for the Polymer component).
with gae's devserver, src/
is not in the runtime cp; you have to copy your sources into target
(or whatever you call it) and then tell the server that target
is your webapp root. but i gather jetty doesn't normally work that way.
@mobileink: What is your use case for using bower?
@mobileink I had similar problems. What are you using for serve? I was using boot-jetty, which does not handle static resources. Switched to boot-http and all is well.
not to mention lots of other webdev resources; bower seems to be a pretty good pkg manager, and boot makes it easy to wrap it.
Hmh, my expereince with Bower is that it is super bad package manager
@laforge49: trying to get boot-http working.
And I'm asking because all bower packages are already available in webjars maven repository
@juhoteperi: maybe so, but i don't really have a choice
@juhoteperi: didn't know that, maybe i do have a choice.
For myself, I was just using a .js file in the root of another jar, so I did not need to set up any routes.
anyway the drawback is that then your static files are in a jar. with a servlet i don't think you want that, you want the servlet container to deliver stuff straight off the disk
@mobileink: With boot it is easy thing to copy files from dependencies into fileset and to disk
anyway the more the merrier, boot-bowdlerize is about as far as I'm going to take it, and i could probably adapt it to use webjars.
what it really does is generate config data from bower metadata, that's the main use case. maybe some could be done with webjars metadata
@laforge49: thanks, i'll take a look
well, no matter where I put my bower_components dir, and how I set my :*-paths in build.boot, I always get the ol' 404 on e.g. http://localhost:3000/bower_components/Materialize/bin/materialize.js
I knew it would turn out to be something stupidly obvious: (route/files "/" [:root "target"]) makes it go.
Hello guys! is there an equivalent to lein run -m namespace
@richiardiandrea: don't think so
should be easy to write yourself though
yeah true that, just require the namespace and launch -main 😄
So how do I get the aot'd library classes into the jar file with boot? Never had a problem with this with lein.
if that throws an exception then you won't be able to AOT the namespace until you get it onto the classpath
i can't really believe that the aot task can know whether it's being followed by run-tests or build-jar
could you run it on your system to confirm windows bug? https://github.com/aatree/aadurable/
~/git/aatree/aadurable master
barp $ BOOT_VERSION=2.5.5 boot -BP -r src/clj -r src/cljc aot -n aadurable.core jar target
Compiling 1/1 aadurable.core...
123
Writing project.jar...
Writing target dir(s)...
~/git/aatree/aadurable master
barp $ jar tf target/
aadurable/ project.jar
~/git/aatree/aadurable master
barp $ jar tf target/project.jar |grep aadurable
aadurable/
aadurable/core.cljc
aadurable/fun.clj
aadurable/core$prxx.class
aadurable/core$loading__5569__auto____64.class
aadurable/core$fn__66.class
aadurable/core__init.class