You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-ts-component-generator

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-ts-component-generator

Create Vue components with typescript support

0.1.8
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

Vue-TS-Component-Generator

Vue-TS-Component-Generator

Generate vue typescript components.

Installation

Install package

Install the package globally to use as global command in any folder

npm i -g vue-ts-component-generator

Generate new component

Just run command in terminal

vue:component generate {component}

Just replace {component} with your component name

Path

Since Version 0.1.6 you can set the path where your components are stored. For now there is a default Path for the Laravel-Environmen, but you can set it to every path you want.

Naming convention

Since version 0.1.7 the package following the component-naming-convetion of Vue-CLI. So you should name your Components in upper-camel-case (e.g. MyHappyComponent). The package creates the component-folder in kebab-case, the component-files itself created in the upper-camel-case.

path/to/components/my-happy-component/MyHappyComponent.ts

For sure you can set the component-naming as before. Only the camel-case-version is beeing affected.

Keywords

vue

FAQs

Package last updated on 10 Apr 2018

Did you know?

Socket

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