create-reciple 9.12.0 → 10.0.0
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/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +29 -59
- package/LICENSE +0 -674
- package/README.md +0 -44
- package/assets/README.md +0 -29
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +0 -58
- package/dist/bin.js.map +0 -1
- package/dist/classes/Addon.d.ts +0 -68
- package/dist/classes/Addon.js +0 -111
- package/dist/classes/Addon.js.map +0 -1
- package/dist/classes/Config.d.ts +0 -31
- package/dist/classes/Config.js +0 -61
- package/dist/classes/Config.js.map +0 -1
- package/dist/classes/Setup.d.ts +0 -43
- package/dist/classes/Setup.js +0 -149
- package/dist/classes/Setup.js.map +0 -1
- package/dist/classes/TemplateBuilder.d.ts +0 -94
- package/dist/classes/TemplateBuilder.js +0 -244
- package/dist/classes/TemplateBuilder.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -13
- package/dist/utils/constants.js +0 -75
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -32
- package/dist/utils/helpers.js +0 -88
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/types.d.ts +0 -20
- package/dist/utils/types.js +0 -2
- package/dist/utils/types.js.map +0 -1
- package/templates/javascript/dot.gitignore +0 -130
- package/templates/javascript/modules/commands/PingCommand.js +0 -68
- package/templates/javascript/modules/events/WelcomeEvent.js +0 -54
- package/templates/javascript/modules/halts/CommandErrorHalt.js +0 -59
- package/templates/javascript/modules/preconditions/ExamplePrecondition.js +0 -27
- package/templates/javascript/nodemon.json +0 -16
- package/templates/javascript/package.json +0 -18
- package/templates/javascript/template.json +0 -4
- package/templates/typescript/dot.gitignore +0 -133
- package/templates/typescript/nodemon.json +0 -17
- package/templates/typescript/package.json +0 -21
- package/templates/typescript/src/commands/PingCommand.ts +0 -52
- package/templates/typescript/src/events/WelcomeEvent.ts +0 -39
- package/templates/typescript/src/halts/CommandErrorHalt.ts +0 -44
- package/templates/typescript/src/preconditions/ExamplePrecondition.ts +0 -18
- package/templates/typescript/template.json +0 -4
- package/templates/typescript/tsconfig.json +0 -19
- package/templates/typescript-decorators/dot.gitignore +0 -133
- package/templates/typescript-decorators/nodemon.json +0 -17
- package/templates/typescript-decorators/package.json +0 -22
- package/templates/typescript-decorators/src/commands/PingCommand.ts +0 -45
- package/templates/typescript-decorators/src/events/WelcomeEvent.ts +0 -37
- package/templates/typescript-decorators/src/halts/CommandErrorHalt.ts +0 -44
- package/templates/typescript-decorators/src/preconditions/ExamplePrecondition.ts +0 -18
- package/templates/typescript-decorators/template.json +0 -4
- package/templates/typescript-decorators/tsconfig.json +0 -19
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { TemplateMetadata } from '../utils/types.js';
|
|
2
|
-
import { type Ora, type PersistOptions } from 'ora';
|
|
3
|
-
import { type SetupOptions } from './Setup.js';
|
|
4
|
-
import { type RecipleConfig } from 'reciple';
|
|
5
|
-
export interface TemplateBuilderOptions {
|
|
6
|
-
setup: SetupOptions;
|
|
7
|
-
template: TemplateMetadata;
|
|
8
|
-
}
|
|
9
|
-
export declare class TemplateBuilder implements TemplateBuilderOptions {
|
|
10
|
-
setup: SetupOptions;
|
|
11
|
-
template: TemplateMetadata;
|
|
12
|
-
config?: RecipleConfig;
|
|
13
|
-
spinner?: Ora;
|
|
14
|
-
get dir(): string;
|
|
15
|
-
get packageJsonPath(): string;
|
|
16
|
-
get packageManagerPlaceholders(): Record<"SCRIPT_RUN" | "BIN_EXEC" | "INSTALL_ALL" | "INSTALL_PKG" | "UNINSTALL_PKG", string>;
|
|
17
|
-
constructor(options: TemplateBuilderOptions);
|
|
18
|
-
/**
|
|
19
|
-
* Builds the template by performing the following steps:
|
|
20
|
-
* 1. Initializes the spinner.
|
|
21
|
-
* 2. Creates the directory if it does not exist.
|
|
22
|
-
* 3. Copies the template files.
|
|
23
|
-
* 4. Copies the assets.
|
|
24
|
-
* 5. Sets up the package.json file.
|
|
25
|
-
* 6. Sets up the configuration.
|
|
26
|
-
* 7. Sets up the addons.
|
|
27
|
-
* 8. Sets up the environment.
|
|
28
|
-
* 9. Succeeds the spinner.
|
|
29
|
-
* 10. Installs dependencies if the package manager is specified.
|
|
30
|
-
* 11. Logs the project readiness message.
|
|
31
|
-
* 12. Logs the start developing message.
|
|
32
|
-
* 13. Logs the command to navigate to the project directory if the current working directory is not the project directory.
|
|
33
|
-
* 14. Logs the command to install all dependencies if the package manager is not specified.
|
|
34
|
-
* 15. Logs the command to run the dev script.
|
|
35
|
-
*
|
|
36
|
-
* @return {Promise<void>} A Promise that resolves when the build is complete.
|
|
37
|
-
*/
|
|
38
|
-
build(): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Copies the template files to the specified directory.
|
|
41
|
-
*
|
|
42
|
-
* @return {Promise<void>} A Promise that resolves when the template files are copied.
|
|
43
|
-
*/
|
|
44
|
-
copyTemplateFiles(): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Copies the asset files from the root directory to the current directory.
|
|
47
|
-
*
|
|
48
|
-
* @return {Promise<void>} A Promise that resolves when the asset files are copied.
|
|
49
|
-
*/
|
|
50
|
-
copyAssets(): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Configures the package versions and scripts in the package.json file.
|
|
53
|
-
*
|
|
54
|
-
* @return {Promise<void>} A Promise that resolves when the package.json file is configured.
|
|
55
|
-
*/
|
|
56
|
-
setupPackageJson(): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Sets up the configuration for the `reciple.mjs` file by creating a new
|
|
59
|
-
* configuration file in the specified directory. This function does not take
|
|
60
|
-
* any parameters and returns a Promise that resolves when the configuration
|
|
61
|
-
* file is successfully created.
|
|
62
|
-
*
|
|
63
|
-
* @return {Promise<void>} A Promise that resolves when the configuration
|
|
64
|
-
* file is successfully created.
|
|
65
|
-
*/
|
|
66
|
-
setupConfig(): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Sets up the addons for the template by installing the specified addons
|
|
69
|
-
* and updating the package.json file with their dependencies. This function
|
|
70
|
-
* takes no parameters and returns a Promise that resolves when the addons
|
|
71
|
-
* are successfully installed.
|
|
72
|
-
*
|
|
73
|
-
* @return {Promise<void>} A Promise that resolves when the addons are
|
|
74
|
-
* installed.
|
|
75
|
-
*/
|
|
76
|
-
setupAddons(): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Sets up the environment by updating the .env file with the Discord bot token.
|
|
79
|
-
* If the file already exists, it reads the content and appends the token.
|
|
80
|
-
* If the token is not already present in the file, it adds a comment and the token.
|
|
81
|
-
* The function does not return anything.
|
|
82
|
-
*
|
|
83
|
-
* @return {Promise<void>} A Promise that resolves when the environment setup is complete.
|
|
84
|
-
*/
|
|
85
|
-
setupEnv(): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Installs dependencies by running a script with the package manager placeholders.
|
|
88
|
-
*
|
|
89
|
-
* @return {Promise<void>} A Promise that resolves when the dependencies are installed.
|
|
90
|
-
*/
|
|
91
|
-
installDependencies(): Promise<void>;
|
|
92
|
-
setSpinnerText(text: string): void;
|
|
93
|
-
persistSpinner(options: PersistOptions): void;
|
|
94
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { packageManagerPlaceholders, packages, root } from '../utils/constants.js';
|
|
2
|
-
import { recursiveCopyFiles, runScript } from '../utils/helpers.js';
|
|
3
|
-
import { mkdir, readFile, writeFile } from 'fs/promises';
|
|
4
|
-
import { kleur } from 'fallout-utility';
|
|
5
|
-
import ora, {} from 'ora';
|
|
6
|
-
import { existsAsync } from '@reciple/utils';
|
|
7
|
-
import {} from './Setup.js';
|
|
8
|
-
import detectIndent from 'detect-indent';
|
|
9
|
-
import {} from 'reciple';
|
|
10
|
-
import { Config } from './Config.js';
|
|
11
|
-
import { Addon } from './Addon.js';
|
|
12
|
-
import path from 'node:path';
|
|
13
|
-
export class TemplateBuilder {
|
|
14
|
-
setup;
|
|
15
|
-
template;
|
|
16
|
-
config;
|
|
17
|
-
spinner;
|
|
18
|
-
get dir() {
|
|
19
|
-
return this.setup.dir ?? process.cwd();
|
|
20
|
-
}
|
|
21
|
-
get packageJsonPath() {
|
|
22
|
-
return path.join(this.dir, 'package.json');
|
|
23
|
-
}
|
|
24
|
-
get packageManagerPlaceholders() {
|
|
25
|
-
return packageManagerPlaceholders[this.setup.packageManager ?? 'npm'];
|
|
26
|
-
}
|
|
27
|
-
constructor(options) {
|
|
28
|
-
this.setup = options.setup;
|
|
29
|
-
this.template = options.template;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Builds the template by performing the following steps:
|
|
33
|
-
* 1. Initializes the spinner.
|
|
34
|
-
* 2. Creates the directory if it does not exist.
|
|
35
|
-
* 3. Copies the template files.
|
|
36
|
-
* 4. Copies the assets.
|
|
37
|
-
* 5. Sets up the package.json file.
|
|
38
|
-
* 6. Sets up the configuration.
|
|
39
|
-
* 7. Sets up the addons.
|
|
40
|
-
* 8. Sets up the environment.
|
|
41
|
-
* 9. Succeeds the spinner.
|
|
42
|
-
* 10. Installs dependencies if the package manager is specified.
|
|
43
|
-
* 11. Logs the project readiness message.
|
|
44
|
-
* 12. Logs the start developing message.
|
|
45
|
-
* 13. Logs the command to navigate to the project directory if the current working directory is not the project directory.
|
|
46
|
-
* 14. Logs the command to install all dependencies if the package manager is not specified.
|
|
47
|
-
* 15. Logs the command to run the dev script.
|
|
48
|
-
*
|
|
49
|
-
* @return {Promise<void>} A Promise that resolves when the build is complete.
|
|
50
|
-
*/
|
|
51
|
-
async build() {
|
|
52
|
-
this.spinner = ora({
|
|
53
|
-
text: '',
|
|
54
|
-
color: 'cyan',
|
|
55
|
-
spinner: 'dots'
|
|
56
|
-
});
|
|
57
|
-
if (!await existsAsync(this.dir))
|
|
58
|
-
await mkdir(this.dir, { recursive: true });
|
|
59
|
-
await this.copyTemplateFiles();
|
|
60
|
-
await this.copyAssets();
|
|
61
|
-
await this.setupPackageJson();
|
|
62
|
-
await this.setupConfig();
|
|
63
|
-
await this.setupAddons();
|
|
64
|
-
await this.setupEnv();
|
|
65
|
-
this.spinner.succeed('Template build successful.');
|
|
66
|
-
if (this.setup.packageManager) {
|
|
67
|
-
await this.installDependencies();
|
|
68
|
-
if (this.setup.isTypescript)
|
|
69
|
-
await runScript(`${this.packageManagerPlaceholders.SCRIPT_RUN} build`, this.dir);
|
|
70
|
-
}
|
|
71
|
-
console.log(`${kleur.bold(kleur.green('✔') + ' Your project is ready!')}`);
|
|
72
|
-
console.log(`\nStart developing:`);
|
|
73
|
-
if (path.relative(process.cwd(), this.dir) !== '') {
|
|
74
|
-
console.log(` • ${kleur.cyan().bold('cd ' + path.relative(process.cwd(), this.dir))}`);
|
|
75
|
-
}
|
|
76
|
-
if (!this.setup.packageManager)
|
|
77
|
-
console.log(` • ${kleur.cyan().bold(this.packageManagerPlaceholders.INSTALL_ALL)} (or ${packageManagerPlaceholders.pnpm.INSTALL_ALL}, etc)`);
|
|
78
|
-
console.log(` • ${kleur.cyan().bold(`${this.packageManagerPlaceholders.SCRIPT_RUN} dev`)} ${kleur.gray('(Development)')}`);
|
|
79
|
-
console.log(` • ${kleur.cyan().bold(`${this.packageManagerPlaceholders.SCRIPT_RUN} start`)} ${kleur.gray('(Production)')}`);
|
|
80
|
-
console.log(kleur.green(`\nAll done! Make sure to read through the Reciple guide and docs to help you get started.`));
|
|
81
|
-
console.log(` • ${kleur.gray().bold(`Guide:`)} ${kleur.cyan('https://reciple.js.org/guide')}`);
|
|
82
|
-
console.log(` • ${kleur.gray().bold(`Docs:`)} ${kleur.cyan('https://reciple.js.org/docs')}`);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Copies the template files to the specified directory.
|
|
86
|
-
*
|
|
87
|
-
* @return {Promise<void>} A Promise that resolves when the template files are copied.
|
|
88
|
-
*/
|
|
89
|
-
async copyTemplateFiles() {
|
|
90
|
-
this.setSpinnerText('Copying template files...');
|
|
91
|
-
await recursiveCopyFiles(this.template.path, this.dir, f => f.replace('dot.', '.'));
|
|
92
|
-
this.persistSpinner({ symbol: kleur.bold().green('✔'), text: 'Template files copied.' });
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Copies the asset files from the root directory to the current directory.
|
|
96
|
-
*
|
|
97
|
-
* @return {Promise<void>} A Promise that resolves when the asset files are copied.
|
|
98
|
-
*/
|
|
99
|
-
async copyAssets() {
|
|
100
|
-
this.setSpinnerText('Copying asset files...');
|
|
101
|
-
if (await existsAsync(path.join(root, 'assets'))) {
|
|
102
|
-
await recursiveCopyFiles(path.join(root, 'assets'), this.dir, f => f.replace('dot.', '.'));
|
|
103
|
-
}
|
|
104
|
-
this.persistSpinner({ symbol: kleur.bold().green('✔'), text: 'Copied all assets.' });
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Configures the package versions and scripts in the package.json file.
|
|
108
|
-
*
|
|
109
|
-
* @return {Promise<void>} A Promise that resolves when the package.json file is configured.
|
|
110
|
-
*/
|
|
111
|
-
async setupPackageJson() {
|
|
112
|
-
this.setSpinnerText(`Configuring ${kleur.green('package.json')} package versions...`);
|
|
113
|
-
let packageJson = await readFile(this.packageJsonPath, 'utf-8');
|
|
114
|
-
for (const pkg of Object.keys(packages)) {
|
|
115
|
-
packageJson = packageJson.replaceAll(`"${pkg}"`, `"${packages[pkg] ?? "*"}"`);
|
|
116
|
-
}
|
|
117
|
-
this.setSpinnerText(`Configuring ${kleur.green('package.json')} scripts...`);
|
|
118
|
-
for (const placeholder of Object.keys(this.packageManagerPlaceholders)) {
|
|
119
|
-
packageJson = packageJson.replaceAll(placeholder, this.packageManagerPlaceholders[placeholder]);
|
|
120
|
-
}
|
|
121
|
-
await writeFile(this.packageJsonPath, packageJson, 'utf-8');
|
|
122
|
-
this.persistSpinner({ symbol: kleur.bold().green('✔'), text: `${kleur.green('package.json')} configured.` });
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Sets up the configuration for the `reciple.mjs` file by creating a new
|
|
126
|
-
* configuration file in the specified directory. This function does not take
|
|
127
|
-
* any parameters and returns a Promise that resolves when the configuration
|
|
128
|
-
* file is successfully created.
|
|
129
|
-
*
|
|
130
|
-
* @return {Promise<void>} A Promise that resolves when the configuration
|
|
131
|
-
* file is successfully created.
|
|
132
|
-
*/
|
|
133
|
-
async setupConfig() {
|
|
134
|
-
this.setSpinnerText(`Configuring ${kleur.green('reciple.mjs')}...`);
|
|
135
|
-
await (new Config({
|
|
136
|
-
dir: this.dir,
|
|
137
|
-
isTypeScript: this.template.language === 'Typescript'
|
|
138
|
-
})).setup({
|
|
139
|
-
halts: [
|
|
140
|
-
{
|
|
141
|
-
class: 'CommandErrorHalt',
|
|
142
|
-
from: './modules/halts/CommandErrorHalt.js',
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
preconditions: [
|
|
146
|
-
{
|
|
147
|
-
class: 'ExamplePrecondition',
|
|
148
|
-
from: './modules/preconditions/ExamplePrecondition.js',
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
});
|
|
152
|
-
this.persistSpinner({ symbol: kleur.bold().green('✔'), text: `${kleur.green('reciple.mjs')} configured.` });
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Sets up the addons for the template by installing the specified addons
|
|
156
|
-
* and updating the package.json file with their dependencies. This function
|
|
157
|
-
* takes no parameters and returns a Promise that resolves when the addons
|
|
158
|
-
* are successfully installed.
|
|
159
|
-
*
|
|
160
|
-
* @return {Promise<void>} A Promise that resolves when the addons are
|
|
161
|
-
* installed.
|
|
162
|
-
*/
|
|
163
|
-
async setupAddons() {
|
|
164
|
-
const addons = (this.setup.addons ?? []).map(a => new Addon({ module: a, version: Addon.DEFAULT_ADDON_VERSIONS[a] || undefined }));
|
|
165
|
-
if (!addons.length)
|
|
166
|
-
return;
|
|
167
|
-
this.setSpinnerText(`Installing ${kleur.cyan(addons.length + ' addons')} ${kleur.gray('(0/' + addons.length + ')')}...`);
|
|
168
|
-
let packageJsonData = await readFile(this.packageJsonPath, 'utf-8');
|
|
169
|
-
let packageJson = JSON.parse(packageJsonData);
|
|
170
|
-
let packageJsonIndentSize = detectIndent(packageJsonData).indent || ' ';
|
|
171
|
-
let done = 0;
|
|
172
|
-
let failed = 0;
|
|
173
|
-
for (const addon of addons) {
|
|
174
|
-
try {
|
|
175
|
-
await addon.fetch();
|
|
176
|
-
await addon.readTarball();
|
|
177
|
-
const moduleContent = this.setup.isTypescript ? addon.tarballData?.initialModuleContent.ts : addon.tarballData?.initialModuleContent.js;
|
|
178
|
-
if (!moduleContent)
|
|
179
|
-
continue;
|
|
180
|
-
const modulesFolder = path.join(this.dir, this.setup.isTypescript ? 'src' : 'modules', 'addons');
|
|
181
|
-
await mkdir(modulesFolder, { recursive: true });
|
|
182
|
-
const modulePath = path.join(modulesFolder, `${addon.module}.${this.setup.isTypescript ? 'ts' : 'js'}`);
|
|
183
|
-
await writeFile(modulePath, moduleContent);
|
|
184
|
-
packageJson.dependencies = {
|
|
185
|
-
...packageJson.dependencies,
|
|
186
|
-
[addon.module]: addon.version,
|
|
187
|
-
};
|
|
188
|
-
done++;
|
|
189
|
-
this.persistSpinner({ symbol: kleur.bold().green(' +'), text: `Installed addon ${kleur.cyan(addon.module + '@' + (addon.version ?? 'latest'))}` });
|
|
190
|
-
}
|
|
191
|
-
catch (err) {
|
|
192
|
-
failed++;
|
|
193
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
194
|
-
this.persistSpinner({ symbol: kleur.bold().red(' ×'), text: `${kleur.gray(addon.module + '@' + (addon.version ?? 'latest'))} ${kleur.red(message)}` });
|
|
195
|
-
}
|
|
196
|
-
this.setSpinnerText(`Installing ${kleur.cyan(addons.length + ' addons')} ${kleur.gray('(' + done + '/' + addons.length + ')')}...`);
|
|
197
|
-
}
|
|
198
|
-
await writeFile(this.packageJsonPath, JSON.stringify(packageJson, null, packageJsonIndentSize), 'utf-8');
|
|
199
|
-
this.persistSpinner({ symbol: kleur.bold().green('✔'), text: `${kleur.green('Addons installed.')}` + (failed ? kleur.red(` Failed (${failed}/${addons.length})`) : '') });
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Sets up the environment by updating the .env file with the Discord bot token.
|
|
203
|
-
* If the file already exists, it reads the content and appends the token.
|
|
204
|
-
* If the token is not already present in the file, it adds a comment and the token.
|
|
205
|
-
* The function does not return anything.
|
|
206
|
-
*
|
|
207
|
-
* @return {Promise<void>} A Promise that resolves when the environment setup is complete.
|
|
208
|
-
*/
|
|
209
|
-
async setupEnv() {
|
|
210
|
-
const file = path.resolve(path.join(this.dir, '.env'));
|
|
211
|
-
let content = '';
|
|
212
|
-
if (await existsAsync(file))
|
|
213
|
-
content = await readFile(file, 'utf-8');
|
|
214
|
-
if (!content.includes('TOKEN=')) {
|
|
215
|
-
content += `\n# Replace this value to your Discord bot token from https://discord.com/developers/applications\nTOKEN="${this.setup.token ?? ''}"`;
|
|
216
|
-
content = content.trim();
|
|
217
|
-
}
|
|
218
|
-
await writeFile(file, content);
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Installs dependencies by running a script with the package manager placeholders.
|
|
222
|
-
*
|
|
223
|
-
* @return {Promise<void>} A Promise that resolves when the dependencies are installed.
|
|
224
|
-
*/
|
|
225
|
-
async installDependencies() {
|
|
226
|
-
await runScript(this.packageManagerPlaceholders.INSTALL_ALL, this.dir);
|
|
227
|
-
}
|
|
228
|
-
setSpinnerText(text) {
|
|
229
|
-
if (!this.spinner)
|
|
230
|
-
return;
|
|
231
|
-
this.spinner.text = text;
|
|
232
|
-
}
|
|
233
|
-
persistSpinner(options) {
|
|
234
|
-
if (!this.spinner)
|
|
235
|
-
return;
|
|
236
|
-
const spinner = this.spinner.spinner;
|
|
237
|
-
const color = this.spinner.color;
|
|
238
|
-
this.spinner = this.spinner.stopAndPersist(options);
|
|
239
|
-
this.spinner.spinner = spinner;
|
|
240
|
-
this.spinner.color = color;
|
|
241
|
-
this.spinner.start();
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
//# sourceMappingURL=TemplateBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateBuilder.js","sourceRoot":"","sources":["../../src/classes/TemplateBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAoB,MAAM,iBAAiB,CAAC;AAC1D,OAAO,GAAG,EAAE,EAAiC,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAqB,MAAM,YAAY,CAAC;AAC/C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAsB,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAO7B,MAAM,OAAO,eAAe;IACjB,KAAK,CAAe;IACpB,QAAQ,CAAmB;IAE3B,MAAM,CAAiB;IACvB,OAAO,CAAO;IAErB,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAC3C,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,0BAA0B;QAC1B,OAAO,0BAA0B,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OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './classes/Addon.js';
|
|
2
|
-
export * from './classes/Config.js';
|
|
3
|
-
export * from './classes/Setup.js';
|
|
4
|
-
export * from './classes/TemplateBuilder.js';
|
|
5
|
-
export * from './utils/constants.js';
|
|
6
|
-
export * from './utils/helpers.js';
|
|
7
|
-
export * from './utils/types.js';
|
package/dist/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './classes/Addon.js';
|
|
2
|
-
export * from './classes/Config.js';
|
|
3
|
-
export * from './classes/Setup.js';
|
|
4
|
-
export * from './classes/TemplateBuilder.js';
|
|
5
|
-
export * from './utils/constants.js';
|
|
6
|
-
export * from './utils/helpers.js';
|
|
7
|
-
export * from './utils/types.js';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { PackageJson } from 'fallout-utility/types';
|
|
2
|
-
import type { PackageManager } from '@reciple/utils';
|
|
3
|
-
export declare const root: string;
|
|
4
|
-
export declare const templatesFolder: string;
|
|
5
|
-
export declare const packageJson: PackageJson;
|
|
6
|
-
export declare const newLineRegex: RegExp;
|
|
7
|
-
export declare const packageManagers: {
|
|
8
|
-
label?: string;
|
|
9
|
-
hint?: string;
|
|
10
|
-
value: PackageManager | 'none';
|
|
11
|
-
}[];
|
|
12
|
-
export declare const packages: Record<string, string>;
|
|
13
|
-
export declare const packageManagerPlaceholders: Record<PackageManager, Record<'SCRIPT_RUN' | 'BIN_EXEC' | 'INSTALL_ALL' | 'INSTALL_PKG' | 'UNINSTALL_PKG', string>>;
|
package/dist/utils/constants.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { readFile } from 'node:fs/promises';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
export const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '../../');
|
|
5
|
-
export const templatesFolder = path.join(root, 'templates');
|
|
6
|
-
export const packageJson = JSON.parse(await readFile(path.join(root, 'package.json'), 'utf-8'));
|
|
7
|
-
export const newLineRegex = /\r\n|\r|\n/g;
|
|
8
|
-
export const packageManagers = [
|
|
9
|
-
{
|
|
10
|
-
label: 'npm',
|
|
11
|
-
hint: 'Uses npm as package manager',
|
|
12
|
-
value: 'npm'
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'yarn',
|
|
16
|
-
hint: 'Uses yarn as package manager',
|
|
17
|
-
value: 'yarn'
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
label: 'pnpm',
|
|
21
|
-
hint: 'Uses pnpm as package manager',
|
|
22
|
-
value: 'pnpm'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'bun',
|
|
26
|
-
hint: 'Uses bun as package manager',
|
|
27
|
-
value: 'bun'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: 'none',
|
|
31
|
-
hint: 'Setup package manager later',
|
|
32
|
-
value: 'none'
|
|
33
|
-
}
|
|
34
|
-
];
|
|
35
|
-
export const packages = {
|
|
36
|
-
'TYPES_NODE': packageJson.devDependencies['@types/node'],
|
|
37
|
-
'RECIPLE_CORE': packageJson.dependencies['@reciple/core'],
|
|
38
|
-
'RECIPLE_DECORATORS': packageJson.dependencies['@reciple/decorators'],
|
|
39
|
-
'TYPESCRIPT': packageJson.devDependencies['typescript'],
|
|
40
|
-
'RIMRAF': packageJson.devDependencies['rimraf'],
|
|
41
|
-
'RECIPLE': packageJson.dependencies['reciple'],
|
|
42
|
-
'NODEMON': packageJson.devDependencies['nodemon'],
|
|
43
|
-
'DISCORDJS': packageJson.dependencies['discord.js']
|
|
44
|
-
};
|
|
45
|
-
export const packageManagerPlaceholders = {
|
|
46
|
-
'npm': {
|
|
47
|
-
'SCRIPT_RUN': 'npm run',
|
|
48
|
-
'BIN_EXEC': 'npx',
|
|
49
|
-
'INSTALL_ALL': 'npm install',
|
|
50
|
-
'INSTALL_PKG': 'npm install',
|
|
51
|
-
'UNINSTALL_PKG': 'npm uninstall'
|
|
52
|
-
},
|
|
53
|
-
'pnpm': {
|
|
54
|
-
'SCRIPT_RUN': 'pnpm run',
|
|
55
|
-
'BIN_EXEC': 'pnpm exec',
|
|
56
|
-
'INSTALL_ALL': 'pnpm install',
|
|
57
|
-
'INSTALL_PKG': 'pnpm add',
|
|
58
|
-
'UNINSTALL_PKG': 'pnpm remove'
|
|
59
|
-
},
|
|
60
|
-
'yarn': {
|
|
61
|
-
'SCRIPT_RUN': 'yarn run',
|
|
62
|
-
'BIN_EXEC': 'yarn exec',
|
|
63
|
-
'INSTALL_ALL': 'yarn',
|
|
64
|
-
'INSTALL_PKG': 'yarn add',
|
|
65
|
-
'UNINSTALL_PKG': 'yarn remove'
|
|
66
|
-
},
|
|
67
|
-
'bun': {
|
|
68
|
-
'SCRIPT_RUN': 'bun run',
|
|
69
|
-
'BIN_EXEC': 'bunx',
|
|
70
|
-
'INSTALL_ALL': 'bun install',
|
|
71
|
-
'INSTALL_PKG': 'bun add',
|
|
72
|
-
'UNINSTALL_PKG': 'bun remove'
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAgB,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAC7G,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAuE;IAC/F;QACI,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,KAAK;KACf;IACD;QACI,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,8BAA8B;QACpC,KAAK,EAAE,MAAM;KAChB;IACD;QACI,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,8BAA8B;QACpC,KAAK,EAAE,MAAM;KAChB;IACD;QACI,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,KAAK;KACf;IACD;QACI,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE,MAAM;KAChB;CACJ,CAAC;AAEF,MAAM,CAAC,MAA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and returns template metadata from the specified directory.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} dir - The directory path to retrieve templates from.
|
|
6
|
-
* @return {Promise<TemplateMetadata[]>} An array of template metadata objects.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getTemplates(dir: string): Promise<TemplateMetadata[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Recursively copies files from one directory to another.
|
|
11
|
-
*
|
|
12
|
-
* @param {string} from - The source directory path.
|
|
13
|
-
* @param {string} to - The destination directory path.
|
|
14
|
-
* @param {(f: string) => string} [rename] - An optional function to rename files during the copy process.
|
|
15
|
-
* @return {Promise<void>} A promise that resolves when the copy is complete.
|
|
16
|
-
*/
|
|
17
|
-
export declare function recursiveCopyFiles(from: string, to: string, rename?: (f: string) => string): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Executes a shell command and logs the command before running it. If the command fails, the process exits with a status code of 1.
|
|
20
|
-
*
|
|
21
|
-
* @param {string} command - The shell command to execute.
|
|
22
|
-
* @param {string} [cwd] - The current working directory in which to execute the command. Defaults to the current working directory.
|
|
23
|
-
* @return {Promise<void>} A promise that resolves when the command has completed.
|
|
24
|
-
*/
|
|
25
|
-
export declare function runScript(command: string, cwd?: string): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Checks if a directory is empty by filtering out hidden files.
|
|
28
|
-
*
|
|
29
|
-
* @param {string} dir - The directory path to check.
|
|
30
|
-
* @return {Promise<boolean>} True if the directory is empty, false otherwise.
|
|
31
|
-
*/
|
|
32
|
-
export declare function isDirEmpty(dir: string): Promise<boolean>;
|
package/dist/utils/helpers.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { copyFile, mkdir, readFile, readdir, stat } from 'node:fs/promises';
|
|
2
|
-
import { kleur } from 'fallout-utility/strings';
|
|
3
|
-
import { execSync } from 'node:child_process';
|
|
4
|
-
import { existsAsync } from '@reciple/utils';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves and returns template metadata from the specified directory.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} dir - The directory path to retrieve templates from.
|
|
10
|
-
* @return {Promise<TemplateMetadata[]>} An array of template metadata objects.
|
|
11
|
-
*/
|
|
12
|
-
export async function getTemplates(dir) {
|
|
13
|
-
if (!await existsAsync(dir)) {
|
|
14
|
-
await mkdir(dir, { recursive: true });
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
const templates = [];
|
|
18
|
-
const contents = (await readdir(dir)).map(d => path.join(dir, d));
|
|
19
|
-
for (const file of contents) {
|
|
20
|
-
const statData = await stat(file);
|
|
21
|
-
if (!statData.isDirectory())
|
|
22
|
-
continue;
|
|
23
|
-
const id = path.basename(file);
|
|
24
|
-
const files = (await readdir(file)).map(d => path.join(file, d));
|
|
25
|
-
if (!files.includes(path.join(file, 'template.json')) || !files.includes(path.join(file, 'package.json')))
|
|
26
|
-
continue;
|
|
27
|
-
const metadata = JSON.parse(await readFile(path.join(file, 'template.json'), 'utf-8'));
|
|
28
|
-
const data = {
|
|
29
|
-
id,
|
|
30
|
-
name: metadata.name,
|
|
31
|
-
language: metadata.language,
|
|
32
|
-
files: files.filter(f => !f.endsWith('template.json')),
|
|
33
|
-
path: file
|
|
34
|
-
};
|
|
35
|
-
templates.push(data);
|
|
36
|
-
}
|
|
37
|
-
return templates;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Recursively copies files from one directory to another.
|
|
41
|
-
*
|
|
42
|
-
* @param {string} from - The source directory path.
|
|
43
|
-
* @param {string} to - The destination directory path.
|
|
44
|
-
* @param {(f: string) => string} [rename] - An optional function to rename files during the copy process.
|
|
45
|
-
* @return {Promise<void>} A promise that resolves when the copy is complete.
|
|
46
|
-
*/
|
|
47
|
-
export async function recursiveCopyFiles(from, to, rename) {
|
|
48
|
-
if ((await stat(from)).isDirectory()) {
|
|
49
|
-
const contents = await readdir(from);
|
|
50
|
-
for (const content of contents) {
|
|
51
|
-
await recursiveCopyFiles(path.join(from, content), path.join(to, rename ? rename(content) : content));
|
|
52
|
-
}
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (to.endsWith('template.json'))
|
|
56
|
-
return;
|
|
57
|
-
await mkdir(path.dirname(to), { recursive: true });
|
|
58
|
-
await copyFile(from, to);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Executes a shell command and logs the command before running it. If the command fails, the process exits with a status code of 1.
|
|
62
|
-
*
|
|
63
|
-
* @param {string} command - The shell command to execute.
|
|
64
|
-
* @param {string} [cwd] - The current working directory in which to execute the command. Defaults to the current working directory.
|
|
65
|
-
* @return {Promise<void>} A promise that resolves when the command has completed.
|
|
66
|
-
*/
|
|
67
|
-
export async function runScript(command, cwd) {
|
|
68
|
-
console.log(kleur.gray(kleur.bold('$') + ' ' + command));
|
|
69
|
-
try {
|
|
70
|
-
execSync(`${command}`, { cwd, env: { ...process.env, FORCE_COLOR: '1' }, stdio: ['inherit', 'inherit', 'inherit'] });
|
|
71
|
-
}
|
|
72
|
-
catch (error) {
|
|
73
|
-
process.exit(1);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Checks if a directory is empty by filtering out hidden files.
|
|
78
|
-
*
|
|
79
|
-
* @param {string} dir - The directory path to check.
|
|
80
|
-
* @return {Promise<boolean>} True if the directory is empty, false otherwise.
|
|
81
|
-
*/
|
|
82
|
-
export async function isDirEmpty(dir) {
|
|
83
|
-
if (!await existsAsync(dir))
|
|
84
|
-
return true;
|
|
85
|
-
const contents = (await readdir(dir)).filter(f => !f.startsWith('.'));
|
|
86
|
-
return contents.length === 0;
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,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,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,MAAM,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,OAAe,EAAE,GAAY;IACzD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC;QACD,QAAQ,CAAC,GAAG,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;IACzH,CAAC;IAAC,OAAM,KAAK,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,GAAW;IACxC,IAAI,CAAC,MAAM,WAAW,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAEzC,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;AACjC,CAAC"}
|
package/dist/utils/types.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { PackageManager } from '@reciple/utils';
|
|
2
|
-
export interface CliOptions {
|
|
3
|
-
force: boolean;
|
|
4
|
-
typescript: boolean | 'null';
|
|
5
|
-
esm: boolean | 'null';
|
|
6
|
-
commonjs: boolean | 'null';
|
|
7
|
-
packageManager: PackageManager | 'null';
|
|
8
|
-
token?: string;
|
|
9
|
-
addons: string[] | boolean;
|
|
10
|
-
[k: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export interface TemplateMetadata extends TemplateJson {
|
|
13
|
-
id: string;
|
|
14
|
-
path: string;
|
|
15
|
-
files: string[];
|
|
16
|
-
}
|
|
17
|
-
export interface TemplateJson {
|
|
18
|
-
name: string;
|
|
19
|
-
language: 'Javascript' | 'Typescript';
|
|
20
|
-
}
|
package/dist/utils/types.js
DELETED
package/dist/utils/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":""}
|