https://github.com/feather-framework/feather-component
The FeatherComponent library provides a basic mechanism to manage various Feather CMS related components.
https://github.com/feather-framework/feather-component
swift
Last synced: 5 months ago
JSON representation
The FeatherComponent library provides a basic mechanism to manage various Feather CMS related components.
- Host: GitHub
- URL: https://github.com/feather-framework/feather-component
- Owner: feather-framework
- License: mit
- Created: 2023-11-18T16:42:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T10:09:44.000Z (about 2 years ago)
- Last Synced: 2024-04-04T10:47:22.865Z (about 2 years ago)
- Topics: swift
- Language: Swift
- Homepage: https://binarybirds.com
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Feather Component
The `FeatherComponent` library provides a basic mechanism to manage various Feather CMS related components.
## 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`:
```swift
.package(url: "https://github.com/feather-framework/feather-component", .upToNextMinor(from: "0.4.0")),
```
and to your application target, add `FeatherComponent` to your dependencies:
```swift
.product(name: "FeatherComponent", package: "feather-component")
```
Example `Package.swift` file with `FeatherComponent` as a dependency:
```swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "my-application",
dependencies: [
.package(url: "https://github.com/feather-framework/feather-component", .upToNextMinor(from: "0.4.0")),
],
targets: [
.target(name: "MyApplication", dependencies: [
.product(name: "FeatherComponent", package: "feather-component")
]),
.testTarget(name: "MyApplicationTests", dependencies: [
.target(name: "MyApplication"),
]),
]
)
```
### Using FeatherComponent
See the `FeatherComponentTests` target for a basic component implementation.