Fork me on GitHub
#nbb
<
2021-08-16
>
huygn14:08:38

is it possible to distribute nbb script.cljs as a stand-alone executable? :thinking_face:

borkdude14:08:15

@gnhuy91 there is a tool called nexe but I haven't gotten it to work

huygn14:08:10

I can only think of docker right now

borkdude14:08:57

I think what you could do is declare a dependency on nbb and then expose your command as

"bin": {
    "your-script": "nbb ./script.cljs"
  },
or so. this requires some experimentation, but something like this could work

borkdude14:08:22

and then people can do npm install -g your-script from npm possibly

borkdude14:08:47

ah I didn't know about pkg

huygn14:08:33

hmm nice I'll have look at pkg 🙏

rwstauner15:08:11

also ncc (https://github.com/vercel/ncc) though i've never used any of these

ribelo15:08:39

ncc does not create binaries

rwstauner15:08:49

oh, it's more of an uber script