@gravirei/reis 1.1.8 ā 1.1.9
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/lib/install.js +3 -25
- package/package.json +1 -1
package/lib/install.js
CHANGED
|
@@ -94,25 +94,18 @@ async function performInstallation() {
|
|
|
94
94
|
const templatesDir = path.join(reisDir, 'templates');
|
|
95
95
|
const subagentsDir = path.join(homeDir, '.rovodev', 'subagents');
|
|
96
96
|
|
|
97
|
-
console.log(chalk.cyan('š Creating directories...'));
|
|
98
|
-
|
|
99
97
|
// Create directories
|
|
100
98
|
ensureDir(reisDir);
|
|
101
99
|
ensureDir(templatesDir);
|
|
102
100
|
ensureDir(subagentsDir);
|
|
103
101
|
|
|
104
|
-
console.log(chalk.green('ā Directories created\n'));
|
|
105
|
-
|
|
106
102
|
// Copy files
|
|
107
|
-
console.log(chalk.cyan('š¦ Installing files...'));
|
|
108
|
-
|
|
109
103
|
const packageDir = path.join(__dirname, '..');
|
|
110
104
|
let fileCount = 0;
|
|
111
105
|
|
|
112
106
|
// Copy documentation files from docs/ to ~/.rovodev/reis/
|
|
113
107
|
const docsDir = path.join(packageDir, 'docs');
|
|
114
108
|
if (fs.existsSync(docsDir)) {
|
|
115
|
-
console.log(chalk.gray(' Copying documentation...'));
|
|
116
109
|
const docFiles = fs.readdirSync(docsDir);
|
|
117
110
|
docFiles.forEach(file => {
|
|
118
111
|
const src = path.join(docsDir, file);
|
|
@@ -126,7 +119,6 @@ async function performInstallation() {
|
|
|
126
119
|
// Copy templates from templates/ to ~/.rovodev/reis/templates/
|
|
127
120
|
const templatesSourceDir = path.join(packageDir, 'templates');
|
|
128
121
|
if (fs.existsSync(templatesSourceDir)) {
|
|
129
|
-
console.log(chalk.gray(' Copying templates...'));
|
|
130
122
|
const count = copyDirectory(templatesSourceDir, templatesDir);
|
|
131
123
|
fileCount += count;
|
|
132
124
|
}
|
|
@@ -134,7 +126,6 @@ async function performInstallation() {
|
|
|
134
126
|
// Copy subagents from subagents/ to ~/.rovodev/subagents/
|
|
135
127
|
const subagentsSourceDir = path.join(packageDir, 'subagents');
|
|
136
128
|
if (fs.existsSync(subagentsSourceDir)) {
|
|
137
|
-
console.log(chalk.gray(' Copying subagents...'));
|
|
138
129
|
const subagentFiles = fs.readdirSync(subagentsSourceDir);
|
|
139
130
|
subagentFiles.forEach(file => {
|
|
140
131
|
const src = path.join(subagentsSourceDir, file);
|
|
@@ -236,22 +227,9 @@ function copyDirectory(srcDir, destDir) {
|
|
|
236
227
|
|
|
237
228
|
// Show success message with next steps
|
|
238
229
|
function showSuccessMessage(fileCount, reisDir, templatesDir, subagentsDir) {
|
|
239
|
-
console.log(chalk.green
|
|
240
|
-
|
|
241
|
-
console.log(chalk.white.
|
|
242
|
-
console.log(chalk.cyan(` ⢠Documentation: ${reisDir}/`));
|
|
243
|
-
console.log(chalk.cyan(` ⢠Templates: ${templatesDir}/`));
|
|
244
|
-
console.log(chalk.cyan(` ⢠Subagents: ${subagentsDir}/`));
|
|
245
|
-
console.log(chalk.gray(` (${fileCount} files total)\n`));
|
|
246
|
-
|
|
247
|
-
console.log(chalk.white.bold('š Get started:'));
|
|
248
|
-
console.log(chalk.cyan(' reis help ') + chalk.gray('# Show all commands'));
|
|
249
|
-
console.log(chalk.cyan(' reis new [your idea] ') + chalk.gray('# Start a new project'));
|
|
250
|
-
console.log(chalk.cyan(' reis map ') + chalk.gray('# Map existing codebase'));
|
|
251
|
-
console.log('');
|
|
252
|
-
|
|
253
|
-
console.log(chalk.white.bold('š Documentation: ') + chalk.cyan(path.join(reisDir, 'README.md')));
|
|
254
|
-
console.log('');
|
|
230
|
+
console.log(chalk.green('\nā Installation complete\n'));
|
|
231
|
+
console.log(chalk.white(` Installed ${fileCount} files to ~/.rovodev/`));
|
|
232
|
+
console.log(chalk.white(` Run ${chalk.cyan('reis help')} to get started\n`));
|
|
255
233
|
}
|
|
256
234
|
|
|
257
235
|
// Run installation if called directly
|
package/package.json
CHANGED