From 71f7321602cb7fecb974f0ade739b678224b4817 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sat, 9 Aug 2025 02:12:43 +0700 Subject: [PATCH] chore(README): add build instructions --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 0536cd5..9d20416 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,41 @@ Revenge Next is updated regularly with new features and bug fixes. To update to ``` 5. Restart Discord. + +## 👷 Developing with Revenge Next + +You'll need to have [Bun](https://bun.com/) installed. Once you have Bun, follow these steps: + +```sh +# Install dependencies +bun install +``` + +--- + +```sh +# Build Revenge Next +bun run build + +# Build Revenge Next with debugging enabled (slow, don't use in production) +bun run build --dev +``` + +```sh +# Start the development server +bun run dev + +# Build as production +bun run dev --prod +``` + +Builds are generated at `dist/revenge.bundle`. + +```sh +# Build types for external consumers +bun run types +``` + +Types are generated at `dist/types`. To consume, include `/globals.d.ts`, and map `@revenge-mod/*` to `/lib/*`. +
+Bundlers will need to map imports to property access on `revenge` turning `kebab-case` and `snake_case` to `camelCase`.