char/serve-esm
git clone https://git.t4t.associates/char/serve-esm
e06f6b7
main
serve-esm
rust server for TypeScript library sources that can't go on JSR
- GET
/:repo/:version/*filefinds repo in target directory, looks up tag named with version, and serves the file from that repo at that tag - shells out to
gitso you need that onPATH
Run
cargo build--release TARGET_DIR =/srv/git./target/release/serve-esm # `LISTEN` defaults to `0.0.0.0:8000` or you can set `SOCKET_PATH` for uds
1# serve-esm 2 3rust server for TypeScript library sources that can't go on JSR 4 5- GET `/:repo/:version/*file` finds repo in target directory, looks up tag named 6with version, and serves the file from that repo at that tag 7 - shells out to `git` so you need that on `PATH` 8 9## Run 10 11``` sh 12cargo build --release 13TARGET_DIR=/srv/git ./target/release/serve-esm 14# `LISTEN` defaults to `0.0.0.0:8000` or you can set `SOCKET_PATH` for uds 15```