create-fleetbo-project 1.2.91 → 1.2.93

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.
@@ -152,11 +152,13 @@ yarn-error.log*
152
152
  `;
153
153
  fs.writeFileSync(path.join(projectDir, '.gitignore'), gitignoreContent, 'utf8');
154
154
 
155
+ const npmrcContent = `loglevel=error\nupdate-notifier=false\n`;
156
+ fs.writeFileSync(path.join(projectDir, '.npmrc'), npmrcContent, 'utf8');
157
+
155
158
  console.log(' [7/8] Installing dependencies...');
156
- execSync('npm install', { stdio: 'inherit' });
157
-
158
- // Installer cloudflared comme devDependency (nécessaire pour le tunnel)
159
- execSync('npm install cloudflared --save-dev', { stdio: 'ignore' });
159
+ execSync('npm install --no-audit --no-fund --silent', { stdio: 'inherit' });
160
+
161
+ execSync('npm install cloudflared --save-dev --no-audit --no-fund --silent', { stdio: 'ignore' });
160
162
 
161
163
  console.log(' [8/8] Finalizing setup...');
162
164
  const packageJsonPath = path.join(projectDir, 'package.json');
@@ -166,13 +168,13 @@ yarn-error.log*
166
168
  // Configuration pour utiliser le package NPM centralisé
167
169
  packageJson.scripts = {
168
170
  ...packageJson.scripts,
169
- "fleetbo": "npx fleetbo-cockpit-cli@latest",
170
- "dev": "npx fleetbo-cockpit-cli@latest"
171
+ "fleetbo": "@npx -y fleetbo-cockpit-cli@latest",
172
+ "dev": "vite",
173
+ "build": "vite build"
171
174
  };
172
175
 
173
176
  fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8');
174
177
 
175
- // Supprimer le dossier scripts local (car on utilise le CLI npm)
176
178
  const scriptsDir = path.join(projectDir, 'scripts');
177
179
  if (fs.existsSync(scriptsDir)) {
178
180
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.91",
3
+ "version": "1.2.93",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {