102 lines
3.1 KiB

<p align="center">
<img src="./assets/png/dark/Background.png" alt="Ittai Logo made by Sylix#8103" width="2000">
<p align="center">
<strong>What the heck</strong>?! I only need to use <strong>one style</strong> for my plugin?<br>
<strong>Ittai</strong>?! I only need to use <strong>Ittai</strong> for my plugin?<br>
<i>Ittai is a plugin bundler for most Discord client mods, making your plugin cross-compatible with multiple client mods easy!</i>
<p align="center">
<a href="#features">Features</a> |
<a href="#installation">Installation</a> |
<a href="#how-to-build">How to Build</a>
## Features
- Build even single-file BD plugins from multi-file projects.
- Write one codebase, run it anywhere.
- Hot rebuild your plugins.
- Use various flavors of JS to create your plugins.
- [x] [JSX and TSX support](
- [x] [TypeScript](
- [x] [ES6 Modules](
- [x] [CoffeeScript](
- I didn't forget about CSS!
- [x] Load your stylesheets easily.
- `import style from "./style.css";`
- [x] [SASS (SCSS)](
- [x] [Stylus](
- [x] [LESS](
- Build to the most popular mods <sup><i>PRs adding more mod support accepted</i></sup>
- [x] [BetterDiscord](
- [x] [Powercord]( (v2)
- [x] [GooseMod](
## Installation
### Requirements
- [Git](
- [NodeJS](
- [pnpm]( (optional)
### Installation Steps
#### From NPM
pnpm i -g @ittai/builder # this anywhere
pnpm i ittai # on your plugin's folder
#### From this repo <sup>**(Building Ittai for local development)**</sup>
git clone
cd ittai
# linking the builder
cd builder
pnpm i
pnpm link --global
# linking the core
cd ..
cd core
pnpm i
pnpm link --global
Then, in your plugin's folder
pnpm link --global ittai
## How to Build
### Command Options
- `--plugin="path/to/your/plugin"`
- `--betterdiscord` (optional)
- Specify `="path/to/plugin/folder"` to copy the built file to the folder.
- Builds for BetterDiscord.
- `--powercordv2` (optional)
- Specify `="path/to/plugin/folder"` to copy the built files to the folder.
- Builds for Powercord v2.
- `--goosemod` (optional)
- Specify `="path/to/plugin/folder"` to copy the built files to the folder.
- Builds for GooseMod.
- `--watch` (optional)
- Will watch for changes in your plugin's unbuilt files and automatically run the command again for you.
### Build Command
This command will build your plugin for BetterDiscord, Powercord v2, and GooseMod, but will only copy it to BetterDiscord's plugins folder. It will also hot rebuild your plugin for you.
ittai --plugin="./test/plugin" --betterdiscord="/path/to/plugins/fgbd" --powercordv2="/path/to/plugins/fgbd" --goosemod-"/path/to/plugins/fgbd" --watch