Cleanup
The cleanup
command removes the example task manager app and prepares your project for development.
Usage
npx create-jaseci-app cleanup
What it Does
This command performs the following actions:
- Removes the example task manager module
- Removes example task manager files
- Creates a clean home page
- Cleans up store configuration
When to Use
Use this command when you want to:
- Start fresh with your own modules
- Remove the example code
- Clean up the project structure
Example
# Clean up the example app
npx create-jaseci-app cleanup
After Cleanup
After running the cleanup command:
- Your project will have a clean structure
- The home page will be empty and ready for customization
- The Redux store will be configured but empty
- You can start adding your own modules
Project Structure After Cleanup
my-app/
├── src/
│ ├── app/ # Next.js app directory
│ │ └── page.tsx # Clean home page
│ ├── components/ # Shared components
│ ├── modules/ # Empty modules directory
│ ├── store/ # Clean store configuration
│ └── types/ # TypeScript type definitions
├── public/ # Static assets
└── tests/ # Test files
Best Practices
-
Module Development
- Start with a clear module structure
- Follow the established patterns
- Keep modules focused and cohesive
-
State Management
- Add only necessary state
- Use proper TypeScript types
- Follow Redux best practices
-
Component Organization
- Create reusable components
- Follow the component hierarchy
- Use proper naming conventions
Troubleshooting
Common Issues
-
Cleanup Fails
- Ensure you're in the project directory
- Check file permissions
- Verify project structure
-
Missing Files
- Check if files were properly removed
- Verify new files were created
- Check for any error messages
Getting Help
If you encounter any issues:
- Check the documentation
- Search existing issues
- Create a new issue if needed