diff options
author | 2023-09-19 08:01:47 -0700 | |
---|---|---|
committer | 2023-09-19 08:01:47 -0700 | |
commit | 8677ae9fb154dea49939dd396fdd1363959f96de (patch) | |
tree | 553fd1f07bfaca6e547d38c31208763db5c856ea /docs/guides/install | |
parent | 66d490d10954e449d06efd008a01de5c5dc5d078 (diff) | |
download | bun-8677ae9fb154dea49939dd396fdd1363959f96de.tar.gz bun-8677ae9fb154dea49939dd396fdd1363959f96de.tar.zst bun-8677ae9fb154dea49939dd396fdd1363959f96de.zip |
Get artifactory to work (#5744)
* Get artifactory to work
* Cleanup url normalization a ltitle more
* Clean up tests
* prettier
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'docs/guides/install')
-rw-r--r-- | docs/guides/install/jfrog-artifactory.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/guides/install/jfrog-artifactory.md b/docs/guides/install/jfrog-artifactory.md new file mode 100644 index 000000000..e4872982b --- /dev/null +++ b/docs/guides/install/jfrog-artifactory.md @@ -0,0 +1,28 @@ +--- +name: Using bun install with Artifactory +--- + +[JFrog Artifactory](https://jfrog.com/artifactory/) is a package management system for npm, Docker, Maven, NuGet, Ruby, Helm, and more. It allows you to host your own private npm registry, npm packages, and other types of packages as well. + +To use it with `bun install`, add a `bunfig.toml` file to your project with the following contents: + +--- + +### Configure with bunfig.toml + +Make sure to replace `MY_SUBDOMAIN` with your JFrog Artifactory subdomain, such as `jarred1234` and MY_TOKEN with your JFrog Artifactory token. + +```toml#bunfig.toml +[install.registry] +url = "https://MY_SUBDOMAIN.jfrog.io/artifactory/api/npm/npm/_auth=MY_TOKEN" +# Bun v1.0.3+ supports using an environment variable here +# url = "$NPM_CONFIG_REGISTRY" +``` + +--- + +### Configure with `$NPM_CONFIG_REGISTRY` + +Like with npm, you can use the `NPM_CONFIG_REGISTRY` environment variable to configure JFrog Artifactory with bun install. + +--- |