Shared Vue components for Officient.
npm i --save github:Officient/vue-components#v1.0.0
Replace v1.0.0 with the current version.
// 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
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
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.
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.