chore: enable automatic git init

This commit is contained in:
2025-07-01 22:34:22 -04:00
parent 50654cf10f
commit 730cdcc7ef
2 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
- **Atomic Design Structure**: Creates an atomic design folder structure to organize your components. - **Atomic Design Structure**: Creates an atomic design folder structure to organize your components.
- **Redux Setup**: Sets up Redux with slices, middleware, and selectors for state management. - **Redux Setup**: Sets up Redux with slices, middleware, and selectors for state management.
- **Test Suite**: Installs Jest and Playwright for comprehensive testing. - **Test Suite**: Installs Jest and Playwright for comprehensive testing.
- **Automatic Git Initialization**: Initializes a Git repository for your project during setup.
## Installation ## Installation
@@ -37,6 +38,8 @@ npx react-crafter my-new-app
Replace `my-new-app` with the name of your project. Replace `my-new-app` with the name of your project.
The setup process automatically runs `git init` so your project starts with version control enabled.
### Example: ### Example:
```bash ```bash

View File

@@ -42,7 +42,7 @@ async function initProject(projectDirectory, userInput, options) {
} }
// Set up Git // Set up Git
//setupGit(options); setupGit(options);
// Install additional dependencies // Install additional dependencies
installDependencies(userInput, options); installDependencies(userInput, options);
// Install additional dev dependencies // Install additional dev dependencies