This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-25
Channels
- # announcements (4)
- # babashka (13)
- # beginners (115)
- # cider (62)
- # clj-kondo (16)
- # cljdoc (4)
- # cljs-dev (5)
- # clojure (44)
- # clojure-europe (57)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (24)
- # clojurescript (58)
- # code-reviews (2)
- # community-development (6)
- # conjure (3)
- # core-async (9)
- # cursive (34)
- # datahike (3)
- # datalog (1)
- # datomic (67)
- # emacs (9)
- # events (5)
- # fulcro (9)
- # graalvm (1)
- # jobs (1)
- # lsp (24)
- # off-topic (20)
- # pathom (17)
- # polylith (11)
- # re-frame (21)
- # react (21)
- # reagent (3)
- # reitit (23)
- # releases (1)
- # remote-jobs (1)
- # ring (3)
- # sci (47)
- # tools-deps (7)
- # vim (15)
- # xtdb (4)
Nice! I can confirm using Reagent with Sci can be used for many things. I have been playing with it since last year. Back then I still ran into some issues (I was pushing it), but I think they have been solved since
Making an http request with the sci application tag =) https://github.com/borkdude/sci-script-tag/blob/ef2eb9a19097902b6c4b24de261ad4d0d8f08e0c/resources/public/tictactoe.html#L51-L60
Had a better look at how you do the plugin system. Really cool. I hope to try it with something like observablehq soon to further explore it
@jeroenvandijk I suspect that there will be some problems if plugins are developed independently (in separate projects) since the advanced compilation renaming might not work the same if you work in a fork... I haven't tested that. But it will probably work if you compile all the modules using simple
or so
Ah yeah true forgot about that
yeah exactly still very useful. A page only needs to load the plugins it needs
Not sure how heavy the advanced compilation process would become with many plugins. Worth to find out 🙂
fork the script-tag project, make a plugin and see if it works with the published script-tag js
yeah good one
I don’t know enough about the compilation process but I hope it is somewhat deterministic
I've been investigating support for CLJS's this-as
in sci, it's a bit more difficult than I thought. How common is that these days
I don’t remember using this-as
, but i haven’t don’t much cljs lately
I wonder if :modules
or :stable-names
might be relevant for the advanced compilation of Sci modules https://clojurescript.org/reference/compiler-options#modules
i’ll look into this later
I’m probably doing something wrong (wrong shadow-clj version maybe?)
script/release.clj
Compiling CLJS
Cloning:
Checking out: at 02733a591bfa2f425b8abe0377d6668559ac278a
Downloading: thheller/shadow-cljs/2.12.5/shadow-cljs-2.12.5.pom from clojars
Downloading: borkdude/edamame/0.0.11/edamame-0.0.11.pom from clojars
Downloading: cljsjs/react/17.0.2-0/react-17.0.2-0.pom from clojars
Downloading: cljsjs/react-dom-server/17.0.2-0/react-dom-server-17.0.2-0.pom from clojars
Downloading: cljsjs/react-dom/17.0.2-0/react-dom-17.0.2-0.pom from clojars
Downloading: com/google/javascript/closure-compiler-unshaded/v20210302/closure-compiler-unshaded-v20210302.pom from central
Downloading: com/google/javascript/closure-compiler-main/v20210302/closure-compiler-main-v20210302.pom from central
Downloading: thheller/shadow-undertow/0.1.0/shadow-undertow-0.1.0.pom from clojars
Downloading: com/google/javascript/closure-compiler-parent/v20210302/closure-compiler-parent-v20210302.pom from central
Downloading: io/undertow/undertow-core/2.2.4.Final/undertow-core-2.2.4.Final.pom from central
Downloading: io/undertow/undertow-parent/2.2.4.Final/undertow-parent-2.2.4.Final.pom from central
Downloading: com/google/javascript/closure-compiler-unshaded/v20210302/closure-compiler-unshaded-v20210302.jar from central
Downloading: borkdude/edamame/0.0.11/edamame-0.0.11.jar from clojars
Downloading: io/undertow/undertow-core/2.2.4.Final/undertow-core-2.2.4.Final.jar from central
Downloading: cljsjs/react/17.0.2-0/react-17.0.2-0.jar from clojars
Downloading: thheller/shadow-undertow/0.1.0/shadow-undertow-0.1.0.jar from clojars
Downloading: cljsjs/react-dom-server/17.0.2-0/react-dom-server-17.0.2-0.jar from clojars
Downloading: thheller/shadow-cljs/2.12.5/shadow-cljs-2.12.5.jar from clojars
Downloading: cljsjs/react-dom/17.0.2-0/react-dom-17.0.2-0.jar from clojars
[:main] Compiling ...
The required namespace "react" is not available, it was required by "reagent/core.cljs".
[bb null] Terminating with non-zero exit code: 1
I wanted to see if my compiled output is (slightly) different than yours. If it is not i’m assuming external modules should work
What version are you using? I seem to have [email protected]
$ cat node_modules/react/package.json
{
"name": "react",
"description": "React is a JavaScript library for building user interfaces.",
"keywords": [
"react"
],
"version": "17.0.1",
for node projects that might not be so bad @jeroenvandijk, so if you want to make a plugin system for observable, while allowing others to make plugins independently that might work
yeah makes sense. I’ll think about it some more
I've tried to make a simple try
like this
I'm getting some error
why this?