Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.43 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.43 KB

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.

Requirements

  • Xcode 14.1+
  • Node JS

How to use?

  1. Setup the swift registry
swift package-registry set https://spm-registry-service.onrender.com
  1. Change the dependencies
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")
]
  1. Resolve dependencies
swift package resolve

Run local

pnpm i

set GITHUB_ACCESS_TOKEN="Your github token" && pnpm start

Then the service run on 3001 port

Reference: