This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-13
Channels
- # 100-days-of-code (5)
- # adventofcode (1)
- # announcements (8)
- # beginners (148)
- # boot (17)
- # calva (26)
- # cider (17)
- # cljdoc (2)
- # cljs-dev (55)
- # cljsjs (2)
- # clojure (198)
- # clojure-dev (11)
- # clojure-finland (1)
- # clojure-italy (23)
- # clojure-nl (6)
- # clojure-spec (44)
- # clojure-uk (148)
- # clojurescript (27)
- # clojutre (20)
- # core-logic (21)
- # cursive (12)
- # datascript (10)
- # datomic (33)
- # emacs (11)
- # figwheel-main (49)
- # fulcro (19)
- # graphql (2)
- # off-topic (48)
- # onyx (2)
- # other-languages (53)
- # pedestal (3)
- # reagent (75)
- # reitit (17)
- # rum (1)
- # slack-help (2)
- # specter (2)
- # sql (3)
- # tools-deps (24)
- # unrepl (4)
- # yada (1)
I thought I saw an example of a self updating static blog site on github in js, but I can't find it now
WRT security, you can just save your creds to your browser. And for private backend (admin) content, an encrypted datascript store would probably be fine
hah! I just did a commit from code eval'd in this maria cloud like interface (finally without blowing the tree away)
Also, for this #object that I'm getting from a nodejs library, (instance? js/Object x)
is true
but (object? x)
is false
. Why is that so?
http://cljs.github.io/api/cljs.core/objectQMARK
Is this a bug in (object?)
. It checks only for (identical? (.constructor x) js/Object)
But in this case, for the #object in question, (.-constructor x)
returns #object[Foobar]
instead of #object[Object]
Fastest way to get going with a new cljs node script except lumo? shadow-cljs, figwheel main, what template to use?
npx create-cljs-project your-script
then add the config for https://shadow-cljs.github.io/docs/UsersGuide.html#target-node-script
npx
is for running an npm
command without installing it first. if you have a semi-recent npm
version installed that is available as well.
@thheller what’s the best way to connect to a node repl through emacs/cider? I see there is already an nREPL running, can I connect to that one?
yeah, I did that. it spins up a session within the shadow.user namespace. when I eval something, it says no cljs repl for current session
I have no clue sorry, maybe this helps? https://shadow-cljs.github.io/docs/UsersGuide.html#cider
I might be forgetting something. I now have a sibling cljs repl. when I eval something I get:
cljs.user> (+ 1 2 3)
No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.
Can :global-exports
be used in :foreign-libs
for a :target :nodejs
build? (Assuming the :file
declares global variables on global
instead of window
.)
Or perhaps I need to create a global.window
instead?