create-commandkit 1.0.0 → 1.0.1

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/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.1",
5
5
  "main": "src/index.js",
6
6
  "bin": "src/index.js",
7
7
  "type": "commonjs",
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)