Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hollyoops/swiftpm-registry-service
A simple swift pacage registry service that can be used with Jfrog
https://github.com/hollyoops/swiftpm-registry-service
koa2 nodejs registry spm swift swift-package-manager swiftpm
Last synced: about 1 month ago
JSON representation
A simple swift pacage registry service that can be used with Jfrog
- Host: GitHub
- URL: https://github.com/hollyoops/swiftpm-registry-service
- Owner: hollyoops
- Created: 2022-11-10T02:58:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T16:31:36.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T02:20:55.061Z (about 2 months ago)
- Topics: koa2, nodejs, registry, spm, swift, swift-package-manager, swiftpm
- Language: TypeScript
- Homepage:
- Size: 79.1 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwiftPM registry service
A lightweight swiftPM registry service write by Node. Current this package registry only support for Github packages.
## What is SwiftPM registry Service
SwiftPM registry Service is a standard web service interface that it can also use to download dependencies from a package registry. You can use the service to download remote packages with `package-registry` commands.
You use service with Jfrog as a remote Jfrog smart repository to download and cache github swift packages.
Current service is deploy to: [spm-registry-service.onrender.com](https://spm-registry-service.onrender.com).
## Requirements
- Xcode 14.1+
- Node JS## How to use?
1. Setup the swift registry
```bash
swift package-registry set https://spm-registry-service.onrender.com
```2. Change the dependencies
```swift
dependencies: [
// instead of .package(url: "https://github.com/Moya/Moya.git", from: "1.1.0")
.package(id: "moya.moya", from: "1.1.0")),
.package(id: "hollyoops.RecoilSwift", exact: "2.0.0")
]
```3. Resolve dependencies
```swift
swift package resolve
```## Run local
```bash
pnpm iset GITHUB_ACCESS_TOKEN="Your github token" && pnpm start
```Then the service run on 3001 port
## Reference:
- [Swift registry service](https://github.com/apple/swift-evolution/blob/main/proposals/0292-package-registry-service.md)
- [Jfrog swift registry](https://www.jfrog.com/confluence/display/JFROG/Swift+Registry)