vako 1.3.7 → 1.3.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/bin/commands/setup-executor.js +21 -4
- package/bin/vako.js +1 -1
- package/package.json +1 -1
|
@@ -74,8 +74,13 @@ class SetupExecutor {
|
|
|
74
74
|
if (this.config.install) {
|
|
75
75
|
currentStep++;
|
|
76
76
|
const spinner8 = createSpinner(`[${currentStep}/${totalSteps}] 📥 Installing dependencies...`).start();
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
try {
|
|
78
|
+
await this.installDependencies();
|
|
79
|
+
spinner8.success({ text: `📥 Dependencies installed successfully` });
|
|
80
|
+
} catch (error) {
|
|
81
|
+
// Ne pas faire planter le setup si l'installation échoue
|
|
82
|
+
spinner8.warning({ text: `📥 Dependencies installation skipped (run 'npm install' manually)` });
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
} catch (error) {
|
|
@@ -327,12 +332,24 @@ module.exports = router;
|
|
|
327
332
|
|
|
328
333
|
async installDependencies() {
|
|
329
334
|
try {
|
|
335
|
+
// Afficher un message informatif
|
|
336
|
+
console.log(chalk.gray(' Installing dependencies... This may take a few minutes.'));
|
|
337
|
+
|
|
330
338
|
execSync('npm install', {
|
|
331
339
|
cwd: this.projectPath,
|
|
332
|
-
stdio: 'pipe'
|
|
340
|
+
stdio: 'pipe',
|
|
341
|
+
timeout: 300000 // 5 minutes timeout
|
|
333
342
|
});
|
|
343
|
+
|
|
344
|
+
console.log(chalk.green(' ✓ Dependencies installed successfully'));
|
|
334
345
|
} catch (error) {
|
|
335
|
-
|
|
346
|
+
// Ne pas faire planter le setup si l'installation échoue
|
|
347
|
+
console.log(chalk.yellow(' ⚠ Installation des dépendances échouée'));
|
|
348
|
+
console.log(chalk.gray(' Vous pouvez installer manuellement avec: npm install'));
|
|
349
|
+
console.log(chalk.gray(' Le projet a été créé avec succès, vous pouvez continuer.'));
|
|
350
|
+
|
|
351
|
+
// Ne pas throw l'erreur pour ne pas faire planter le setup
|
|
352
|
+
// L'utilisateur peut installer manuellement après
|
|
336
353
|
}
|
|
337
354
|
}
|
|
338
355
|
|
package/bin/vako.js
CHANGED
package/package.json
CHANGED