create-bot-ts 1.0.5 → 1.0.7
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/index.js +33 -38
- package/package.json +4 -2
package/index.js
CHANGED
|
@@ -161,29 +161,24 @@ cp.exec("npm init -y", { cwd: process.cwd() }, () => {
|
|
|
161
161
|
// Synchronize git
|
|
162
162
|
cp.execSync("git init", { cwd: process.cwd() });
|
|
163
163
|
|
|
164
|
-
spinner.update({
|
|
165
|
-
text: "Installing yarn plugins...",
|
|
166
|
-
color: "blue",
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// Install yarn plugins
|
|
170
|
-
cp.execSync("yarn plugin import version", { cwd: process.cwd() });
|
|
171
|
-
cp.execSync("yarn plugin import interactive-tools", {
|
|
172
|
-
cwd: process.cwd(),
|
|
173
|
-
});
|
|
174
|
-
|
|
175
164
|
cp.exec("yarn", { cwd: process.cwd() }, () => {
|
|
165
|
+
spinner.update({
|
|
166
|
+
text: "Adding discord dependencies",
|
|
167
|
+
color: "blue",
|
|
168
|
+
});
|
|
176
169
|
cp.exec(
|
|
177
|
-
"yarn add discord.js bufferutil
|
|
170
|
+
"yarn add discord.js bufferutil zlib-sync utf-8-validate",
|
|
178
171
|
{ cwd: process.cwd() },
|
|
179
172
|
() => {
|
|
180
173
|
spinner.update({
|
|
181
|
-
text: "Adding
|
|
174
|
+
text: "Adding utility dependencies",
|
|
182
175
|
color: "blue",
|
|
183
176
|
});
|
|
184
177
|
cp.exec(
|
|
185
|
-
"yarn
|
|
186
|
-
{
|
|
178
|
+
"yarn add consola common-tags table dotenv",
|
|
179
|
+
{
|
|
180
|
+
cwd: process.cwd(),
|
|
181
|
+
},
|
|
187
182
|
() => {
|
|
188
183
|
spinner.update({
|
|
189
184
|
text: "Adding necessary devDependencies",
|
|
@@ -238,7 +233,7 @@ cp.exec("npm init -y", { cwd: process.cwd() }, () => {
|
|
|
238
233
|
};
|
|
239
234
|
package["lint-staged"] = {
|
|
240
235
|
"./src/**/*.ts": ["eslint --fix"],
|
|
241
|
-
};
|
|
236
|
+
};u
|
|
242
237
|
|
|
243
238
|
fs.writeFileSync(
|
|
244
239
|
path.join(
|
|
@@ -256,27 +251,27 @@ cp.exec("npm init -y", { cwd: process.cwd() }, () => {
|
|
|
256
251
|
fs.writeFileSync(
|
|
257
252
|
path.join(process.cwd(), "README.md"),
|
|
258
253
|
outdent`
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
254
|
+
# ${package.name}
|
|
255
|
+
|
|
256
|
+
Created with created with [create-bot-ts](https://github.com/MahoMuri/create-bot-ts)
|
|
257
|
+
|
|
258
|
+
Based from [create-ts-pro](https://github.com/Milo123456789/create-ts-pro)
|
|
259
|
+
|
|
260
|
+
Features:
|
|
261
|
+
- Yarn PnP
|
|
262
|
+
- Husky
|
|
263
|
+
- ESlint and prettier
|
|
264
|
+
- TypeScript
|
|
265
|
+
- Version Plugin
|
|
266
|
+
- Upgrade-interactive plugin
|
|
267
|
+
|
|
268
|
+
Next Steps, run:
|
|
269
|
+
\`\`\`sh
|
|
270
|
+
yarn create @eslint/config
|
|
271
|
+
\`\`\`
|
|
272
|
+
|
|
273
|
+
to fully initialize eslint.
|
|
274
|
+
`
|
|
280
275
|
);
|
|
281
276
|
const diff = process.hrtime(time);
|
|
282
277
|
const seconds =
|
|
@@ -284,7 +279,7 @@ cp.exec("npm init -y", { cwd: process.cwd() }, () => {
|
|
|
284
279
|
diff[1] * MS_PER_NS) /
|
|
285
280
|
NS_PER_SEC;
|
|
286
281
|
spinner.success({
|
|
287
|
-
text: `
|
|
282
|
+
text: `Successfully Generated ${
|
|
288
283
|
package.name
|
|
289
284
|
} template in ${seconds.toFixed(3)}s`,
|
|
290
285
|
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bot-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "\"MahoMuri's personal template for Discord Bots\"",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "MahoMuri",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"bin":
|
|
8
|
+
"bin": {
|
|
9
|
+
"create-bot-ts": "index.js"
|
|
10
|
+
},
|
|
9
11
|
"private": false,
|
|
10
12
|
"dependencies": {
|
|
11
13
|
"nanospinner": "^1.0.0",
|