Created a nifty lambda API proxy example with nbb + ruuter + axios https://gist.github.com/kidpollo/e309c1eb47d859f1975263d097aa9185
Oh damn does not work on a lambda because nbb.deps requires babashka? Am I correct @borkdude?
nvm if i Include the .nbb folder it works
OMG womp wopm the bundle is sooooo big!
You can throw out the .jar file btw
there is no optimization or bundling in nbb correct?
ooooo
phew!
{:paths ["src"]
:deps {org.clojars.askonomm/ruuter {:mvn/version "1.3.2"
:exclusions [org.clojure/clojure
org.clojure/clojurescript]}}}We should ask @asko to exclude clojurescript from this dependency, it should only be included for testing in an alias
^ does the trick
This is pretty cool :) Deno 1.31 now supports more Node.js stuff and you can run an nbb script directly from a git url:
import { loadString } from 'npm:nbb@1.2.168'
await loadString(`(prn (+ 1 2 3))`);
$ deno run -A
6 This also works:
deno run -A npm:nbb nrepl-server
nREPL server started on port 57302 on host 127.0.0.1 -