Skip to content

everitosan/rollup-plugin-svelte-blueprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rollup plugin for svelte blueprint library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published