Fork me on GitHub
#announcements
<
2019-10-21
>
ikitommi06:10:52

Malli Schema Playground! (inspired by web-tools by @borkdude) - https://malli.io

steveb8n07:10:23

first time I’ve seen a playground. so much better than a readme. has anyone figured out how to embed it in a readme?

borkdude09:10:55

maybe take a look at how @ does it with klipse?

filipematossilva11:10:08

Heya all, I've just published https://github.com/filipesilva/create-cljs-app. It is focused on making it easy for JS and React developers to get started with ClojureScript. You can use it via npx create-cljs-app my-app or yarn create cljs-app my-app. That will create an app on my-app that has preconfigured scripts for building, testing, e2e, linting, and formatting. Everything works on Linux, OSX, and Windows. I'm not super well aligned with idiomatic CLJS usage so if you think there's something that should be done in another way please let me know. A couple of big thank yous: @roman01la for providing the create-cljs-app npm package and making zlint-clj support whole dirs, @borkdude for helping me distribute clj-kondo on npm, and @thheller for making the awesome shadow-cljs that the starter uses

filipematossilva11:10:51

Together with the above, clj-kondo is now on npm too via https://github.com/filipesilva/clj-kondo. You can install it globally or locally and run it as usual. It will use native binaries where available and fallback to the jar file otherwise.

alexmiller15:10:41

tools.deps.alpha 0.8.578, clj 1.10.1.478 are now available

alexmiller15:10:01

These releases are now available in the usual places. Changes: * Add support for :deps and :paths in aliases to replace the equivalent project :deps and :paths - see below * TDEPS-29 - fix -Sgen unnecessary newlines in generated pom in Java 9+ (big thanks to the tip in ask.clojure by Andrey Antukh!) * TDEPS-138 - add tools.deps.alpha.reader/user-deps-location function The big change here is to support replacement :deps and :paths in aliases, designed for tools that don't require the project classpath. In these cases, you can use :deps (and :paths if needed, although that's probably uncommon) instead of :extra-deps (or :extra-paths) to set the tool's classpath (and ignore the project :deps entirely). This can reduce the risk of conflicts between the tool classpath and the project classpath. For example, you could configure depot in a deps.edn as follows:

{:aliases
 {:depot
  {:deps {olical/depot {:mvn/version "1.8.4"}}
   :main-opts ["-m" "depot.outdated.main"]}}}
And run it with clj -A:depot. Here, the :deps replaces the project deps so there is less risk of conflict between depot's deps and your own project deps. Additionally, I would encourage you to install tools like this not in your project deps.edn, but once in your ~/.clojure/deps.edn instead. Note that is not applicable to every tool - some tools (test runners in particular) rely on running in the context of your project classpath and thus I would not recommend any changes to how they are configured (they should still use :extra-deps, etc).

seancorfield16:10:22

There's an irony there: Depot 1.8.4 actually will use the project deps by default and does The. Right. Thing. and that is how we use it. Depot 2.x does not -- it reads the deps.edn files you tell it, and that actually breaks our setup.

seancorfield16:10:56

Are :config-user and :config-project new in -Sdescribe @ or have I just not noticed them before?

alexmiller16:10:47

doh. yes, :config-user and :config-project are new in -Sdescribe as well