create-bluecopa-react-app 1.0.20 → 1.0.22

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.
@@ -446,12 +446,6 @@ async function initializeGit(targetDir, appName) {
446
446
  try {
447
447
  process.chdir(targetDir);
448
448
 
449
- // Initialize git repository
450
- execSync("git init", { stdio: "ignore" });
451
-
452
- // Create initial commit
453
- execSync("git add .", { stdio: "ignore" });
454
- execSync(`git commit -m "Initial commit: ${appName}"`, { stdio: "ignore" });
455
449
  // Create a .gitignore file if it does not exist
456
450
  const gitignoreContent = `
457
451
  node_modules
@@ -471,8 +465,13 @@ pnpm-debug.log*
471
465
  const gitignorePath = path.join(targetDir, ".gitignore");
472
466
  if (!fs.existsSync(gitignorePath)) {
473
467
  fs.writeFileSync(gitignorePath, gitignoreContent.trimStart());
474
- execSync("git add .gitignore", { stdio: "ignore" });
475
468
  }
469
+
470
+ // Initialize git repository
471
+ execSync("git init", { stdio: "ignore" });
472
+ // Create initial commit
473
+ execSync("git add .", { stdio: "ignore" });
474
+ execSync(`git commit -m "Initial commit: ${appName}"`, { stdio: "ignore" });
476
475
  } catch (error) {
477
476
  // Git initialization is optional, don't fail the whole process
478
477
  console.log(chalk.yellow("Warning: Failed to initialize git repository"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bluecopa-react-app",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "CLI tool to create bluecopa React applications",
5
5
  "type": "module",
6
6
  "main": "./bin/create-bluecopa-react-app.js",
@@ -60,6 +60,11 @@ const data = {
60
60
  title: "Statements",
61
61
  url: "/statements",
62
62
  icon: IconFileDescription,
63
+ },
64
+ {
65
+ title: "API Test",
66
+ url: "/apitest",
67
+ icon: IconPlug,
63
68
  }
64
69
  ],
65
70
  navClouds: [