create-fleetbo-project 1.0.46 → 1.2.0

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.
@@ -19,7 +19,7 @@ const projectNameArg = args.find(arg => !arg.startsWith('--'));
19
19
  const tokenArg = args.find(arg => arg.startsWith('--token='));
20
20
 
21
21
  if (!projectNameArg) {
22
- console.error('\n Erreur : Veuillez spécifier un nom pour votre projet.');
22
+ console.error('\n Error : Please specify a name for your project.');
23
23
  console.log(' Usage: npx create-fleetbo-project <nom-du-projet> --token=<votre-token>');
24
24
  process.exit(1);
25
25
  }
@@ -27,7 +27,7 @@ if (!projectNameArg) {
27
27
  const bootstrapToken = tokenArg ? tokenArg.split('=')[1] : null;
28
28
 
29
29
  if (!bootstrapToken) {
30
- console.error('\n Erreur : Le token d\'amorçage est manquant.');
30
+ console.error('\n Error : "The bootstrap token is missing.');
31
31
  console.log(' Usage: npx create-fleetbo-project <nom-du-projet> --token=<votre-token>');
32
32
  process.exit(1);
33
33
  }
@@ -90,8 +90,7 @@ async function setupProject() {
90
90
 
91
91
  // Étape 4 : Configuration du fichier .env
92
92
  console.log(' [4/5] .env file configured successfully.');
93
- //const envContent = `REACT_APP_FLEETBO_DB_KEY=${keys.fleetboDBKey}\nREACT_APP_ENTERPRISE_ID=${keys.enterpriseId}\n`; //99b426483d543b042209671dd53fb18
94
- const envContent = `REACT_APP_FLEETBO_DB_KEY=${keys.fleetboDBKey}\nREACT_APP_ENTERPRISE_ID=99b426483d543b042209671dd53fb18\n`;
93
+ const envContent = `REACT_APP_FLEETBO_DB_KEY=${keys.fleetboDBKey}\nREACT_APP_ENTERPRISE_ID=99b426483d543b042209671dd53fb18\nREACT_KEY_APP=${projectName}\n`;
95
94
  fs.writeFileSync(path.join(projectDir, '.env'), envContent, 'utf8');
96
95
 
97
96
  // Étape 5 : Installation des dépendances
@@ -107,7 +106,7 @@ async function setupProject() {
107
106
  console.log('\n🚀 Your Fleetbo project is ready !');
108
107
  console.log(`\nTo get started, run the following commands :`);
109
108
  console.log(` cd ${projectName}`);
110
- console.log(` npm start`);
109
+ console.log(` npx fleetbo start`);
111
110
 
112
111
  } catch (error) {
113
112
  console.error('\n An error occurred while creating the project :', error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.0.46",
3
+ "version": "1.2.0",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {