Add support for ClojureScript evaluation in the browser and building ClojureScript modules in the project #21
Labels
capabilities/interfaces
Concerns accessibility, runtime platforms, and interaction modes
context/experimental
Applies to a specific branch (not master)
Scope
Applies to experiment: https://github.com/connexta/osg-eyes/tree/mvn-indexing
Ensure you're familiar with the parent issue: #19
Goal
Provide JavaScript dependencies, fully integrated with the build, that do the following:
deps-draw-graph
to.cljc
, which is "platform-independent" Clojure.deps-draw-graph
for the browser's consumption.This adds overhead to the project that must be dealt with:
Notes
Managing ClojureScript builds as part of a maven project is a small endeavor on its own. Here are some options:
clj
using the Clojure CLI tools (see quickstart and CLI sections below) and wrap it with an exec plugin; couldn't override theout/
directory for where compiled artifacts end up so unless that gets solved this is no good.deps-ui/
(Create base UI to serve as CLI and dependency graph explorer #20) was done in ClojureScript instead of plain JavaScript / JSX then shadow-cljs would make perfect sense for that.Quickstart to ClojureScript:
Clojure CLI tools:
What Reddit has to say on the topic:
Extra stuff:
See
Adds Clojure console/repl at the top of the web page
commit:eval
functionwindow.clojure.eval(text, callback)
for use on the React side of the project.deps-ui/public
manually but I was loathe to check them into source control so I did not.(
and closing)
without an error getting thrown; would be nice to do this since Clojure is truly being used as just a CLI in this context and everything on the CLI is a function.The text was updated successfully, but these errors were encountered: