Gear is a command-line tool designed to streamline the setup of frontend projects using Vite, React, and TailwindCSS. It helps developers quickly scaffold new projects with a consistent structure and pre-configured dependencies, saving time and effort.
- Initialize new frontend projects with Vite and React
- Support for both JavaScript and TypeScript
- Automatic installation of dependencies
- Pre-configured TailwindCSS setup
- Progress bar to track setup steps
To install Gear, clone the repository and build the project using Cargo:
- Clone the repository:
git clone https://github.com/aashishbishow/gear.git
- Navigate to the project directory:
cd gear
- Build the project:
cargo build --release
- Add the binary to your PATH (optional):
export PATH=$PATH:/path/to/gear/target/release
To create a new frontend project, use the following command:
cargo run -- --name myproject --lang js init
Replace myproject
with your desired project name and js
with ts
if you prefer TypeScript.
cargo run -- --name awesome-app --lang ts init
Gear automatically configures your project with the necessary files and settings. However, you can customize the configuration by editing the following files:
vite.config.js
orvite.config.ts
: Vite configuration filesrc/index.css
: TailwindCSS configuration
We welcome contributions to Gear! To contribute, follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch
- Open a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, please reach out via email at [email protected].