Svelte component generation
An opinionated Plop generator for Svelte components
plopjs.com
npm install @ctm/svelte-plop --save
"generate": "svelte-plop"
or set a base path for your components"generate": "svelte-plop --base src"
npm run generate
If you want to bypass the prompts you can provide the answers
npm run generate "component name" Y Y
The above will generate a component named ComponentName with minimal component boilerplate specifically for component libraries. Once you get to know the generator questions you will be able to work this out for your needs.