Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

officient/vue-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Don't import SCSS files into your Vue files. Import any new files into src/scss/styles.scss. The lib/scss/style.scss file should be imported directly in the stylesheets of projects that use the vue-components. This ensures that SCSS files do not get chunked during build.

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.

About

Vue UI components used within Officient apps

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7