create-fleetbo-project 1.0.46 → 1.1.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
|
|
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
|
|
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
|
-
|
|
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
|