Socket
Socket
Sign inDemoInstall

@ashetm/vue-cli-plugin-component-generator

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ashetm/vue-cli-plugin-component-generator

Vue component generator for new components


Version published
Weekly downloads
25
decreased by-24.24%
Maintainers
1
Install size
208 kB
Created
Weekly downloads
 

Readme

Source

Vue Component Generator (Javascript & Typescript)

vue-cli 3 plugin to generate vue components

This package will works with typescript and create vue components easily using vue cli.

Installation

  • Install via npm
$ npm i @ashetm/vue-cli-plugin-component-generator
  • Install via vue-cli
$ vue add @ashetm/vue-cli-plugin-component-generator

Usage

  • Invoke to generate a new components:
$ vue invoke  @ashetm/vue-cli-plugin-component-generator

This will prompt to following questions.

? Where's your components's root directory?

By default this will give ./src/components path. But you can decide and type the path you want to generate the component.

? What's your component name?

Here componet name can be defined.

Now it will generate 4 files in the defined directory inside a folder with file name.

file-name.html
file-name.vue
file-name.scss or file-name.sass or file-name.css
file-name.js or file-name.ts

Keywords

FAQs

Last updated on 25 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc