This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-16
Channels
- # beginners (176)
- # boot (11)
- # cider (12)
- # cljs-dev (65)
- # cljsrn (54)
- # clojars (18)
- # clojure (195)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (51)
- # clojure-serbia (3)
- # clojure-spec (24)
- # clojure-uk (28)
- # clojurescript (41)
- # cursive (14)
- # data-science (60)
- # datascript (2)
- # datomic (111)
- # emacs (6)
- # figwheel (1)
- # graphql (16)
- # hoplon (26)
- # juxt (2)
- # lein-figwheel (3)
- # lumo (12)
- # off-topic (8)
- # om (14)
- # pedestal (22)
- # perun (2)
- # proton (1)
- # re-frame (29)
- # reagent (27)
- # ring (17)
- # ring-swagger (2)
- # rum (3)
- # spacemacs (3)
- # unrepl (155)
- # untangled (28)
- # vim (4)
@carocad Not sure if this is ok for your use case: use piggieback to upgrade a jvm repl to a clojurescript one
(ns user
(:require [cljs.repl :as repl]
[cemerick.piggieback]
[cljs.repl.node]))
(defn start-cljs
[]
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env)))
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.0"]
[org.clojure/tools.nrepl "0.2.10"]]
:source-paths ["dev"]
:main user
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
@stijn thanks for the info. At the end I went with a simple clojure.main configuration in cursive which executes the following script:
(require 'cljs.repl)
(require 'cljs.build.api)
(require 'cljs.repl.node)
(cljs.build.api/build "src"
{:output-to "index.android.js"
:optimizations :simple})
(cljs.repl/repl (cljs.repl.node/repl-env)
:watch "src"
:output-to "index.android.js"
:output-dir "target/android")
;:main "env.android.main")
@cfleming question: when you type ";" accidentally instead of "l" is it expected that when you Cmd+Z to undo instead of simplying undoing the insert comment
it undoes the whole previous editing sequence?