fleetbo-cockpit-cli 1.0.198 → 1.0.200

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.
Files changed (2) hide show
  1. package/cli.js +10 -10
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -24,7 +24,7 @@ const UPDATE_NETWORK_URL = 'https://updatedevelopernetwork-jqycakhlxa-uc.a.run.a
24
24
  const ALEX_ENGINE_URL = "https://generatenativemodule-jqycakhlxa-uc.a.run.app";
25
25
  const INJECT_DEPS_URL = "https://savegeneratedfile-jqycakhlxa-uc.a.run.app";
26
26
  const CACHE_URL = "https://getmodulecache-jqycakhlxa-uc.a.run.app";
27
- const PORT = 3000;
27
+ const PORT = 8888;
28
28
 
29
29
  let uplinkProcess = null;
30
30
  const args = process.argv.slice(2);
@@ -37,7 +37,7 @@ process.env.DOTENV_SILENT = 'true';
37
37
  const envPath = path.join(process.cwd(), '.env');
38
38
 
39
39
  if (!fs.existsSync(envPath)) {
40
- console.error('\x1b[31m%s\x1b[0m', '\n❌ Error: Configuration file (.env) not found.');
40
+ console.error('\x1b[31m%s\x1b[0m', '\nError: Configuration file (.env) not found.');
41
41
  console.error('\x1b[90m%s\x1b[0m', 'Make sure you are in a Fleetbo project directory.\n');
42
42
  process.exit(1);
43
43
  }
@@ -303,8 +303,8 @@ if (command === 'alex') {
303
303
 
304
304
  if (partialPatchMatch && !patchMatch) {
305
305
  console.log(`\n\x1b[31m⛔ REJECTED: Ambiguous command.\x1b[0m The platform is mandatory to avoid any Metal corruption.`);
306
- console.log(`\x1b[36m Type:\x1b[0m patch module ${partialPatchMatch[1]} android`);
307
- console.log(`\x1b[36m Or:\x1b[0m patch module ${partialPatchMatch[1]} ios`);
306
+ console.log(`\x1b[36m Type:\x1b[0mpatch module ${partialPatchMatch[1]} android`);
307
+ console.log(`\x1b[36m Or:\x1b[0mpatch module ${partialPatchMatch[1]} ios`);
308
308
  return;
309
309
  }
310
310
 
@@ -590,7 +590,7 @@ if (command === 'alex') {
590
590
  mockFileName: mockFileName,
591
591
  mockCode: mockCode,
592
592
  config_offload: config_offload || { dependencies: [], permissions: [] },
593
- dataSchema: dataSchema || null, // 👈 LA LIGNE MAGIQUE
593
+ dataSchema: dataSchema || null,
594
594
  uiSchema: uiSchema || null
595
595
  }
596
596
  });
@@ -604,12 +604,12 @@ if (command === 'alex') {
604
604
  console.log('');
605
605
 
606
606
  // Astuce 1 : Le Patch manuel
607
- console.log(` \x1b[90m If you manually edit the native code, sync it to the Cloud OS:\x1b[0m`);
608
- console.log(` \x1b[33m patch module\x1b[0m \x1b[36m${moduleName}\x1b[0m \x1b[33mandroid\x1b[0m \x1b[90m(or ios)\x1b[0m`);
607
+ console.log(`\x1b[90m If you manually edit the native code, sync it to the Cloud OS:\x1b[0m`);
608
+ console.log(`\x1b[33m patch module\x1b[0m \x1b[36m${moduleName}\x1b[0m \x1b[33mandroid\x1b[0m \x1b[90m(or ios)\x1b[0m`);
609
609
 
610
610
  // Astuce 2 : L'éradication
611
- console.log(` \x1b[90m To eradicate this module later, open a new terminal and type:\x1b[0m`);
612
- console.log(` \x1b[31m npm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
611
+ console.log(`\x1b[90m To eradicate this module later, open a new terminal and type:\x1b[0m`);
612
+ console.log(`\x1b[31m npm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
613
613
 
614
614
 
615
615
  } else if (aiData.status === 'success' && !aiData.moduleData) {
@@ -1183,7 +1183,7 @@ else {
1183
1183
  const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
1184
1184
 
1185
1185
  // Lancement agnostique du serveur de dev (React, Vue, etc.)
1186
- const devServer = spawn(`${npmCmd} run dev --silent -- --host 127.0.0.1`, {
1186
+ const devServer = spawn(`${npmCmd} run dev --silent -- --host 127.0.0.1 --port ${PORT}`, {
1187
1187
  stdio: ['ignore', 'pipe', 'pipe'],
1188
1188
  shell: true,
1189
1189
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",