create-fleetbo-project 1.2.90 → 1.2.92
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/install-react-template.js +19 -9
- package/package.json +1 -1
|
@@ -153,10 +153,9 @@ yarn-error.log*
|
|
|
153
153
|
fs.writeFileSync(path.join(projectDir, '.gitignore'), gitignoreContent, 'utf8');
|
|
154
154
|
|
|
155
155
|
console.log(' [7/8] Installing dependencies...');
|
|
156
|
-
execSync('npm install', { stdio: 'inherit' });
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
execSync('npm install cloudflared --save-dev', { stdio: 'ignore' });
|
|
156
|
+
execSync('npm install --no-audit --no-fund --silent', { stdio: 'inherit' });
|
|
157
|
+
|
|
158
|
+
execSync('npm install cloudflared --save-dev --no-audit --no-fund --silent', { stdio: 'ignore' });
|
|
160
159
|
|
|
161
160
|
console.log(' [8/8] Finalizing setup...');
|
|
162
161
|
const packageJsonPath = path.join(projectDir, 'package.json');
|
|
@@ -167,12 +166,12 @@ yarn-error.log*
|
|
|
167
166
|
packageJson.scripts = {
|
|
168
167
|
...packageJson.scripts,
|
|
169
168
|
"fleetbo": "npx fleetbo-cockpit-cli@latest",
|
|
170
|
-
"dev": "
|
|
169
|
+
"dev": "vite",
|
|
170
|
+
"build": "vite build"
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8');
|
|
174
174
|
|
|
175
|
-
// Supprimer le dossier scripts local (car on utilise le CLI npm)
|
|
176
175
|
const scriptsDir = path.join(projectDir, 'scripts');
|
|
177
176
|
if (fs.existsSync(scriptsDir)) {
|
|
178
177
|
try {
|
|
@@ -182,9 +181,20 @@ yarn-error.log*
|
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
// ==========================================
|
|
185
|
+
// 🎯 L'ANNONCE DE SUCCÈS ET LE MINI-TUTO
|
|
186
|
+
// ==========================================
|
|
187
|
+
console.log('\n \x1b[1;32m✓ [Fleetbo] Project successfully created!\x1b[0m');
|
|
188
|
+
console.log(`\n Installation path: \x1b[36m${projectDir}\x1b[0m\n`);
|
|
189
|
+
|
|
190
|
+
console.log(' \x1b[1;33m🚀 NEXT STEPS (Mini-Tutorial):\x1b[0m');
|
|
191
|
+
console.log(' --------------------------------------------------');
|
|
192
|
+
console.log(` 1️ Navigate to your project : \x1b[36mcd ${projectName}\x1b[0m`);
|
|
193
|
+
console.log(' 2️ Launch the Fleetbo Engine : \x1b[36mnpm run fleetbo\x1b[0m');
|
|
194
|
+
console.log(' 3️ Summon Alex (AI Architect): \x1b[36mnpm run fleetbo alex\x1b[0m');
|
|
195
|
+
console.log(' --------------------------------------------------');
|
|
196
|
+
console.log('\n \x1b[2mHappy coding! Build something amazing without limits.\x1b[0m\n');
|
|
197
|
+
|
|
188
198
|
console.log('');
|
|
189
199
|
|
|
190
200
|
} catch (error) {
|