npm.io
0.0.10 • Published 1 year agoCLI

vue-comp-forge

Licence
MIT
Version
0.0.10
Deps
3
Size
8 kB
Vulns
0
Weekly
0

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.