create-fleetbo-project 1.0.37 → 1.0.39
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.
|
@@ -69,15 +69,16 @@ async function setupProject() {
|
|
|
69
69
|
const projectDir = path.join(process.cwd(), projectName);
|
|
70
70
|
|
|
71
71
|
try {
|
|
72
|
-
// Étape 1 :
|
|
73
|
-
console.log(' [1/5] 📥
|
|
74
|
-
|
|
72
|
+
// Étape 1 : Télécharger la structure de base du projet
|
|
73
|
+
console.log(' [1/5] 📥 Initialisation de la structure du projet...');
|
|
74
|
+
// On redirige la sortie d'erreur (stderr) vers null pour masquer les messages de progression de Git
|
|
75
|
+
execSync(`git clone --depth 1 --branch ${branchName} ${repoGitUrl} "${projectName}" 2> /dev/null`);
|
|
75
76
|
|
|
76
77
|
// Étape 2 : Se déplacer dans le dossier du projet et nettoyer
|
|
77
|
-
console.log(' [2/5] ✅
|
|
78
|
+
console.log(' [2/5] ✅ Structure du projet initialisée. Configuration en cours...');
|
|
78
79
|
process.chdir(projectDir);
|
|
79
80
|
|
|
80
|
-
// Supprimer
|
|
81
|
+
// Supprimer l'historique Git pour commencer avec un projet propre
|
|
81
82
|
fs.rmSync(path.join(projectDir, '.git'), { recursive: true, force: true });
|
|
82
83
|
|
|
83
84
|
// Étape 3 : Récupération des clés de projet
|