vue-comp-forge v0.0.10
🎨 Vue Component Generator CLI
Vue Component Generator is a powerful and intuitive CLI tool for creating Vue.js components with support for both Composition API and Options API. Simplify your development workflow with this fast and easy-to-use tool!
✨ Main Features
Component Generation: Create Vue.js components with Composition API or Options API. TypeScript Support: Automatically adds lang="ts" to the script for TypeScript. Dynamic Props: Add props directly through the terminal and the tool takes care of the rest! Pre-defined Templates: Ready-made component structures for you to start coding faster.
🛠️ Installation
Before you begin, make sure you have Node.js installed.
npm install -g vue-component-generator
🚀 How to Use
Start the Component Generator Run the command below in the terminal:
create-vue-component
Question | Description | Example |
---|---|---|
Component Name | Choose a name for your component. | MyAwesomeComponent |
Directory | Choose the directory where you want to create the component. | ./src/components |
Vue API | Choose between Composition API or Options API. | Composition API |
Props | Define your component's props in the format propName:type . | id:number, title:string |
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
11 months ago