2.2.1 • Published 2 years ago

@officient/vue-components v2.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

vue-components

Shared Vue components for Officient.

Installation

npm i --save github:Officient/vue-components#v1.0.0
Replace v1.0.0 with the current version.

Usage

// Importing a component:
import AvatarImage from 'officient-vue-components/lib/components/AvatarImage.vue'

// importing utils
import daysOffTransformer from officient-vue-components/lib/utils/transformers/daysOff

Development

Component and utils source code goes into /src. To allow it to be used externally, you need to also add it to the /lib folder.

  • /src: source code:
  • /lib: public library for usage by other repo's
  • /dev/pages: examples of usage for our components
  • /tests: unit tests

SCSS

Import the CSS in your Vue file in the script section.

Release

Increment the version in package.json and create a release from the latest commit.
Releases can be created in the releases tab on top.

The projects using this package require an update to the version tag.
E.g. "officient-vue-components": "github:Officient/vue-components#v1.0.1",
Run npm install after updating the version number to grab the latest version.

2.2.1

2 years ago

4.0.0

2 years ago