@elsilent/vue-frontend-widgets

0.1.1 • Public • Published

vue-frontend-widgets

Frontend widgets which can be used across Vue 3 projects.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Example of usage

<script lang="ts" setup>
import { Align } from 'vue-frontend-widgets/container';
import { Header, Info } from 'vue-frontend-widgets/label';
</script>

<template lang="pug">
Align(horizontal='center')
  Header Hello, world!
  Info How are you doing today?
</template>

Contributing to the repository

Adding functionality

  1. Don't put exported types to your components.
  • There are src/utils/interface/component and src/utils/type/component directories where you can put them. Otherwise you'll get errors on building the project.
  1. Don't bring project-specific functionality to this repository.
  • Examples are:
    • Assets
    • Routing
    • Translations
    • Other libraries
  • Instead if you need these functionalities try to require them from the dependant project.

Preparing for publishing changes

Before creating a pull request please always run yarn lint --fix to keep the code style consistent and run yarn build to check for errors.

Don't solely rely on the linter built in your IDE. It might mark some of the things which could be improved but doesn't mark or fix all of them resulting in the reduction of code quality.

Readme

Keywords

none

Package Sidebar

Install

npm i @elsilent/vue-frontend-widgets

Weekly Downloads

100

Version

0.1.1

License

MIT

Unpacked Size

1.41 MB

Total Files

215

Last publish

Collaborators

  • elsilent