jupl / boot-cljs-devtools Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I have the following in my usual app.cljs
and I was wondering if I can have the same when using boot-cljs-devtools
:
(devtools.core/install! [:custom-formatters :sanity-hints])
It is basically adding :sanity-hints
for devtools together with the default :custom-formatters
.
Maybe we can add an option?
My pipeline is surrounded by a watch
and reload
and I see many times the string:
Adding :require [devtools.core dirac.runtime] and :init-fns [devtools.core/install! dirac.runtime/install!] to main.cljs.edn...
Is there a way to detect if dirac/devtools is installed already and skip it? I will ask on Slack, just opened this for reminding it to myself ๐
I see that at the moment there is a warning when either cljs-devtools
or dirac
is missing in the env
.
I have in lambone an optional switch to enable dirac though which at the moment conditionally includes the deps.
It would be great if boot-cljs-devtools
could detect that I don't have one or the other in the env and instead of send back an error, just don't require the namespace and don't call the install!
on that missing dep.
What do you all think?
I have the following pipeline:
(comp (apply serve (mapcat identity (:serve options)))
(built-in/watch)
(apply sass (mapcat identity (:sass options)))
(apply reload (mapcat identity (:reload options)))
(apply cljs-devtools (mapcat identity cljs-devtools))
(built-in/show :fileset true) <- added
(apply cljs (mapcat identity (:cljs options))))
And apart from the apply
noise you can see that I am showing the fileset between the tasks.
Well, I have no .cljs.edn
file (as I am using straight main.js
for my built artifact.
So is there a more reliable way in your opinion to add this code?
It would be better to let the user specify them explicitly in build.boot
or we can include them conditionally if they are not already in the (get-env)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.