create-commandkit 1.2.0-dev.20251125125452 → 1.2.0-dev.20260115004503
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/{COPYING.md → LICENSE.md} +3 -3
- package/README.md +10 -10
- package/dist/functions/fetchExample.js +1 -1
- package/dist/index.js +3 -3
- package/dist/utils.js +4 -19
- package/package.json +4 -4
|
@@ -639,8 +639,8 @@ attach them to the start of each source file to most effectively state
|
|
|
639
639
|
the exclusion of warranty; and each file should have at least the
|
|
640
640
|
"copyright" line and a pointer to where the full notice is found.
|
|
641
641
|
|
|
642
|
-
|
|
643
|
-
Copyright (C)
|
|
642
|
+
CommandKit is a discord.js metaframework
|
|
643
|
+
Copyright (C) 2026 Neplex
|
|
644
644
|
|
|
645
645
|
This program is free software: you can redistribute it and/or modify
|
|
646
646
|
it under the terms of the GNU General Public License as published by
|
|
@@ -661,7 +661,7 @@ mail.
|
|
|
661
661
|
If the program does terminal interaction, make it output a short
|
|
662
662
|
notice like this when it starts in an interactive mode:
|
|
663
663
|
|
|
664
|
-
|
|
664
|
+
CommandKit Copyright (C) 2026 Neplex
|
|
665
665
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
666
666
|
This is free software, and you are welcome to redistribute it
|
|
667
667
|
under certain conditions; type `show c' for details.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/neplextech/commandkit/main/apps/website/static/img/ckit_logo.svg" width="60%" />
|
|
3
3
|
<br />
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://neplextech.com/discord"><img src="https://img.shields.io/discord/1055188344188973066?color=5865F2&logo=discord&logoColor=white" alt="support server" /></a>
|
|
5
5
|
<a href="https://www.npmjs.com/package/create-commandkit"><img src="https://img.shields.io/npm/v/create-commandkit?maxAge=3600" alt="npm version" /></a>
|
|
6
6
|
<a href="https://www.npmjs.com/package/create-commandkit"><img src="https://img.shields.io/npm/dt/create-commandkit?maxAge=3600" alt="npm downloads" /></a>
|
|
7
7
|
</div>
|
|
@@ -68,13 +68,13 @@ npx create-commandkit@latest --example "https://github.com/user/repo" --example-
|
|
|
68
68
|
### Available Examples
|
|
69
69
|
|
|
70
70
|
<!-- BEGIN_AVAILABLE_EXAMPLES -->
|
|
71
|
-
- `basic-js` - [examples/basic-js](https://github.com/
|
|
72
|
-
- `basic-ts` - [examples/basic-ts](https://github.com/
|
|
73
|
-
- `deno-ts` - [examples/deno-ts](https://github.com/
|
|
74
|
-
- `with-ai` - [examples/with-ai](https://github.com/
|
|
75
|
-
- `with-leveling-system` - [examples/with-leveling-system](https://github.com/
|
|
76
|
-
- `with-workflow` - [examples/with-workflow](https://github.com/
|
|
77
|
-
- `without-cli` - [examples/without-cli](https://github.com/
|
|
71
|
+
- `basic-js` - [examples/basic-js](https://github.com/neplextech/commandkit/tree/main/examples/basic-js)
|
|
72
|
+
- `basic-ts` - [examples/basic-ts](https://github.com/neplextech/commandkit/tree/main/examples/basic-ts)
|
|
73
|
+
- `deno-ts` - [examples/deno-ts](https://github.com/neplextech/commandkit/tree/main/examples/deno-ts)
|
|
74
|
+
- `with-ai` - [examples/with-ai](https://github.com/neplextech/commandkit/tree/main/examples/with-ai)
|
|
75
|
+
- `with-leveling-system` - [examples/with-leveling-system](https://github.com/neplextech/commandkit/tree/main/examples/with-leveling-system)
|
|
76
|
+
- `with-workflow` - [examples/with-workflow](https://github.com/neplextech/commandkit/tree/main/examples/with-workflow)
|
|
77
|
+
- `without-cli` - [examples/without-cli](https://github.com/neplextech/commandkit/tree/main/examples/without-cli)
|
|
78
78
|
<!-- END_AVAILABLE_EXAMPLES -->
|
|
79
79
|
|
|
80
80
|
### Examples
|
|
@@ -98,4 +98,4 @@ npx create-commandkit@latest --list-examples
|
|
|
98
98
|
|
|
99
99
|
## Support and Suggestions
|
|
100
100
|
|
|
101
|
-
Submit any queries or suggestions in our [Discord community](https://
|
|
101
|
+
Submit any queries or suggestions in our [Discord community](https://neplextech.com/discord).
|
|
@@ -15,7 +15,7 @@ export async function fetchExample({ example, examplePath, targetDir, }) {
|
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
17
|
// Construct URL for curated examples
|
|
18
|
-
sourceUrl = `
|
|
18
|
+
sourceUrl = `neplextech/commandkit/examples/${example}`;
|
|
19
19
|
}
|
|
20
20
|
// Create temporary directory for download
|
|
21
21
|
const tempDir = path.join(targetDir, '.temp-example');
|
package/dist/index.js
CHANGED
|
@@ -197,9 +197,9 @@ To start your bot${projectDir !== '.' ? `, ${colors.magenta(`cd ${projectDir}`)}
|
|
|
197
197
|
${colors.magenta(command('start'))} - Run your bot in production mode
|
|
198
198
|
|
|
199
199
|
• Documentation: ${colors.blue('https://commandkit.dev')}
|
|
200
|
-
• GitHub: ${colors.blue('https://github.com/
|
|
201
|
-
•
|
|
202
|
-
• Discord community: ${colors.blue('https://
|
|
200
|
+
• GitHub: ${colors.blue('https://github.com/neplextech/commandkit')}
|
|
201
|
+
• Neplex: ${colors.blue('https://neplextech.com')}
|
|
202
|
+
• Discord community: ${colors.blue('https://neplextech.com/discord')}
|
|
203
203
|
|
|
204
204
|
Happy coding! 🚀`);
|
|
205
205
|
}
|
package/dist/utils.js
CHANGED
|
@@ -41,12 +41,12 @@ export function getDefaultExample(cliOptions) {
|
|
|
41
41
|
return 'basic-ts';
|
|
42
42
|
}
|
|
43
43
|
export function isOfficialExample(example) {
|
|
44
|
-
// Check if it's a GitHub URL pointing to
|
|
44
|
+
// Check if it's a GitHub URL pointing to neplextech/commandkit
|
|
45
45
|
if (example.startsWith('http://') || example.startsWith('https://')) {
|
|
46
46
|
try {
|
|
47
47
|
const url = new URL(example);
|
|
48
48
|
return (url.hostname === 'github.com' &&
|
|
49
|
-
url.pathname.startsWith('/
|
|
49
|
+
url.pathname.startsWith('/neplextech/commandkit'));
|
|
50
50
|
}
|
|
51
51
|
catch {
|
|
52
52
|
return false;
|
|
@@ -69,21 +69,13 @@ export function getInstallCommand(manager, deps, dev = false) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
export async function fetchAvailableExamples() {
|
|
72
|
-
let controller = null;
|
|
73
|
-
let timeoutId = null;
|
|
74
72
|
try {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const response = await fetch('https://api.github.com/repos/underctrl-io/commandkit/contents/examples', {
|
|
78
|
-
signal: controller.signal,
|
|
73
|
+
const response = await fetch('https://api.github.com/repos/neplextech/commandkit/contents/examples', {
|
|
74
|
+
signal: AbortSignal.timeout(10_000),
|
|
79
75
|
headers: {
|
|
80
76
|
'User-Agent': 'create-commandkit',
|
|
81
77
|
},
|
|
82
78
|
});
|
|
83
|
-
if (timeoutId) {
|
|
84
|
-
clearTimeout(timeoutId);
|
|
85
|
-
timeoutId = null;
|
|
86
|
-
}
|
|
87
79
|
if (!response.ok) {
|
|
88
80
|
throw new Error(`GitHub API error: ${response.status}`);
|
|
89
81
|
}
|
|
@@ -95,13 +87,6 @@ export async function fetchAvailableExamples() {
|
|
|
95
87
|
.sort();
|
|
96
88
|
}
|
|
97
89
|
catch (error) {
|
|
98
|
-
// Clean up on error
|
|
99
|
-
if (timeoutId) {
|
|
100
|
-
clearTimeout(timeoutId);
|
|
101
|
-
}
|
|
102
|
-
if (controller) {
|
|
103
|
-
controller.abort();
|
|
104
|
-
}
|
|
105
90
|
// Fallback to few known examples if API fails
|
|
106
91
|
return ['basic-ts', 'basic-js', 'deno-ts', 'without-cli'];
|
|
107
92
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-commandkit",
|
|
3
3
|
"description": "Effortlessly create a CommandKit project",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.20260115004503",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"bin": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "https://github.com/neplextech/commandkit",
|
|
26
26
|
"directory": "packages/create-commandkit"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://commandkit.dev",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@types/node": "^22.0.0",
|
|
43
43
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
44
44
|
"tsx": "^4.20.6",
|
|
45
|
-
"typescript": "^5.
|
|
46
|
-
"tsconfig": "0.0.0-dev.
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"tsconfig": "0.0.0-dev.20260115004503"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"check-types": "tsc --noEmit",
|