npm i @web-bee-ru/vue-widgets
- Make sure you have bootstrap styles and sass support in your project.
2a. Import and register all widgets:
import Vue from 'vue';
import { VuePlugin } from '@web-bee-ru/vue-widgets';
Vue.use(VuePlugin);
2b. Import only ones you need:
<template>
<div>
<w-button>Click me</w-button>
</div>
</template>
<script>
import { WButton } from '@web-bee-ru/vue-widgets';
export default {
components: { WButton },
};
</script>
npm run bootstrap # install dependencies
npm run dev:vue # start dev sandbox
Refer to widget design guidelines and widget registry (currently only available in Russian).
If you experience issues, try npm run clean
and then npm run bootstrap
again.
npm run publish
If you experience issues with ssh key passphrase, try running start-ssh-agent
before publishing.