bundler/README.md

26 lines
738 B
Markdown

# typescript/bundler
[![Build Status](https://thunderk.visualstudio.com/typescript/_apis/build/status/bundler?branchName=master)](https://dev.azure.com/thunderk/typescript/_build?pipelineNameFilter=bundler)
## About
On-the-fly bundler for typescript libraries hosted on Gitea or compatible
## How to run
```shell
deno run --allow-run=deno --allow-net=0.0.0.0,yourgithosting.net server.ts yourgithosting.net/namespace [port]
```
You can now get raw typescript files (usable by Deno):
`http://localhost:8000/libname@1.0.0/path/file.ts`
Or get a bundled JS version:
`http://localhost:8000/libname@1.0.0/path/file.js`
If the version is not specified, the master branch is used instead:
`http://localhost:8000/libname/path/file.js`