This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # 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
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
Is it normal that it takes 27 seconds to compile a simple, one page app with
the thing I am doing is to
resolve in the task, can this be a problem?
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
: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)
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 .
:none of course:
Compiling ClojureScript... • main.js Compile sources, elapsed time: 137.64036 msecs Writing target dir(s)... Elapsed time: 0.641 sec
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.
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)
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 😉 ?
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
This looks great, and should help get me past my project config woes and get me up and running on boot in one step.