This is a plugin for Rollup and the library svelete-blueprint
Install svelte-blueprint and rollup-plugin-svelte-blueprint.
$ npm i -D svelte-blueprint rollup-plugin-svelte-blueprint
Inside the rollup.config.js you should import the plugin and modify the plugins and watch sections.
import svelteBlueprint from 'rollup-plugin-svelte-blueprint'
...
export default {
...
plugins: [
...,
svelteBlueprint({
src: 'src/Components',
dst: 'src/Docs',
template: '../Template.svelte' // [optional] Relative to src/Docs/Pages
}),
...
],
watch: {
...,
exclude: ['src/Docs/**']
}
}
- src: Source directory for components to workon
- dst: Destination path where the documentation files will be placed
- template: Template to replace the default included in this library