planck

Planck ClojureScript REPL
Yehonathan Sharvit 2020-12-15T04:53:50.000600Z

Is there a way in Planck to generate the analysis cache files for clojure.spec.alpha namespaces? Including macro namespaces This https://github.com/planck-repl/planck/blob/6cb8989c5437bfba7576883f9194fb483ad56c0c/planck-cljs/script/build.clj from planck source seems to be related But I have not idea how to run it

mfikes 2020-12-15T18:19:25.001300Z

@viebel The analysis caches for the macro namespaces are built here https://github.com/planck-repl/planck/blob/5a76879f2d11f8c79323bc5685525d867c46ff32/script/build#L112

mfikes 2020-12-15T18:20:48.001600Z

Related post: https://blog.fikesfarm.com/posts/2016-02-03-planck-macros-aot.html

Yehonathan Sharvit 2020-12-15T20:24:39.003500Z

Thank you @mfikes Is there a way to run a similar command with planck binary (not as part of the build process)? If I run the same command with planck binary then no files is generated. I assume it’s because the planck binary already bundles the macro namespaces.

Yehonathan Sharvit 2020-12-15T20:26:39.004500Z

Also, in the related post, you mention that it’s possible to generate JavaScript for macro namespaces using cljs.js . How would it look like?