create-fleetbo-project 1.2.31 → 1.2.32

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.
@@ -22,7 +22,10 @@ const os = require('os');
22
22
 
23
23
  const args = process.argv.slice(2);
24
24
  const command = args[0];
25
- const GENERATOR_COMMANDS = ['page', 'g', 'generate'];
25
+
26
+
27
+ const GENERATOR_COMMANDS = ['page', 'g', 'generate', 'android', 'ios'];
28
+
26
29
  if (GENERATOR_COMMANDS.includes(command)) {
27
30
  try {
28
31
  require('./page.js');
@@ -42,8 +45,8 @@ if (GENERATOR_COMMANDS.includes(command)) {
42
45
  const UPDATE_NETWORK_URL = 'https://us-central1-myapp-259bf.cloudfunctions.net/updateDeveloperNetwork';
43
46
  const PORT = 3000;
44
47
 
45
-
46
48
  const NULL_DEV = process.platform === 'win32' ? '>nul 2>&1' : '2>/dev/null';
49
+
47
50
  function killProcessOnPort(port) {
48
51
  try {
49
52
  if (process.platform !== 'win32') {
@@ -130,6 +133,7 @@ async function runDevEnvironment() {
130
133
  console.log(\`\\n[Fleetbo] 🔗 Local Server Ready. Establishing Secure Uplink...\`);
131
134
 
132
135
  const npxCmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
136
+
133
137
  const uplink = spawn(npxCmd, ['cloudflared', 'tunnel', '--url', \`http://localhost:\${PORT}\`], { shell: true });
134
138
 
135
139
  uplink.stderr.on('data', (chunk) => {
@@ -156,6 +160,7 @@ async function runDevEnvironment() {
156
160
  runDevEnvironment();
157
161
  `;
158
162
 
163
+ // --- LOGIQUE D'INSTALLATION (INCHANGÉE) ---
159
164
  const args = process.argv.slice(2);
160
165
  const projectNameArg = args.find(arg => !arg.startsWith('--'));
161
166
  const tokenArg = args.find(arg => arg.startsWith('--token='));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {