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 : Cloner le dépôt avec Git (plus robuste que le zip)
73
- console.log(' [1/5] 📥 Clonage du template via Git...');
74
- execSync(`git clone --depth 1 --branch ${branchName} ${repoGitUrl} "${projectName}"`, { stdio: 'inherit' });
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] ✅ Template cloné. Configuration du projet...');
78
+ console.log(' [2/5] ✅ Structure du projet initialisée. Configuration en cours...');
78
79
  process.chdir(projectDir);
79
80
 
80
- // Supprimer le dossier .git pour commencer avec un projet propre
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {