GitLab
How to use GitLab as your jsrepo registry.
Branches and Tags
jsrepo supports GitLab so that you can just paste a link to the repo homepage and it will be handled correctly.
Because of this all of the following paths work:
Using Tags for Versioning
Tags can be a great solution to ensuring remote tests and blocks stay on a consistent version.
Tags do not however work like npm packages. Tags are completely mutable meaning a malicious registry could publish over a tag with different code.
This is why it's always important to make sure you trust the owner of the registry.
gitlab Shorthand
When referencing GitLab as the provider you can use the gitlab shorthand in place of https://gitlab.com.
Example:
In the jsrepo.json:
Self hosted GitLab
Some companies prefer to host their own GitLab instance so we allow that too!
You can use the gitlab: prefix followed by your custom domain to point to your self hosted instance:
Now requests will be made to https://example.com with the owner ieedan and the repository name std.