sharkdp / insect

High precision scientific calculator with support for physical units
https://numbat.dev/
MIT License
3.18k stars 126 forks source link

How do I compile insect from source? #330

Closed DaQueenJodi closed 1 year ago

DaQueenJodi commented 2 years ago

I may be missing something obvious, but I can run npm i to build the project, but then I don't see any binary that I can run. I only see the web version I am new to npm so I'm not sure if this is specific to this project or if I just missed something major

if it matters, I'm using linux with npm 8.13.2

sharkdp commented 2 years ago

I may be missing something obvious, but I can run npm i to build the project, but then I don't see any binary that I can run.

Note that Insect is written in PureScript and compiled to JavaScript. No binary is being created, but a lot of JavaScript code. After running npm install, you also have to compile Insect via npm run build. To run the terminal version after building from source, you can start

node index.js

We should definitely update the documentation w.r.t. this.