generator-discord 1.1.3 → 1.1.5

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/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Emil Krebs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Emil Krebs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,45 +1,45 @@
1
- <div id="logo" align="center">
2
- <a href="https://github.com/emilkrebs/Generator-Discord" target="_blank" rel="noopener noreferrer">
3
- <img width="256" alt="Generator-Discord Logo" src="https://raw.githubusercontent.com/emilkrebs/Generator-Discord/main/assets/icon.svg">
4
- </a>
5
- <h3>
6
- Yeoman Generator for Discord.js
7
- </h3>
8
- </div>
9
-
10
- <div id="badges" align="center">
11
-
12
- [![Build](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml/badge.svg)](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml)
13
- [![Tests](https://github.com/emilkrebs/generator-discord/actions/workflows/test.yml/badge.svg)](https://github.com/emilkrebs/generator-discord/actions/workflows/test.yml)
14
- [![downloads](https://img.shields.io/npm/dw/generator-discord?color=orange)](https://www.npmjs.com/package/generator-discord)
15
- [![version](https://img.shields.io/npm/v/generator-discord)](https://www.npmjs.com/package/generator-discord)
16
-
17
-
18
- </div>
19
-
20
- <hr>
21
-
22
-
23
- # Installing the Generator
24
-
25
- Install Yeoman using
26
- ```bash
27
- npm install -g yo
28
- ```
29
- Install this Generator using
30
- ```bash
31
- npm install -g generator-discord
32
- ```
33
- # Run using yo
34
- ```bash
35
- yo discord
36
- ```
37
-
38
-
39
- [![Example](https://user-images.githubusercontent.com/68400102/175165919-473536d8-c7c0-4881-a438-d11dc8001ee1.png)](https://github.com/emilkrebs/Sound-Bot)
40
-
41
- ## Known Issues
42
-
43
- None
44
-
45
- [Add Issue](https://github.com/emilkrebs/Generator-Discord/issues/new)
1
+ <div id="logo" align="center">
2
+ <a href="https://github.com/emilkrebs/Generator-Discord" target="_blank" rel="noopener noreferrer">
3
+ <img width="256" alt="Generator-Discord Logo" src="https://raw.githubusercontent.com/emilkrebs/Generator-Discord/main/assets/icon.svg">
4
+ </a>
5
+ <h3>
6
+ Yeoman Generator for Discord.js
7
+ </h3>
8
+ </div>
9
+
10
+ <div id="badges" align="center">
11
+
12
+ [![Build](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml/badge.svg)](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml)
13
+ [![Tests](https://github.com/emilkrebs/generator-discord/actions/workflows/test.yml/badge.svg)](https://github.com/emilkrebs/generator-discord/actions/workflows/test.yml)
14
+ [![downloads](https://img.shields.io/npm/dw/generator-discord?color=orange)](https://www.npmjs.com/package/generator-discord)
15
+ [![version](https://img.shields.io/npm/v/generator-discord)](https://www.npmjs.com/package/generator-discord)
16
+
17
+
18
+ </div>
19
+
20
+ <hr>
21
+
22
+
23
+ # Installing the Generator
24
+
25
+ Install Yeoman using
26
+ ```bash
27
+ npm install -g yo
28
+ ```
29
+ Install this Generator using
30
+ ```bash
31
+ npm install -g generator-discord
32
+ ```
33
+ # Run using yo
34
+ ```bash
35
+ yo discord
36
+ ```
37
+
38
+
39
+ [![Example](https://user-images.githubusercontent.com/68400102/175165919-473536d8-c7c0-4881-a438-d11dc8001ee1.png)](https://github.com/emilkrebs/Sound-Bot)
40
+
41
+ ## Known Issues
42
+
43
+ None
44
+
45
+ [Add Issue](https://github.com/emilkrebs/Generator-Discord/issues/new)
package/app/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import Generator from 'yeoman-generator';
2
- export default class DiscordGenerator extends Generator {
3
- private answers;
4
- constructor(args: string | string[], options: Generator.GeneratorOptions);
5
- prompting(): Promise<void>;
6
- logo(): void;
7
- writing(): void;
8
- install(): Promise<void>;
9
- }
1
+ import Generator from 'yeoman-generator';
2
+ export default class DiscordGenerator extends Generator {
3
+ private answers;
4
+ constructor(args: string | string[], options: Generator.GeneratorOptions);
5
+ prompting(): Promise<void>;
6
+ logo(): void;
7
+ writing(): void;
8
+ install(): Promise<void>;
9
+ end(): Promise<void>;
10
+ }
package/app/index.js CHANGED
@@ -1,118 +1,129 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
16
- const path_1 = __importDefault(require("path"));
17
- const TEMPLATE_DIR = '../templates/';
18
- const USER_DIR = '.';
19
- const OPEN = '<%= ';
20
- const CLOSE = ' %>';
21
- const BOT_NAME = 'bot-name';
22
- const BOT_TOKEN = 'bot-token';
23
- class DiscordGenerator extends yeoman_generator_1.default {
24
- constructor(args, options) {
25
- super(args, options);
26
- }
27
- prompting() {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- this.logo();
30
- this.answers = yield this.prompt([
31
- {
32
- type: 'input',
33
- name: 'botName',
34
- message: 'Your Discord Bot name:',
35
- default: 'my-bot',
36
- validate: (input) => new RegExp("^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$").test(input)
37
- ? true
38
- : 'Your Discord Bot name does not match the pattern of: ^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$',
39
- },
40
- {
41
- type: 'list',
42
- name: 'botType',
43
- message: 'The type of Discord Bot you want to create.',
44
- choices: [
45
- {
46
- name: 'New Discord Bot (TypeScript)',
47
- value: 'typescript'
48
- },
49
- {
50
- name: 'New Discord Bot (JavaScript)',
51
- value: 'javascript'
52
- },
53
- {
54
- name: 'New Discord Bot (Python)',
55
- value: 'python'
56
- }
57
- ]
58
- },
59
- {
60
- type: 'input',
61
- name: 'botToken',
62
- message: 'Your Discord Bot Token. (Enter to leave blank)',
63
- default: 'your-bot-token'
64
- }
65
- ]);
66
- });
67
- }
68
- logo() {
69
- this.log(" \x1b[36m_____ _ _ \x1b[31m_ ");
70
- this.log(" \x1b[36m| __ \\(_) | | \x1b[31m(_) ");
71
- this.log(" \x1b[36m| | | |_ ___ ___ ___ _ __ __| | \x1b[33m_ ___ ");
72
- this.log(" \x1b[36m| | | | / __|/ __/ _ \\| '__/ _` | \x1b[33m| / __|");
73
- this.log(" \x1b[36m| |__| | \\__ \\ (_| (_) | | | (_| |\x1b[37m_\x1b[32m| \\__ \\");
74
- this.log(" \x1b[36m|_____/|_|___/\\___\\___/|_| \\__,_\x1b[37m(_) \x1b[32m|___/");
75
- this.log(" \x1b[34m_/ | ");
76
- this.log(" \x1b[35m|__/ ");
77
- this.log("\x1b[0m");
78
- }
79
- writing() {
80
- this.sourceRoot(path_1.default.join(__dirname, TEMPLATE_DIR + this.answers.botType));
81
- ['.'].forEach((path) => {
82
- const replaceWords = (answers, content) => [
83
- [BOT_NAME, this.answers.botName],
84
- [BOT_TOKEN, this.answers.botToken]
85
- ].reduce((acc, [templateWord, userAnswer]) => acc.replace(new RegExp(`${OPEN}${templateWord}${CLOSE}`, 'g'), userAnswer), content.toString());
86
- this.fs.copy(this.templatePath(path), this.destinationPath(USER_DIR, this.answers.botName, path), {
87
- process: (content) => replaceWords(this.answers, content)
88
- });
89
- });
90
- }
91
- install() {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- this.log('');
94
- this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
95
- const answer = yield this.prompt({
96
- type: 'list',
97
- name: 'openWithCode',
98
- message: 'Do you want to open your Discord Bot with Visual Studio Code?',
99
- choices: [
100
- {
101
- name: 'open with `code`',
102
- value: true
103
- },
104
- {
105
- name: 'skip',
106
- value: false
107
- }
108
- ]
109
- });
110
- this.log('');
111
- if (answer && answer.openWithCode) {
112
- this.spawnCommand('code', [this.destinationPath(USER_DIR, this.answers.botName)]);
113
- }
114
- });
115
- }
116
- }
117
- exports.default = DiscordGenerator;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
16
+ const path_1 = __importDefault(require("path"));
17
+ const TEMPLATE_DIR = '../templates/';
18
+ const USER_DIR = '.';
19
+ const OPEN = '<%= ';
20
+ const CLOSE = ' %>';
21
+ const BOT_NAME = 'bot-name';
22
+ const BOT_TOKEN = 'bot-token';
23
+ class DiscordGenerator extends yeoman_generator_1.default {
24
+ constructor(args, options) {
25
+ super(args, options);
26
+ }
27
+ prompting() {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ this.logo();
30
+ this.answers = yield this.prompt([
31
+ {
32
+ type: 'input',
33
+ name: 'botName',
34
+ message: 'Your Discord Bot name:',
35
+ default: 'my-bot',
36
+ validate: (input) => new RegExp("^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$").test(input)
37
+ ? true
38
+ : 'Invalid bot name. Please use only lowercase letters, numbers, and hyphens. Must start with a letter.'
39
+ },
40
+ {
41
+ type: 'list',
42
+ name: 'botType',
43
+ message: 'The type of Discord Bot you want to create.',
44
+ choices: [
45
+ {
46
+ name: 'New Discord Bot (TypeScript)',
47
+ value: 'typescript'
48
+ },
49
+ {
50
+ name: 'New Discord Bot (JavaScript)',
51
+ value: 'javascript'
52
+ },
53
+ {
54
+ name: 'New Discord Bot (Python)',
55
+ value: 'python'
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ type: 'input',
61
+ name: 'botToken',
62
+ message: 'Your Discord Bot Token. (Enter to leave blank)',
63
+ default: 'your-bot-token'
64
+ }
65
+ ]);
66
+ });
67
+ }
68
+ logo() {
69
+ this.log(" \x1b[36m_____ _ _ \x1b[31m_ ");
70
+ this.log(" \x1b[36m| __ \\(_) | | \x1b[31m(_) ");
71
+ this.log(" \x1b[36m| | | |_ ___ ___ ___ _ __ __| | \x1b[33m_ ___ ");
72
+ this.log(" \x1b[36m| | | | / __|/ __/ _ \\| '__/ _` | \x1b[33m| / __|");
73
+ this.log(" \x1b[36m| |__| | \\__ \\ (_| (_) | | | (_| |\x1b[37m_\x1b[32m| \\__ \\");
74
+ this.log(" \x1b[36m|_____/|_|___/\\___\\___/|_| \\__,_\x1b[37m(_) \x1b[32m|___/");
75
+ this.log(" \x1b[34m_/ | ");
76
+ this.log(" \x1b[35m|__/ ");
77
+ this.log("\x1b[0m");
78
+ }
79
+ writing() {
80
+ this.sourceRoot(path_1.default.join(__dirname, TEMPLATE_DIR + this.answers.botType));
81
+ ['.'].forEach((path) => {
82
+ const replaceWords = (answers, content) => [
83
+ [BOT_NAME, this.answers.botName],
84
+ [BOT_TOKEN, this.answers.botToken]
85
+ ].reduce((acc, [templateWord, userAnswer]) => acc.replace(new RegExp(`${OPEN}${templateWord}${CLOSE}`, 'g'), userAnswer), content.toString());
86
+ this.fs.copy(this.templatePath(path), this.destinationPath(USER_DIR, this.answers.botName, path), {
87
+ process: (content) => replaceWords(this.answers, content)
88
+ });
89
+ });
90
+ }
91
+ install() {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ this.log('');
94
+ if (this.answers.botType === 'typescript' || this.answers.botType === 'javascript') {
95
+ const options = { cwd: this.destinationPath(USER_DIR, this.answers.botName) };
96
+ this.spawnCommandSync('npm', ['install'], options);
97
+ if (this.answers.botType === 'typescript') {
98
+ this.spawnCommandSync('npm', ['run', 'build'], options);
99
+ }
100
+ }
101
+ this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
102
+ });
103
+ }
104
+ end() {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const answer = yield this.prompt({
107
+ type: 'list',
108
+ name: 'openWithCode',
109
+ message: 'Do you want to open your Discord Bot with Visual Studio Code?',
110
+ choices: [
111
+ {
112
+ name: 'open with `code`',
113
+ value: true
114
+ },
115
+ {
116
+ name: 'skip',
117
+ value: false
118
+ }
119
+ ]
120
+ });
121
+ this.log('');
122
+ if (answer && answer.openWithCode) {
123
+ this.spawnCommand('code', [this.destinationPath(USER_DIR, this.answers.botName)]);
124
+ }
125
+ });
126
+ }
127
+ }
128
+ exports.default = DiscordGenerator;
118
129
  //# sourceMappingURL=index.js.map
package/app/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wEAAyC;AACzC,gDAAwB;AAGxB,MAAM,YAAY,GAAG,eAAe,CAAC;AACrC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAErB,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,KAAK,GAAG,KAAK,CAAC;AAEpB,MAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,MAAM,SAAS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AC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9E,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC;gBACnD,IAAG,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,YAAY,EAAE;oBACtC,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;iBAC3D;aACJ;YAED,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC;QAEhF,CAAC;KAAA;IAEK,GAAG;;YACL,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;gBAC7B,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,+DAA+D;gBACxE,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,kBAAkB;wBACxB,KAAK,EAAE,IAAI;qBACd;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,KAAK;qBACf;iBACJ;aACJ,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACb,IAAI,MAAM,IAAI,MAAM,CAAC,YAAY,EAAE;gBAC/B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,eAAe,CAC3C,QAAQ,EACR,IAAI,CAAC,OAAO,CAAC,OAAO,CACvB,CAAC,CAAC,CAAC;aACP;QACL,CAAC;KAAA;CACJ;AAxID,mCAwIC"}
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "generator-discord",
3
- "displayName": "Generator-Discord",
4
- "version": "1.1.3",
5
- "main": "./app/index.js",
6
- "description": "Yeoman generator for Discord.js",
7
- "keywords": [
8
- "yeoman-generator",
9
- "discord.js",
10
- "discord",
11
- "discord bot"
12
- ],
13
- "scripts": {
14
- "build": "tsc",
15
- "watch": "tsc -w",
16
- "test": "vitest run",
17
- "prepublish": "npm run build",
18
- "debug": "npm i -g generator-discord && npx --node-arg=--inspect yo discord"
19
- },
20
- "files": [
21
- "app",
22
- "templates",
23
- "src",
24
- "test"
25
- ],
26
- "types": "app/index.d.ts",
27
- "author": "Emil Krebs",
28
- "license": "MIT",
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/emilkrebs/Generator-Discord.git"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/emilkrebs/Generator-Discord/issues"
35
- },
36
- "homepage": "https://github.com/emilkrebs/Generator-Discord",
37
- "dependencies": {
38
- "@types/yeoman-test": "~4.0.3",
39
- "typescript": "^4.7.2",
40
- "yeoman-generator": "^5.6.1",
41
- "yeoman-test": "~7.3.0"
42
- },
43
- "devDependencies": {
44
- "@types/yeoman-generator": "^5.2.10",
45
- "vitest": "^0.29.2"
46
- }
47
- }
1
+ {
2
+ "name": "generator-discord",
3
+ "displayName": "Generator-Discord",
4
+ "version": "1.1.5",
5
+ "main": "./app/index.js",
6
+ "description": "Yeoman generator for Discord.js",
7
+ "keywords": [
8
+ "yeoman-generator",
9
+ "discord.js",
10
+ "discord",
11
+ "discord bot"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "watch": "tsc -w",
16
+ "test": "vitest run",
17
+ "publish": "npm run build && npm publish",
18
+ "debug": "npx --node-arg=--inspect yo discord"
19
+ },
20
+ "files": [
21
+ "app",
22
+ "templates",
23
+ "src",
24
+ "test"
25
+ ],
26
+ "types": "app/index.d.ts",
27
+ "author": "Emil Krebs",
28
+ "license": "MIT",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/emilkrebs/Generator-Discord.git"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/emilkrebs/Generator-Discord/issues"
35
+ },
36
+ "homepage": "https://github.com/emilkrebs/Generator-Discord",
37
+ "dependencies": {
38
+ "@types/yeoman-test": "~4.0.3",
39
+ "typescript": "^4.7.2",
40
+ "yeoman-generator": "^5.6.1",
41
+ "yeoman-test": "~7.3.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/yeoman-generator": "^5.2.10",
45
+ "vitest": "^0.29.2"
46
+ }
47
+ }