@system76/asset-components
v2.5.0
Published
System76 image asset url helpers and Vue components
Downloads
5
Maintainers
Readme
This repository contains code for handling System76 image assets including url helpers, Fastly Image Optimization API helpers, and useful Vue components.
Using
npm install --save @system76/asset-components
We recommend you install the components onto your Vue instance for global component usage.
import Vue from 'vue'
import { install } from '@system76/asset-components'
install(Vue, { domain: 'https://fastly-cdn.example.com' })
Look at the published Storybook for examples on how to use this library.
Development
Download the repository
Run
npm ci
Run
npm run build
Run
npm start
Start hacking
Documenting
We use styleguide to document our components. Please write your own stories
and documentation in markdown format like the other .mdx
files. Along with
storybook, we also use styleguidist for documentation in the component file.
This gets outputted in the form of nice prop tables in storybook. Here are some
resources on how to get started:
Deployment
To trigger a release,
push a commit to the master
branch in the
Angular Commit Message Conventions
format.