This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-12
Channels
- # ai (1)
- # aleph (11)
- # announcements (9)
- # aws (1)
- # beginners (61)
- # chlorine-clover (2)
- # clj-kondo (1)
- # clojure (35)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (1)
- # clojure-filipino (1)
- # clojure-france (2)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # clojure-uk (1)
- # clojured (14)
- # clojurescript (45)
- # cursive (8)
- # data-science (2)
- # events (1)
- # fulcro (2)
- # gratitude (4)
- # helix (1)
- # honeysql (3)
- # introduce-yourself (1)
- # malli (4)
- # minecraft (4)
- # nbb (23)
- # off-topic (57)
- # polylith (4)
- # reagent (2)
- # sci (23)
- # shadow-cljs (7)
- # vim (1)
- # xtdb (17)
Made a little something on the way home from #clojured Prismatic/schema support as an optional pre-compiled dependency via another npm package (does not make the nbb package itself bigger) https://github.com/babashka/nbb#prismaticschema
Yes, absolutely! But I've got some deployment issue :( https://app.circleci.com/pipelines/github/babashka/nbb/705/workflows/2881ffb7-3231-4cdf-b354-a394b3c78c37/jobs/631
Somehow npm publish of the inner package doesn't work in CI, but it does work on my own computer
What would be a good format for the package names:
@babashka/nbb-prismatic-schema
for prismatic/schema, or use underscores?Neat, simple and it works. 🙂 Let’s hope this doesn’t turn into a maintenance nightmare
Anyways, npm install ...
is way less tedious than pulling in the clj(s) deps, generating classpath etc
I don't know what's up with this npm stuff:
npm ERR! code E404
npm ERR! 404 Not Found - PUT - Not found
npm ERR! 404
npm ERR! 404 '@babashka/[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url
$ npx nbb
Welcome to nbb v0.5.115!
user=> (require '[malli.core :as m])
nil
user=> (m/validate :string "foo")
true
{"dependencies":
{"nbb":"^0.5.115",
"@babashka/nbb-metosin-malli":"^0.5.115"
}
}
@U04V15CAJ Can we expect malli to be usable also from bb
soon or that is unbased expectation to have?
With bb the options are: 1. include as built-in 2. make malli compatible from source. My preference would be 2 so bb can stay lean (I think clojure spec would have to go in first). But the code is quite complicated and currently probably not compatible with SCI. But perhaps with some work it can be made so, like we did with schema recently.