Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stackotter/delta-plugin-template

The template for Delta Client plugins.
https://github.com/stackotter/delta-plugin-template

Last synced: 10 days ago
JSON representation

The template for Delta Client plugins.

Awesome Lists containing this project

README

        

# Delta Plugin Template

This repository is a template for [Delta Client](https://github.com/stackotter/delta-client) plugins.

To create a plugin, create a repo from this template repo and then replace all occurences of `HelloWorldPlugin` with the name of your plugin (should be a valid Swift type name). You can set a custom display name in `manifest.json` (the `name` field). The `target` field in `manifest`.json is the name of your plugin's SwiftPM target (in this template it's `HelloWorldPlugin`. Make sure to change the identifier in `manifest.json` to something unique as well.

## Building

### Prerequisites

- Xcode 13 (or later)
- [swift-bundler](https://github.com/stackotter/swift-bundler)
- [jq](https://stedolan.github.io/jq/) (install with [homebrew](https://brew.sh): `brew install jq`)

### Setup

```sh
# Clones delta-client into the current directory
# You can also edit this script to clone a specific version of delta-client that you want to develop your plugin for
sh setup.sh
```

### Build

```sh
# Build the plugin and output it into ./build
sh build.sh
```

### Build and run

```sh
# 1. Builds the plugin into ./build
# 2. Builds the version of Delta Client in ./delta-client
# 3. Runs Delta Client with `--plugins-dir ./build`
sh build-and-run.sh
```