Skip to content

Commit

Permalink
Add executable setup step (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey authored Sep 14, 2024
1 parent 16be344 commit 6f0cb29
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@
[Clone the Slipstream Site Template](https://github.com/jverkoey/slipstream-site-template/) for a
quick-start to deploying a Slipstream site to GitHub Pages.

Add Slipstream to your package dependencies:
### Create an executable Swift package

```bash
mkdir mysite
cd mysite
swift package init --type executable
```

### Add Slipstream to your package dependencies

```swift
dependencies: [
.package(url: "https://github.com/jverkoey/slipstream.git", branch: "main"),
],
targets: [
.executableTarget(name: "MySite", dependencies: [
.executableTarget(name: "mysite", dependencies: [
.product(name: "Slipstream", package: "slipstream"),
]
],
Expand Down

0 comments on commit 6f0cb29

Please sign in to comment.