create-custom-react-ts
v1.0.6
Published
Custom TS scaffold package for production React layouts
Readme
🚀 create-custom-react-ts
A fast, interactive CLI scaffolding tool to set up production-ready React + TypeScript + Vite project layouts instantly.
This package helps developers scaffold a clean and scalable frontend architecture without wasting time on repetitive setup.
✨ Features
Interactive CLI Prompts Built with
@clack/promptsfor a smooth terminal experience.Instant Project Setup Automatically clones the template and installs dependencies.
Production Ready Boilerplate Comes pre-configured with modern development standards.
React + TypeScript + Vite Fast, lightweight, and scalable frontend setup.
🛠️ Usage
Run the following command:
npx create-custom-react-ts@latest📦 What Happens After Running?
The CLI will:
- Ask for your project folder name
- Clone the project template
- Remove existing Git history
- Install all required dependencies automatically
📂 Tech Stack Included
- React 19
- TypeScript
- Vite
- ESLint
- Modern Folder Structure
⚡ Why Use This?
Starting every React project from scratch takes time.
This CLI helps you:
- Save setup time
- Maintain project consistency
- Start development instantly
🤝 Contributing
Contributions are welcome!
Feel free to open issues or submit pull requests for improvements.
👤 Author
Azad Singh Full Stack Developer | Open Source Contributor
GitHub: https://github.com/AzadSingh818
📜 License
This project is licensed under the MIT License.
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
React Compiler
The React Compiler is enabled on this template. See this documentation for more information.
Note: This will impact Vite dev & build performances.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
