char/serve-esm
git clone https://git.t4t.associates/char/serve-esm
e06f6b7
main
files
| src/ | |
| tests/ | |
| .gitignore | 9 B |
| Cargo.lock | 10.2 KiB |
| Cargo.toml | 462 B |
| README.md | 434 B |
| serve-esm.ngx.ts | 1.3 KiB |
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