react-raika
Version:
react-starter
77 lines (56 loc) β’ 1.99 kB
Markdown
# π React Starter for Raika

A powerful and well-structured React boilerplate for our company, designed to streamline development and enforce best practices.
---
## π¦ Getting Started
To create a new project using this boilerplate, run:
```sh
npx react-raika project-name
```
Then, start coding! π
---
## π§ Features & Setup
### β
**Pre-Commit Linting & Formatting**
When committing files, **husky** will automatically:
βοΈ Run lint-staged
βοΈ Lint & format changes
βοΈ Build the project
βοΈ Allow pushing only if everything passes
### π **Analyze Unused Files & Packages**
Run:
```sh
npm run analyze
```
This helps identify **unused files and dependencies**.
### π§ͺ **Testing Setup**
- **Cypress** β Preconfigured for **E2E testing** π οΈ
- **Vitest** β Ready for **unit testing** β‘
### π **Upgrade Dependencies**
Easily upgrade your dependencies with:
```sh
npx taze
```
### π± **PWA Support**
- Modify the **manifest and Service Worker** in `public folder`
- Update icons in `public/icons/`
### π¨ **Custom Styling & Fonts**
- Replace fonts in `src/assets/fonts/`
- Update `_font.scss` in `src/styles/base/_font.scss`
### πΌοΈ **Icon Handling**
1. Add your **SVGs** to `src/assets/icons/`
2. Import them in `Icon.tsx`
3. Use them with `<CustomIcon icon="your-icon" />`
### π **i18n & RTL Support**
- **Multi-language support** included
- Configure **RTL/LTR** based on your projectβs needs
### π **Versioning & Releases**
Run:
```sh
npm run release
```
Select the version type, and let the script handle the rest!
---
## π Preinstalled Libraries
This boilerplate includes essential tools and configurations to **boost productivity**.
---
π― Ready to start? **Run the command, set up your project, and build amazing things!** π