create-fleetbo-project 1.2.88 → 1.2.91

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.
@@ -117,23 +117,13 @@ async function setupProject() {
117
117
 
118
118
  process.chdir(projectDir);
119
119
 
120
- console.log(' [3/8] Standardizing Architecture (src/app)...');
120
+ console.log(' [3/8] Standardizing Architecture (Vite)...');
121
+ // Pour Vite, on s'assure juste que l'arborescence de base est correcte.
122
+ // On retire les vieux renommages CRA (App.js) pour éviter de casser App.jsx
121
123
  const oldPath = path.join(projectDir, 'src/pages');
122
124
  const newPath = path.join(projectDir, 'src/app');
123
-
124
125
  if (fs.existsSync(oldPath) && !fs.existsSync(newPath)) {
125
- try {
126
- fs.renameSync(oldPath, newPath);
127
- const appJsPath = path.join(projectDir, 'src/App.js');
128
- if (fs.existsSync(appJsPath)) {
129
- let appContent = fs.readFileSync(appJsPath, 'utf8');
130
- appContent = appContent.replace(/from "\.\/pages\//g, 'from "./app/');
131
- appContent = appContent.replace(/from '\.\/pages\//g, "from './app/");
132
- fs.writeFileSync(appJsPath, appContent);
133
- }
134
- } catch (err) {
135
- console.warn(' Architecture migration warning:', err.message);
136
- }
126
+ try { fs.renameSync(oldPath, newPath); } catch (err) {}
137
127
  }
138
128
 
139
129
  console.log(' [4/8] Authenticating with Fleetbo Cloud...');
@@ -141,10 +131,10 @@ async function setupProject() {
141
131
  if (!keys.enterpriseId) throw new Error("Invalid keys.");
142
132
 
143
133
  console.log(' [5/8] Configuring environment...');
144
- const envContent = `FLEETBO_APP_DB_KEY=${keys.fleetboDBKey}
145
- FLEETBO_APP_ENTERPRISE_ID=${keys.enterpriseId}
146
- FLEETBO_KEY_APP=${projectName}
147
- FLEETBO_APP_TESTER_EMAIL=${userEmailArg}`;
134
+ const envContent = `VITE_FLEETBO_DB_KEY=${keys.fleetboDBKey}
135
+ VITE_FLEETBO_ENTERPRISE_ID=${keys.enterpriseId}
136
+ VITE_FLEETBO_KEY_APP=${projectName}
137
+ VITE_FLEETBO_TESTER_EMAIL=${userEmailArg}`;
148
138
 
149
139
  fs.writeFileSync(path.join(projectDir, '.env'), envContent, 'utf8');
150
140
 
@@ -192,9 +182,20 @@ yarn-error.log*
192
182
  }
193
183
  }
194
184
 
195
- console.log('\n \x1b[32m✓ [Fleetbo] Project successfully created!\x1b[0m');
196
- console.log(`\n Run: cd ${projectName} && npm run fleetbo`);
197
- console.log('\n \x1b[32m✓ [Fleetbo] To start architecting with Alex, run: npm run fleetbo alex\x1b[0m');
185
+ // ==========================================
186
+ // 🎯 L'ANNONCE DE SUCCÈS ET LE MINI-TUTO
187
+ // ==========================================
188
+ console.log('\n \x1b[1;32m✓ [Fleetbo] Project successfully created!\x1b[0m');
189
+ console.log(`\n Installation path: \x1b[36m${projectDir}\x1b[0m\n`);
190
+
191
+ console.log(' \x1b[1;33m🚀 NEXT STEPS (Mini-Tutorial):\x1b[0m');
192
+ console.log(' --------------------------------------------------');
193
+ console.log(` 1️ Navigate to your project : \x1b[36mcd ${projectName}\x1b[0m`);
194
+ console.log(' 2️ Launch the Fleetbo Engine : \x1b[36mnpm run fleetbo\x1b[0m');
195
+ console.log(' 3️ Summon Alex (AI Architect): \x1b[36mnpm run fleetbo alex\x1b[0m');
196
+ console.log(' --------------------------------------------------');
197
+ console.log('\n \x1b[2mHappy coding! Build something amazing without limits.\x1b[0m\n');
198
+
198
199
  console.log('');
199
200
 
200
201
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.88",
3
+ "version": "1.2.91",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {
@@ -16,12 +16,14 @@
16
16
  "yargs-parser": "^21.1.1"
17
17
  },
18
18
  "keywords": [
19
- "FLeetbo",
19
+ "Fleetbo",
20
20
  "JavaScript",
21
21
  "Pilots",
22
22
  "fullstack",
23
+ "OS",
24
+ "Cloud",
23
25
  "fleetbo"
24
26
  ],
25
- "author": "Jean Aubain Tcheuffa",
27
+ "author": "Jean Aubain NOUCTI",
26
28
  "license": "ISC"
27
29
  }