create-commandkit 1.0.0 → 1.0.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  <br />
4
4
  <a href="https://ctrl.lol/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/commandkit"><img src="https://img.shields.io/npm/v/commandkit?maxAge=3600&label=commandkit" alt="commandkit version" /></a>
6
- <a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/v/create-commandkit?maxAge=3600&label=create-commandkit" alt="create-commandkit version" /></a>
6
+ <a href="https://www.npmjs.com/package/create-commandkit"><img src="https://img.shields.io/npm/v/create-commandkit?maxAge=3600&label=create-commandkit" alt="create-commandkit version" /></a>
7
7
  <a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/dt/commandkit?maxAge=3600" alt="npm downloads" /></a>
8
8
  </div>
9
9
 
@@ -13,12 +13,10 @@ A command-line interface (CLI) to quickly generate a discord.js bot using Comman
13
13
 
14
14
  ## Usage
15
15
 
16
- Run one of the following commands:
16
+ Run the following command in your terminal:
17
17
 
18
18
  ```sh
19
- npm create commandkit
20
- pnpm create commandkit
21
- yarn create commandkit
19
+ npm create commandkit@latest
22
20
  ```
23
21
 
24
22
  ## Setup Options
@@ -28,7 +26,8 @@ yarn create commandkit
28
26
  - Module type (ESM/CommonJS)
29
27
  - Bot token (written to .env)
30
28
 
31
- ## Repositories
29
+ ## Links
32
30
 
33
- - [CommandKit](https://github.com/underctrl-io/commandkit)
34
- - [create-commandkit](https://github.com/m1-dev/create-commandkit)
31
+ - [GitHub](https://github.com/m1-dev/create-commandkit)
32
+ - [Discord](https://ctrl.lol/discord)
33
+ - [npm](https://npmjs.com/package/create-commandkit)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-commandkit",
3
3
  "description": "Start a new CommandKit project with ease.",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "main": "src/index.js",
6
6
  "bin": "src/index.js",
7
7
  "type": "commonjs",
@@ -13,8 +13,8 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "@clack/prompts": "^0.7.0",
16
- "gradient-string": "^2.0.2",
16
+ "colors": "^1.4.0",
17
17
  "fs-extra": "^11.1.1",
18
- "colors": "^1.4.0"
18
+ "gradient-string": "^2.0.2"
19
19
  }
20
- }
20
+ }
package/src/config.js CHANGED
@@ -1,12 +1,5 @@
1
1
  const gradient = require('gradient-string');
2
2
 
3
-
4
- // import #c586c0
5
- // export #569cd6
6
-
7
- // require #dcdcaa
8
- // module #4ec9b0
9
-
10
3
  exports.templates = {
11
4
  js: {
12
5
  esm: `${__dirname}/templates/JavaScript/esm`,
@@ -1,6 +1,4 @@
1
1
  const { templates } = require('../config');
2
- const { execSync: ex } = require('child_process');
3
-
4
2
  const fs = require('fs-extra');
5
3
 
6
4
  module.exports = async ({ type, dir, lang }) => {
@@ -4,7 +4,6 @@ const { commands } = require('../config');
4
4
  const fs = require('fs-extra');
5
5
  const path = require('path');
6
6
 
7
-
8
7
  module.exports = async ({ manager, dir, token, type, stdio = 'pipe' }) => {
9
8
  await fs.emptyDir(dir);
10
9
  ex(commands.init[manager], { cwd: dir, stdio });
@@ -14,8 +13,10 @@ module.exports = async ({ manager, dir, token, type, stdio = 'pipe' }) => {
14
13
 
15
14
  packageJson.name = packageJson.name.toLowerCase();
16
15
  packageJson.type = type == 'esm' ? 'module' : 'commonjs';
16
+
17
17
  packageJson.main = './src/index.js';
18
18
  packageJson.version = '0.0.0';
19
+
19
20
  packageJson.scripts = {
20
21
  start: 'node ./src/index.js',
21
22
  dev: 'nodemon --ext js,json,ts ./src/index.js'
@@ -0,0 +1,8 @@
1
+ # Welcome to CommandKit
2
+
3
+ Thanks for choosing CommandKit to build your Discord bot!
4
+
5
+ ## Useful links
6
+
7
+ - [Documentation](https://commandkit.js.org)
8
+ - [Discord](https://ctrl.lol/discord)
@@ -0,0 +1,8 @@
1
+ # Welcome to CommandKit
2
+
3
+ Thanks for choosing CommandKit to build your Discord bot!
4
+
5
+ ## Useful links
6
+
7
+ - [Documentation](https://commandkit.js.org)
8
+ - [Discord](https://ctrl.lol/discord)