UNPKG

my-costom

Version:

Advanced project template generator CLI with interactive selection and custom Hello World templates

207 lines (158 loc) โ€ข 6.66 kB
# mycostom CLI ๐Ÿš€ [![npm version](https://badge.fury.io/js/my-costom.svg)](https://www.npmjs.com/package/my-costom) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js Version](https://img.shields.io/badge/node-%3E%3D14.0.0-brightgreen)](https://nodejs.org/) > **Advanced project template generator CLI with interactive selection and custom Hello World templates** A powerful, interactive command-line tool that helps you quickly scaffold new projects using popular frameworks and custom advanced templates. Whether you're building a simple React app or a full-stack application, mycostom has you covered! ## โœจ Features - ๐ŸŽฏ **Interactive Template Selection** - Choose from 25+ popular frameworks - ๐Ÿ—๏ธ **Custom Advanced Templates** - Feature-rich Hello World applications - ๐ŸŽจ **Beautiful CLI Interface** - Gradient banners, spinners, and colors - โšก **Lightning Fast** - Quick project setup with zero configuration - ๐Ÿ”ง **Production Ready** - Best practices and modern patterns included - ๐Ÿ“ฑ **Framework Agnostic** - Support for React, Vue, Node.js, and more ## ๐Ÿ“ฆ Installation ### Global Installation (Recommended) ```bash npm install -g my-costom ``` ### Use without installing ```bash npx my-costom ``` ## ๐Ÿš€ Quick Start Simply run the command and follow the interactive prompts: ```bash mycostom ``` ## ๐Ÿ“‹ Available Templates ### ๐ŸŒŸ Standard Templates (25+) - **React/Next.js**: Next.js, Remix, React Router, TanStack Start - **Vue/Nuxt**: Astro, Modern.js, Vike - **Build Tools**: Vite, Webpack, Parcel, ESBuild, Rspack - **Meta Frameworks**: Blitz.js, RedwoodJS, Gatsby - **Backend**: AdonisJS, Laravel, Meteor.js - **Performance**: Bun, Farm (Rust-based), Rsbuild ### ๐ŸŽฏ Custom Advanced Templates - **Hello World - React Advanced**: Router + State Management + Animations - **Hello World - Vue Advanced**: Composition API + Pinia + Modern Vue - **Hello World - Node.js Advanced**: Express + JWT + Security + Logging - **Hello World - Full Stack Advanced**: Complete CRUD app with auth ## ๐Ÿ› ๏ธ Template Features ### React Advanced Template Includes: - โš›๏ธ React 18 with modern hooks - ๐Ÿšฆ React Router for navigation - ๐ŸŽญ Framer Motion for animations - ๐ŸŒ™ Dark mode toggle - ๐Ÿ“ฑ Responsive design - โšก Vite for lightning-fast development ### Node.js Advanced Template Includes: - ๐Ÿ” JWT Authentication system - ๐Ÿ›ก๏ธ Security headers with Helmet - โšก Rate limiting middleware - ๐Ÿ“ Comprehensive logging - ๐Ÿฅ Health check endpoints - ๐Ÿ” Error handling middleware ### Full Stack Template Includes: - ๐ŸŽฏ React frontend with modern patterns - ๐Ÿš€ Node.js backend with Express - ๐Ÿ—„๏ธ Database integration ready - ๐Ÿ”‘ Complete authentication flow - ๐Ÿณ Docker configuration - ๐Ÿ”„ CI/CD pipeline setup ## ๐Ÿ“– Usage Examples ### Interactive Mode ```bash mycostom # Follow the prompts to select template and project name ``` ### Quick Project Setup After template selection: ```bash cd your-project-name npm install npm run dev ``` ### Custom Template Features Each advanced template includes: - ๐Ÿ“š Comprehensive README - ๐Ÿ”ง Modern development setup - ๐ŸŽจ Beautiful UI components - ๐Ÿ“Š Performance optimizations - ๐Ÿงช Testing setup ready - ๐Ÿ“ฆ Production build configuration ## ๐ŸŽจ Screenshots ``` โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• ๐Ÿš€ Advanced Project Template Generator ``` ## ๐Ÿ”ง Development ### Prerequisites - Node.js >= 14.0.0 - npm >= 6.0.0 ### Local Development ```bash # Clone the repository git clone https://github.com/yourusername/mycostom.git cd mycostom # Install dependencies npm install # Test locally npm start # Test as global package npm link mycostom ``` ### Testing ```bash npm test ``` ### Publishing ```bash npm publish --access public ``` ## ๐Ÿ“ Project Structure ``` mycostom/ โ”œโ”€โ”€ index.js # Main CLI application โ”œโ”€โ”€ package.json # Package configuration โ”œโ”€โ”€ README.md # Documentation โ”œโ”€โ”€ LICENSE # MIT License โ””โ”€โ”€ templates/ # Custom template files โ”œโ”€โ”€ react/ โ”œโ”€โ”€ vue/ โ”œโ”€โ”€ node/ โ””โ”€โ”€ fullstack/ ``` ## ๐Ÿค Contributing Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change. ### Development Guidelines 1. Fork the repository 2. Create your feature branch (`git checkout -b feature/AmazingFeature`) 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) 4. Push to the branch (`git push origin feature/AmazingFeature`) 5. Open a Pull Request ## ๐Ÿ“œ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## ๐Ÿ™ Acknowledgments - Inspired by create-react-app, create-next-app, and other scaffolding tools - Built with love for the JavaScript community - Special thanks to all framework maintainers ## ๐Ÿ“Š Stats - ๐ŸŒŸ 25+ Templates supported - โšก Lightning fast setup - ๐Ÿ”ง Zero configuration required - ๐Ÿ“ฑ Modern development patterns - ๐Ÿš€ Production ready ## ๐Ÿ“ž Support - ๐Ÿ“ซ **Issues**: [GitHub Issues](https://github.com/yourusername/mycostom/issues) - ๐Ÿ’ฌ **Discussions**: [GitHub Discussions](https://github.com/yourusername/mycostom/discussions) - ๐Ÿ“ง **Email**: your.email@example.com --- Made with โค๏ธ by the JavaScript community **Happy Coding!** ๐Ÿš€