1.2.22 • Published 9 months ago
viteuf v1.2.22
viteuf
viteuf is a simple CLI tool to generate project templates with customization options. It helps you quickly set up new projects based on predefined templates.
Features
- Choose from various project templates.
- Customize template settings during setup.
- Automatically initialize a git repository.
- Install dependencies automatically.
- Add a project description to the README file.
How to use
1 . install the package globally
npm install -g
viteuf <template-name>
2 . run using npx or bunx
npx viteuf <template-name>
bunx viteuf <template-name>
Explanation
Project Structure:
src/viteuf.js
: The main for our tool.bases/
: Directory containing project bases.index.js
: Entry point.README.md
: README for viteuf.
Dependencies:
- Used
inquirer
for user prompts. - Used
chalk
for colored output. - Used
shelljs
for shell commands.
- Used
Templates:
- front: A base template for your React project that leverages bun and vite.
- micro-front: A base template for an app structured as micro-fronts making use of federation.
- back: A base template to develop an api or a single backend function with nodemon and express.
- full-back: A base project structured as a full backend app. Server, API, DB and utils to hook a front
- npm: A basic NPM package base to develop a cli tool or library.
- component: A base template to develop a web component with lit-element and vite.
- serverless: A base template to develop a serverless function using the workers model.
- mobile: A base template to develop a mobile app using react-native.
Commands:
viteuf <template-name>
: To create a new project based on the selected template.viteuf list
: To list all available templates.viteuf help
: To display help information.
Dev notes and license:
This project was authored by belka hedia and is licensed under the MIT license.