nuxt-discord 0.0.3 → 0.0.4
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
CHANGED
|
@@ -20,7 +20,7 @@ A Nuxt module for building Discord bots with slash commands, featuring hot modul
|
|
|
20
20
|
Install the module to your Nuxt application:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
|
|
23
|
+
pnpm install nuxt-discord discord.js
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Add the module to your `nuxt.config.ts`:
|
|
@@ -276,7 +276,7 @@ Here's what's planned for future releases:
|
|
|
276
276
|
- [@nuxt/content](https://github.com/nuxt/content)
|
|
277
277
|
- [@nuxtjs/i18n](https://github.com/nuxt-modules/i18n)
|
|
278
278
|
- [@nuxt/devtools](https://github.com/nuxt/devtools)
|
|
279
|
-
- UI components are based on [Nuxt UI](https://
|
|
279
|
+
- UI components are based on [Nuxt UI](https://ui.nuxt.com/) and [UnoCSS](https://unocss.dev/)
|
|
280
280
|
|
|
281
281
|
## License
|
|
282
282
|
|
package/dist/module.json
CHANGED
|
@@ -25,6 +25,9 @@ export default defineNitroPlugin(async (nitro) => {
|
|
|
25
25
|
socket.send(JSON.stringify({ event: "full-update" }));
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
+
socket.addEventListener("open", () => {
|
|
29
|
+
socket.send(JSON.stringify({ event: "full-update" }));
|
|
30
|
+
});
|
|
28
31
|
nitro.hooks.hook("close", () => socket.close());
|
|
29
32
|
}
|
|
30
33
|
client.addSlashCommands(slashCommands);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-discord",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"description": "A Nuxt module for building Discord bots",
|
|
6
6
|
"author": "Jize Zou <jeffzou2001@gmail.com> (https://github.com/zojize)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"dev": "pnpm run dev:prepare && nuxi dev playground",
|
|
78
78
|
"dev:build": "nuxi build playground",
|
|
79
79
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
80
|
-
"release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && pnpm publish
|
|
80
|
+
"release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
|
|
81
81
|
"lint": "eslint .",
|
|
82
82
|
"test": "vitest run",
|
|
83
83
|
"test:watch": "vitest watch",
|