fleetbo-cockpit-cli 1.0.85 → 1.0.86
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/cli.js +4 -9
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -130,7 +130,6 @@ const injectRouteIntoAppJs = (moduleName, subPath = '') => {
|
|
|
130
130
|
}
|
|
131
131
|
if (modified) {
|
|
132
132
|
fs.writeFileSync(appJsPath, content);
|
|
133
|
-
console.log(` \x1b[32m[Routed]\x1b[0m ${moduleName} injected into App.js safely.`);
|
|
134
133
|
}
|
|
135
134
|
|
|
136
135
|
return modified;
|
|
@@ -386,14 +385,13 @@ if (command === 'alex') {
|
|
|
386
385
|
if (moduleName.length > 40) moduleName = moduleName.substring(0, 40) + "...";
|
|
387
386
|
}
|
|
388
387
|
|
|
389
|
-
console.log(
|
|
388
|
+
console.log(`\n \x1b[90mArchitecting: ${moduleName}\x1b[0m`);
|
|
390
389
|
|
|
391
390
|
const writeFile = (dir, name, content) => {
|
|
392
391
|
const fullPath = path.join(process.cwd(), dir);
|
|
393
392
|
const filePath = path.join(fullPath, name);
|
|
394
393
|
if (!fs.existsSync(fullPath)) fs.mkdirSync(fullPath, { recursive: true });
|
|
395
394
|
fs.writeFileSync(filePath, content);
|
|
396
|
-
console.log(` \x1b[32m[Written]\x1b[0m ${dir}${name}`);
|
|
397
395
|
};
|
|
398
396
|
|
|
399
397
|
// --- SUPPRIME CE BLOC ENTIER ---
|
|
@@ -419,14 +417,11 @@ if (command === 'alex') {
|
|
|
419
417
|
const pageName = mockFileName.replace('.jsx', '');
|
|
420
418
|
writeFile('src/app/mocks/', mockFileName, mockCode);
|
|
421
419
|
const injected = injectRouteIntoAppJs(pageName, 'mocks');
|
|
422
|
-
if (injected) {
|
|
423
|
-
console.log(` \x1b[32m[Routed]\x1b[0m App.js -> /mocks/${pageName.toLowerCase()}`);
|
|
424
|
-
}
|
|
425
420
|
}
|
|
426
421
|
|
|
427
422
|
// --- KERNEL SYNCHRONIZATION ---
|
|
428
423
|
const depsCount = config_offload?.dependencies?.length || 0;
|
|
429
|
-
process.stdout.write(` \x1b[33m[
|
|
424
|
+
process.stdout.write(` \x1b[33m[OS Sync]\x1b[0m Archiving ${moduleName} to OS (${depsCount} libs)...`);
|
|
430
425
|
|
|
431
426
|
try {
|
|
432
427
|
await axios.post(INJECT_DEPS_URL, {
|
|
@@ -677,7 +672,7 @@ else if (command === 'android' || command === 'ios') {
|
|
|
677
672
|
const targetUrl = platform === 'android' ? ANDROID_BUILD_URL : IOS_BUILD_URL;
|
|
678
673
|
|
|
679
674
|
console.log(`\n\x1b[36m⚡ FLEETBO ${platform.toUpperCase()} PROPULSION\x1b[0m`);
|
|
680
|
-
console.log(`\x1b[90m ${nativeFileCount}
|
|
675
|
+
console.log(`\x1b[90m ${nativeFileCount} fleetbo module(s) detected\x1b[0m\n`);
|
|
681
676
|
|
|
682
677
|
try {
|
|
683
678
|
// ==========================================================
|
|
@@ -732,7 +727,7 @@ else if (command === 'android' || command === 'ios') {
|
|
|
732
727
|
}
|
|
733
728
|
|
|
734
729
|
// Étape 2: Créer le ZIP
|
|
735
|
-
console.log(`\n\x1b[33m[2/3]\x1b[0m Packaging bundle +
|
|
730
|
+
console.log(`\n\x1b[33m[2/3]\x1b[0m Packaging bundle + fleetbo modules...`);
|
|
736
731
|
|
|
737
732
|
const zipBuffer = await new Promise((resolve, reject) => {
|
|
738
733
|
const chunks = [];
|