create-bluecopa-react-app 1.0.20 → 1.0.21
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.
- package/bin/create-bluecopa-react-app.js +6 -7
- package/package.json +1 -1
- package/templates/latest/app/components/app-sidebar.tsx +5 -0
- package/templates/latest/app/routes/apitest.tsx +1083 -0
- package/templates/latest/app/routes/comments.tsx +335 -60
- package/templates/latest/app/routes.tsx +2 -0
- package/templates/latest/dist/assets/{__federation_expose_App-CcOhEUCE.js → __federation_expose_App-rkiN5ftu.js} +1 -1
- package/templates/latest/dist/assets/{client-uh-HfYnI.js → client-CjZD2orr.js} +5762 -4345
- package/templates/latest/dist/assets/{index-C1IOBHtM.js → index-BIZxzud9.js} +1 -1
- package/templates/latest/dist/assets/remoteEntry.css +130 -0
- package/templates/latest/dist/assets/remoteEntry.js +1 -1
- package/templates/latest/dist/index.html +2 -2
- package/templates/latest/package-lock.json +82 -8
- package/templates/latest/package.json +2 -1
|
@@ -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