Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ a few additional steps though (you can skip these steps if your app depends on
name: "JavaScriptKitExample",
dependencies: [
"JavaScriptKit",
.product(name: "JavaScriptEventLoop", package: "JavaScriptKit")
.package(url: "https://github.com/swiftwasm/carton", from: "1.0.0"),
.product(name: "JavaScriptEventLoop", package: "JavaScriptKit"),
]
)
```
Expand Down Expand Up @@ -179,7 +180,20 @@ Not all of these versions are tested on regular basis though, compatibility repo
## Usage in a browser application

The easiest way to get started with JavaScriptKit in your browser app is with [the `carton`
bundler](https://carton.dev).
bundler](https://carton.dev). Add carton to your swift package dependencies:

```swift
dependencies: [
.package(url: "https://github.com/swiftwasm/carton", from: "1.0.0"),
],
```

> [!WARNING]
> - If you already use `carton` before 0.x.x versions via Homebrew, you can remove it with `brew uninstall carton` and install the new version as a SwiftPM dependency.
> - Also please remove the old `.build` directory before using the new `carton`

## Legacy Installation


As a part of these steps
you'll install `carton` via [Homebrew](https://brew.sh/) on macOS (you can also use the
Expand Down