Our great sponsors
-
sveltekit-package-template
A barebones project that provides the essentials for writing highly-optimized, reusable packages in Svelte.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
SvelteKit packaging docs has some useful information. I also made this package template for use in some of my projects, but it also has some very useful documentation in the readme if you're looking for a place to start - https://github.com/tropix126/sveltekit-package-template
I followed the SvelteKit packaging guides for svelte-headlessui and it was pretty easy. It transcribes your TS to JS automatically (if you're using TS) and generates TypeScript declaration files automatically. Publishing on npm is super easy after that.
Related posts
- Passing event handlers in $$restProps? (ex. creating a wrapped <Input /> component)
- Update Svelte component style using on:mousemove directive
- Should you compile components before publishing them?
- Mario meets Pareto: multi-objective optimization of Mario Kart builds
- How I Contributed to Open-Source While Learning Svelte