Vue component library example for Digit Koodikerho.
This simple project was set up using Vue CLI 3 and Vue Styleguidist plugin.
You should be fine running the styleguide with just npm. However Vue CLI (requires Node.js) is needed to run the build script. It is also recommended to install Vue.js dev tools browser extension for better development experience.
If you have npm and Node.js installed, install Vue CLI 3
npm install -g @vue/cli 3.12.1)
npm install
npm run styleguide
Styleguidist environment can be configured in ./styleguide.config.js
Vue Styleguidist documentation
You need Vue CLI 3 to run the build script. Make sure you are logged in to npm and the package.json
is set up properly.
If you are publishing a new version, remember to up the version number.
- Import and register your components globally in
./src/index.js
- Build as library
npm run build
- Publish to npm
npm publish