forked from Ittai/ittai
1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ittai/README.md

102 lines
3.1 KiB

1 year ago
<p align="center">
<img src="./assets/png/dark/Background.png" alt="Ittai Logo made by Sylix#8103" width="2000">
1 year ago
</p>
2 years ago
2 years ago
<p align="center">
2 years ago
<i>
<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>
2 years ago
</i>
</p>
2 years ago
2 years ago
<p align="center">
<a href="#features">Features</a> |
<a href="#installation">Installation</a> |
<a href="#how-to-build">How to Build</a>
2 years ago
</p>
2 years ago
<hr>
2 years ago
## Features
- Build even single-file BD plugins from multi-file projects.
- Write one codebase, run it anywhere.
2 years ago
- Hot rebuild your plugins.
- Use various flavors of JS to create your plugins.
- [x] [JSX and TSX support](https://reactjs.org/docs/introducing-jsx.html)
11 months ago
- [x] [TypeScript](https://www.typescriptlang.org/)
- [x] [ES6 Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
1 year ago
- [x] [CoffeeScript](https://coffeescript.org/)
- I didn't forget about CSS!
- [x] Load your stylesheets easily.
- `import style from "./style.css";`
- [x] [SASS (SCSS)](https://sass-lang.com/)
- [x] [Stylus](https://stylus-lang.com/)
- [x] [LESS](http://lesscss.org/)
1 year ago
- Build to the most popular mods <sup><i>PRs adding more mod support accepted</i></sup>
- [x] [BetterDiscord](https://betterdiscord.app)
- [x] [Powercord](https://powercord.dev/) (v2)
- [x] [GooseMod](https://goosemod.com/)
2 years ago
## Installation
### Requirements
- [Git](https://git-scm.com/)
- [NodeJS](https://nodejs.org/)
2 years ago
- [pnpm](https://pnpm.js.org/) (optional)
2 years ago
### Installation Steps
#### From NPM
```bash
pnpm i -g @ittai/builder # this anywhere
pnpm i ittai # on your plugin's folder
```
2 years ago
#### From this repo <sup>**(Building Ittai for local development)**</sup>
2 years ago
```bash
git clone https://git.catvibers.me/Ittai/ittai
1 year ago
cd ittai
# linking the builder
cd builder
pnpm i
pnpm link --global
# linking the core
cd ..
cd core
2 years ago
pnpm i
1 year ago
pnpm link --global
```
Then, in your plugin's folder
1 year ago
```bash
pnpm link --global ittai
2 years ago
```
## How to Build
### Command Options
2 years ago
- `--plugin="path/to/your/plugin"`
- `--betterdiscord` (optional)
2 years ago
- Specify `="path/to/plugin/folder"` to copy the built file to the folder.
- Builds for BetterDiscord.
2 years ago
- `--powercordv2` (optional)
- Specify `="path/to/plugin/folder"` to copy the built files to the folder.
- Builds for Powercord v2.
- `--goosemod` (optional)
2 years ago
- Specify `="path/to/plugin/folder"` to copy the built files to the folder.
- Builds for GooseMod.
2 years ago
- `--watch` (optional)
- Will watch for changes in your plugin's unbuilt files and automatically run the command again for you.
2 years ago
### 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.
2 years ago
```bash
ittai --plugin="./test/plugin" --betterdiscord="/path/to/plugins/fgbd" --powercordv2="/path/to/plugins/fgbd" --goosemod-"/path/to/plugins/fgbd" --watch
```