Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 767 Bytes

File metadata and controls

25 lines (20 loc) · 767 Bytes

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