@necord/schematics 1.3.4 → 1.3.5-dev.1699146823.f540b27
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
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>
|
|
3
|
+
<a href="#"><img src="https://necord.org/img/logo.png"></a>
|
|
4
|
+
</h1>
|
|
5
|
+
📜 A collection of schematics for Necord projects with NestJS <b><a href="https://discord.com/">Discord</a> bots</b> using <a href="https://nestjs.com">NestJS</a>, based on <a href="https://discord.js.org/">Discord.js</a>
|
|
6
|
+
<br/><br/>
|
|
7
|
+
<a href="https://necord.org">Documentation ✨</a>   <a href="https://github.com/SocketSomeone/necord">Source code 🪡</a>   <a href="https://github.com/necordjs/samples">Examples 🛠️</a>   <a href="https://discord.gg/mcBYvMTnwP">Community 💬</a>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<br/>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href='https://img.shields.io/npm/v/necord'><img src="https://img.shields.io/npm/v/necord" alt="NPM Version" /></a>
|
|
15
|
+
<a href='https://img.shields.io/npm/l/necord'><img src="https://img.shields.io/npm/l/necord" alt="NPM License" /></a>
|
|
16
|
+
<a href='https://img.shields.io/npm/dm/necord'><img src="https://img.shields.io/npm/dm/necord" alt="NPM Downloads" /></a>
|
|
17
|
+
<a href='https://img.shields.io/github/last-commit/necordjs/necord'><img src="https://img.shields.io/github/last-commit/SocketSomeone/necord" alt="Last commit" /></a>
|
|
18
|
+
</p>
|
|
4
19
|
|
|
5
20
|
### Installation
|
|
6
21
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@necord/schematics",
|
|
3
3
|
"description": "A collection of schematics for Necord projects with NestJS",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5-dev.1699146823.f540b27",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf -rf dist && tsc -p tsconfig.json",
|
|
7
7
|
"postbuild": "npm run copy:collection && npm run copy:lib",
|
|
@@ -38,28 +38,28 @@
|
|
|
38
38
|
"necord"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@angular-devkit/core": "16.
|
|
42
|
-
"@angular-devkit/schematics": "16.
|
|
43
|
-
"@nestjs/schematics": "10.0.
|
|
41
|
+
"@angular-devkit/core": "16.2.8",
|
|
42
|
+
"@angular-devkit/schematics": "16.2.8",
|
|
43
|
+
"@nestjs/schematics": "10.0.3",
|
|
44
44
|
"rxjs": "7.8.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "
|
|
48
|
-
"@commitlint/config-angular": "
|
|
49
|
-
"@types/jest": "29.5.
|
|
50
|
-
"@types/node": "20.
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "6.1
|
|
52
|
-
"@typescript-eslint/parser": "6.1
|
|
47
|
+
"@commitlint/cli": "18.2.0",
|
|
48
|
+
"@commitlint/config-angular": "18.1.0",
|
|
49
|
+
"@types/jest": "29.5.7",
|
|
50
|
+
"@types/node": "20.8.10",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
52
|
+
"@typescript-eslint/parser": "6.9.1",
|
|
53
53
|
"copyfiles": "2.4.1",
|
|
54
|
-
"eslint": "8.
|
|
55
|
-
"eslint-config-prettier": "
|
|
56
|
-
"eslint-plugin-import": "2.
|
|
54
|
+
"eslint": "8.52.0",
|
|
55
|
+
"eslint-config-prettier": "9.0.0",
|
|
56
|
+
"eslint-plugin-import": "2.29.0",
|
|
57
57
|
"husky": "8.0.3",
|
|
58
|
-
"prettier": "3.0.
|
|
59
|
-
"release-it": "16.1
|
|
60
|
-
"rimraf": "5.0.
|
|
58
|
+
"prettier": "3.0.3",
|
|
59
|
+
"release-it": "16.2.1",
|
|
60
|
+
"rimraf": "5.0.5",
|
|
61
61
|
"ts-jest": "29.1.1",
|
|
62
|
-
"typescript": "5.
|
|
62
|
+
"typescript": "5.2.2"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
2
|
-
import { Context, Modal, ModalContext } from 'necord';
|
|
3
|
-
|
|
4
|
-
@Injectable()
|
|
5
|
-
export class <%= classify(name) %>Modals {
|
|
6
|
-
@Modal('<%= name %>')
|
|
7
|
-
public <%= name %>(@Ctx() [interaction]: ModalContext) {
|
|
8
|
-
return interaction.reply({
|
|
9
|
-
content: `Your fav pizza : ${interaction.fields.getTextInputValue('pizza')}`
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
}
|