seedcord 0.22.0 → 0.23.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/cli.mjs +1248 -260
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{schema-UiJoop9d.d.mts → schema-DQyJboZK.d.mts} +40 -5
- package/dist/{src-rYAuhl0h.mjs → version-Cmdvyxh7.mjs} +2 -2
- package/dist/version-Cmdvyxh7.mjs.map +1 -0
- package/dist/workerd.index.d.mts +2 -2
- package/dist/workerd.index.mjs.map +1 -1
- package/package.json +20 -16
- package/dist/src-rYAuhl0h.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
## About
|
|
25
25
|
|
|
26
|
-
`seedcord` is the CLI a bot project runs during development and at build time. It reads `seedcord.config.ts` and gives you a dev server with hot reload, a production build, the codegen that types your commands,
|
|
26
|
+
`seedcord` is the CLI a bot project runs during development and at build time. It reads `seedcord.config.ts` and gives you a dev server with hot reload, a production build, the codegen that types your commands, a way to deploy those commands to Discord, and new files written from your own templates.
|
|
27
27
|
|
|
28
28
|
It loads your bot through Vite every time, with any Vite plugin you add. Those plugins, your `.env` modes, and bundled data files you set up in dev work the same way in the build. One `seedcord build` makes a Node or Bun server, a single Bun binary, a Cloudflare Worker, or a package another app installs and starts.
|
|
29
29
|
|
|
@@ -49,11 +49,14 @@ Run it through your project's scripts, like `pnpm dev`. A global `seedcord` thro
|
|
|
49
49
|
| `seedcord build` | type checks the bot and bundles it into `outDir` with Vite. An edge bot builds into a Cloudflare worker |
|
|
50
50
|
| `seedcord codegen` | writes the typed augmentations for your commands and config |
|
|
51
51
|
| `seedcord commands` | deploys, lists and cleans up your commands on Discord |
|
|
52
|
+
| `seedcord make` | writes new files from one of your Handlebars templates, or one an installed plugin ships |
|
|
52
53
|
|
|
53
54
|
<!-- prettier-ignore-end -->
|
|
54
55
|
|
|
55
56
|
`codegen --check` verifies the committed augmentations match your source. Run it in CI.
|
|
56
57
|
|
|
58
|
+
`make` asks for a name and each value the template reads. The [make guide](https://seedcord.org/guide/tooling/make) shows how to write a template.
|
|
59
|
+
|
|
57
60
|
`commands` reads `DISCORD_BOT_TOKEN` from your environment or `.env`:
|
|
58
61
|
|
|
59
62
|
```sh
|