namaste-react v1.0.5
Namaste React š
Welcome to Namaste React! A custom CLI tool to create a React project with a specific structure, tailored to your needs. Simplify your React project setup with just one command! š
Features āØ
- š Quick Setup: Create React projects with ease and speed.
- šØ Customizable Templates: Choose between JavaScript or TypeScript, and CSS or Tailwind CSS.
- š ļø Flexible Project Structure: Get started with a predefined structure that suits your development needs.
- š§āš» User-Friendly Prompts: Simple and intuitive prompts to guide you through the setup process.
Getting Started š ļø
Installation
To get started with Namaste React, you can run the package using npx
:
npx namaste-react <project-name>
How It Works
Run the Command: Use
npx namaste-react <project-name>
.Answer Prompts:
- Choose your preferred JavaScript language: JavaScript or TypeScript.
- Select your CSS framework: Default CSS or Tailwind CSS.
- Project Creation: Your project will be created with the selected options, ready for development.
Example
npx namaste-react my-new-app
Then follow the prompts to customize your new React project! š ļø
Project Structure šļø
The project will be created with a structure based on your choices. Here's an overview:
my-new-app/
āāā src/ # Main source code
ā āāā components/ # Reusable components
ā āāā styles.css # CSS/Tailwind styles
ā āāā index.js # React entry point
ā āāā index.html # Main HTML file
ā
āāā package.json # Project configuration
āāā README.md # Project documentation
Templates š
Namaste React offers customizable templates based on your choices:
- JavaScript + Default CSS
- JavaScript + Tailwind CSS
- TypeScript + Default CSS
- TypeScript + Tailwind CSS
These templates are stored within the package and copied over during project creation.
Commands š
- Start your project: Navigate into your project directory and run:
npm install
npm start
- Initialize Git (optional): The CLI automatically initializes a Git repository for you!
Contributing š¤
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated!
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Contact š¬
Prahlad Inala - Your LinkedIn - hello@prahladinala.in
Project Link: GitHub Repository