Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiftgeist/sveltekit-library
Sveltekit (1.27.4) library template with Tailwind/UnoCSS
https://github.com/shiftgeist/sveltekit-library
Last synced: about 1 month ago
JSON representation
Sveltekit (1.27.4) library template with Tailwind/UnoCSS
- Host: GitHub
- URL: https://github.com/shiftgeist/sveltekit-library
- Owner: shiftgeist
- License: mit
- Created: 2023-11-09T19:02:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-09T19:04:19.000Z (about 1 year ago)
- Last Synced: 2024-12-09T00:36:45.183Z (about 1 month ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sveltekit Library Template
Everything you need to build a Svelte library.
## Features
- Svelte components (obviously)
- `.d.ts` files for components
- [Tailwindcss/UnoCSS](https://unocss.dev/interactive/) - bundles style into component## Developing
Once you've installed dependencies with `pnpm install` (or `npm install`), start the build with watcher:
```shell
pnpm dev
# or
npm run dev
```Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
## Building
To build your library:
```shell
pnpm package
```To create a production version of your showcase app:
```shell
pnpm build
```You can preview the production build with `pnpm preview`.
## Publishing
Go into the `package.json` and give your package the desired name through the `"name"` option and remove the `"private"` field.
To publish your library to [npm](https://www.npmjs.com):
```shell
npm publish
```