This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-31
Channels
- # announcements (1)
- # aws (4)
- # babashka (40)
- # beginners (89)
- # calva (13)
- # cider (3)
- # clj-kondo (36)
- # cljdoc (16)
- # clojure (74)
- # clojure-boston (1)
- # clojure-dev (7)
- # clojure-europe (30)
- # clojure-new-zealand (1)
- # clojure-nl (17)
- # clojure-uk (5)
- # clojurescript (16)
- # core-async (9)
- # cursive (16)
- # datahike (3)
- # datalog (6)
- # datascript (7)
- # datomic (15)
- # emacs (38)
- # events (2)
- # figwheel-main (3)
- # fulcro (6)
- # google-cloud (18)
- # graalvm (6)
- # gratitude (1)
- # honeysql (1)
- # introduce-yourself (1)
- # jobs (1)
- # leiningen (5)
- # lsp (6)
- # malli (11)
- # meander (2)
- # off-topic (4)
- # re-frame (6)
- # reitit (8)
- # releases (2)
- # remote-jobs (3)
- # reveal (4)
- # shadow-cljs (200)
- # sql (8)
- # tools-deps (16)
Does anybody run the clojurescript compiler from a tools.deps build.clj file? I'd like to be able to play with my cljs build in the repl, but all the docs talk about running the compiler from the command line. I'm sure I'd be able to figure it out by digging through the source code, but I thought I'd check if anybody knows of a writeup anywhere.
(ns build
(:require [clojure.tools.build.api :as b]
[shadow.cljs.devtools.api :as shadow]))
(defn uber [_]
(clean nil)
(shadow/release :app)
...)
https://shadow-cljs.github.io/docs/UsersGuide.html#_clojure_repl or search "/release" there
I'm not using shadow-cljs yet, but this is a useful pattern to follow. And I'm sure that the release
function does exactly what I want to do, so that will be a good reference. Thanks!
This works:
(-> (into-array [1 2 3]) (.map inc))
#js [2 3 4]
but there might be a more performant way without creating an array first. Could make it myself of courseOh, but there's a function in JS that works on CLJS collections:
=> (js/Array.from [1 2 3] inc)
#js [2 3 4]
If you’re using Storybook with CLJS, how have you fixed the issue of JS heap running out memory when trying to compile things like specter, when compiling with webpack?
I don't use Storybook but FWIW I have stopped using Specter on frontend after noticing by how much it increases the bundle size.
I believe it's babel that needs to not try to process the files, you can try using ignore
in the .storybook/main.js
config. I haven't tried in a while, but something like this:
babel: async (options) => {
console.log("babel options: ", options)
return {
...options,
ignore: [
/.*cljs.*js/,
/.*goog.*\.js/
]
}
}
I posted this a few weeks back, but since we're still looking for more responses, I'll post it here one more time for those who missed it: The Programing Research Laboratory at Northeastern University is conducting a study on the usability of visual and interactive syntax for ClojureScript. Participation involves filling out a questionnaire and is expected to take about 30 minutes. The questionnaire consists of multiple choice and free form responses. All questions are optional and responses are anonymous. If you are interested in participating, please visit: https://study.visr.pl (Chrome Recommended) To learn more about visual and interactive syntax for ClojureScript, please visit: https://prl.ccs.neu.edu/blog/2022/01/06/introducing-visual-and-interactive-syntax-realized-visr-for-clojurescript-and-javascript If you have any questions, please contact: <mailto:[email protected]|[email protected]>