This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-09
Channels
- # admin-announcements (6)
- # arachne (3)
- # beginners (66)
- # boot (84)
- # braveandtrue (1)
- # cider (84)
- # cljs-site (1)
- # cljsjs (3)
- # cljsrn (2)
- # clojure (138)
- # clojure-austin (2)
- # clojure-czech (1)
- # clojure-gamedev (6)
- # clojure-germany (15)
- # clojure-italy (2)
- # clojure-russia (26)
- # clojure-uk (51)
- # clojurescript (97)
- # css (1)
- # cursive (1)
- # datascript (13)
- # datomic (6)
- # devcards (2)
- # docker (1)
- # emacs (5)
- # hoplon (9)
- # immutant (5)
- # jobs (4)
- # leiningen (6)
- # luminus (27)
- # mount (4)
- # om (16)
- # om-next (4)
- # onyx (15)
- # other-languages (36)
- # overtone (1)
- # proton (3)
- # quil (1)
- # re-frame (11)
- # reagent (24)
- # rum (4)
- # spacemacs (3)
can anyone tell me how can I add npm dependencies in clj.boot project. for lein there’s lein-npm plugin, I’m thinking about switching to boot.
some time ago something like boot -d aleph show -d
would print the dependency graph for aleph but that's no longer the case — bug or feature?
@ag there is a list of community tasks here: https://github.com/boot-clj/boot/wiki/Community-Tasks
but it seems like no one has worked on an npm task yet
maybe webjars could be an alternative for you? I know some people are using that
not really, I need to consume npm packages. basically do exactly what lein-npm plugin does
Ah, this still works: boot -d aleph:0.4.2-alpha3 show -d
Is it normal that it takes 27 seconds to compile a simple, one page app with boot-cljs-reload
?
@martinklepsch: that looks like a bug!
optimizations :simple
the thing I am doing is to require
and resolve
in the task, can this be a problem?
Anyone able to use this with boot? https://github.com/semperos/clj-webdriver
also cljs-repl
is inside the watch chain, maybe I should remove it
Elapsed time: 15.669 sec
with a mere:
(ns acu.app)
(enable-console-print!)
(defn init []
)
@richiardiandrea: there is an option you can provide to the cljs compiler to have it log elapsed times
oh, let me check that 😄
:compiler-stats true
Maybe :source
is too for real time dev:
Compile sources, elapsed time: 172.601627 msecs
Optimizing 152 sources, elapsed time: 25283.938144 msecs
Writing target dir(s)...
Elapsed time: 25.930 sec
I guess those are the dependencies I am requiring (I removed them when I showed you)
are they?
optimisations simple is the problem
use :none
yes @juhoteperi I was trying that now, it is weird, I inherited this project and it was :simple
...maybe they were not using reloading at all
also stuff like boot-reload aren't designed to work with optimizations on, so you might see weird things with :simple .
thanks guys and sorry for the noise
with :none
of course:
Compiling ClojureScript...
• main.js
Compile sources, elapsed time: 137.64036 msecs
Writing target dir(s)...
Elapsed time: 0.641 sec
Is that typical of the time you'd get from a cold boot? (No pun intended)
I'm a lein user strongly considering switching. Knowing that boot managed to somehow shorten the time it takes to go from $ to a running CLJS app would really cinch it for me.
So about the same. Hmm.
I wonder if anyone has figured out a good story for using CLJS to compile CLJS, so you can skip the JVM startup..
(I'm aware of bootstrapping, haha.. I just mean.. within the context of a boot project or a lein project)
Or node..
But.. dat JVM startup time!
Except when you're trying to debug build config issues.
i never use any options with cljs task, except for :optimizations
when i want to compile for prod
I have an issue in my current project (which uses lein) where source maps aren't working in Safari or Firefox, but they are working in Chrome. I haven't had this problem in any of my CoffeeScript projects, so I suspect I might have misconfigured lein somehow. But debugging that... means I hit the JVM startup penalty every time. Do you know if boot-cljs does any better with source maps in non-Chrome browsers?
Or is that the sort of thing I'll just need to find out by testing it myself 😉 ?
Neat-o.
of course if you have a unique situation like you're compiling in 10 docker containers on a vpn in china or something you will need to play with it
I hope to never have such a unique situation.
Solid. Thanks for the info.
Is that the tut in linked from the CLJS github wiki?
This looks great, and should help get me past my project config woes and get me up and running on boot in one step.
:thumbsup: