Skip to content

Boilerplate for creating a custom Vue.js component with TypeScript

License

Notifications You must be signed in to change notification settings

room-js/typescript-vue-component-boilerplate

Repository files navigation

Vue.js Component Boilerplate (TypeScript)

This boilerplate uses vue-class-component and vue-property-decorator packages. They allow building Vue components using classes and decorators:

import { Vue, Component, Prop } from 'vue-property-decorator';

@Component
class MyVueComponent extends Vue {
  // component props, methods and lifecycle methods
}

Features

  • Storybook for previewing and building the component - npm run storybook
  • Jest for testing - npm test
  • ESLint for linting - npm run lint

Build package

npm run dist

Build will be placed to ./lib folder and ready to be published on npm registry

About

Boilerplate for creating a custom Vue.js component with TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published