- sveltekit package boilerplate by lé. for building reusable
<Component />
s. - powered by sveltekit 2, svelte 4, and vite.
npm i
,npm run dev
to preview the component. default port is 3000.- deploy component: tweak
package.json
,npm run build
,npm login
,npm version patch
(if needed),npm publish
. - third-party usage in javascript:
import { Ollesvege, ... } from 'ollesvege'
,<Ollesvege ... />
. - ts & scss support, base assets & styles, and session storage.
- support for socket.io and/or rest api.
- this article and this repo are helpful—though not complete—for reference.
- migrating to the latest version of
@sveltejs/package
requiresnpx svelte-migrate package
. see #8825 and #8922. may need to tweakpackage.json
to serveexports['.']:string
instead ofexports['.']:object{types, svelte}
before doing so. - once migrated, may need to add
main: "./package/pkg/index.js"
to properly serve module (ie. index.js) to clients.
-
Notifications
You must be signed in to change notification settings - Fork 0
🍱 sveltekit package boilerplate
lefrost/ollesvege
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
🍱 sveltekit package boilerplate
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published