feather-framework / feather-storage

An abstract file storage service for Feather CMS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feather Storage

An abstract file storage service for Feather CMS.

Getting started

⚠️ This repository is a work in progress, things can break until it reaches v1.0.0.

Use at your own risk.

Adding the dependency

To add a dependency on the package, declare it in your Package.swift:

.package(url: "https://github.com/feather-framework/feather-storage", .upToNextMinor(from: "0.3.0")),

and to your application target, add FeatherStorage to your dependencies:

.product(name: "FeatherStorage", package: "feather-storage")

Example Package.swift file with FeatherStorage as a dependency:

// swift-tools-version:5.9
import PackageDescription

let package = Package(
    name: "my-application",
    dependencies: [
        .package(url: "https://github.com/feather-framework/feather-storage.git", .upToNextMinor(from: "0.3.0")),
    ],
    targets: [
        .target(name: "MyApplication", dependencies: [
            .product(name: "FeatherStorage", package: "feather-storage")
        ]),
        .testTarget(name: "MyApplicationTests", dependencies: [
            .target(name: "MyApplication"),
        ]),
    ]
)

About

An abstract file storage service for Feather CMS.

License:MIT License


Languages

Language:Swift 98.7%Language:Makefile 1.3%