All Projects → patoi → svelte-component-library-template

patoi / svelte-component-library-template

Licence: MIT License
A base for building Svelte component library.

Programming Languages

javascript
184084 projects - #8 most used programming language
Svelte
593 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to svelte-component-library-template

svelte-starter-kit
Svelte with brilliant bells and useful whistles
Stars: ✭ 384 (+519.35%)
Mutual labels:  svelte, sveltejs
svelte-meteor-data
Reactively track Meteor data inside Svelte components
Stars: ✭ 14 (-77.42%)
Mutual labels:  svelte, sveltejs
focus-svelte
focus lock for svelte
Stars: ✭ 18 (-70.97%)
Mutual labels:  svelte, sveltejs
plugins
Elder.js plugins and community plugins.
Stars: ✭ 80 (+29.03%)
Mutual labels:  svelte, sveltejs
svelte-pagination
Example of a pagination component in Svelte
Stars: ✭ 15 (-75.81%)
Mutual labels:  svelte, sveltejs
mathesar
Web application providing an intuitive user experience to databases.
Stars: ✭ 95 (+53.23%)
Mutual labels:  svelte, sveltejs
plate-app
🍛 What's on your Plate?
Stars: ✭ 49 (-20.97%)
Mutual labels:  svelte, sveltejs
15puzzle
A super simple PWA for 15 Puzzle game. Built with Svelte.
Stars: ✭ 29 (-53.23%)
Mutual labels:  svelte, sveltejs
svelte-hamburgers
Custom Hamburger Icons in Svelte with ease
Stars: ✭ 27 (-56.45%)
Mutual labels:  svelte, sveltejs
memento-svelte-electron-typescript
Template to create a desktop app with Svelte, TailwindCSS, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
Stars: ✭ 27 (-56.45%)
Mutual labels:  svelte, sveltejs
svelte-fa
Tiny FontAwesome 5 component for Svelte
Stars: ✭ 214 (+245.16%)
Mutual labels:  svelte, sveltejs
svelte-headlessui
Unofficial Svelte port of Headless UI components
Stars: ✭ 564 (+809.68%)
Mutual labels:  svelte, sveltejs
eslint-plugin-svelte
ESLint plugin for Svelte using AST
Stars: ✭ 22 (-64.52%)
Mutual labels:  svelte, sveltejs
svelte3-translation-ru
Russian translation of the official Svelte resources
Stars: ✭ 49 (-20.97%)
Mutual labels:  svelte, sveltejs
templates
tsParticles website templates collection
Stars: ✭ 42 (-32.26%)
Mutual labels:  svelte, sveltejs
cv
My online CV using Svelte
Stars: ✭ 35 (-43.55%)
Mutual labels:  svelte, sveltejs
svelte-toy
A toy for svelte data stores
Stars: ✭ 73 (+17.74%)
Mutual labels:  svelte, sveltejs
svelteWeb3
A simple, dependency minimized package for building modern dApps with Svelte
Stars: ✭ 14 (-77.42%)
Mutual labels:  svelte, sveltejs
http-interceptors
The Web apps in this monorepo make HTTP requests and require uniform consistency in how they are executed and handled. This monorepo demonstrates the same app written with Angular and with Svelte. Each app uses HTTP interceptors. The Angular app uses HttpClient and its interceptors while the Svelte app uses Axios and its interceptors.
Stars: ✭ 46 (-25.81%)
Mutual labels:  svelte, sveltejs
programmingtil-svelte
No description or website provided.
Stars: ✭ 59 (-4.84%)
Mutual labels:  svelte, sveltejs

Build Status Dependabot

Svelte Components template

You can create your own component library to your applications with this template.

A base for building Svelte component library.

Original work is https://github.com/sveltejs/component-template

Using

On GitHub:

Use this template button on top right.

Read more: Creating a repository from a template

CLI:

  1. Clone it with degit
npx degit patoi/svelte-component-library-template svelte-component-library-template
cd svelte-component-library-template
npm install # or yarn
  1. Add your component's code to src/ as directory, e.g.: src/HelloComponent/ (or add your component directly to src/).

  2. Export the new component to apps in src/index.js

  3. src/test.js and src/App.svelte are for testing purposes:

  1. Create your test cases to your component:
  • add tests to test/ directory

Development

  1. npm install

  2. npm run dev :

  • build components on change and
  • serves from public/ directory at http://localhost:5000
  • and handling livereload
  1. npm test : test runner

For changing the view of the test page use public/global.css and public/index.html

Using components in app

https://github.com/rollup/rollup-plugin-svelte#pkgsvelte

Tip: if you are a developer of the component library, then you can install it once as devDependencies to app with npm i -D <path-to-your-components> , all change will appear immediately if you use livereload in app.

Import component library into your app in App.svelte :

<script>
  import { ByeBye, Hello } from 'svelte-component-library-template'
  export let name
</script>

<Hello {name} />
<ByeBye {name} />

Technical background

More: https://github.com/sveltejs/sapper-template/blob/master/README.md#using-external-components

Supported Node.js v12 LTS and v14 LTS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].