rollup-plugin-svelte-blueprint

1.0.1 • Public • Published

Rollup plugin for svelete-blueprint

This is a plugin for Rollup and the library svelete-blueprint

How to use.

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/**']
  }
}

Notes:

  • 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

Package Sidebar

Install

npm i rollup-plugin-svelte-blueprint

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.55 kB

Total Files

3

Last publish

Collaborators

  • evesan