{"repo":"patoi/svelte-component-library-template","free":true,"listed":false,"github":"https://github.com/patoi/svelte-component-library-template","clone":"git clone https://github.com/patoi/svelte-component-library-template.git","description":"A base for building Svelte component library.","language":"JavaScript","stars":65,"topics":["svelte","sveltejs","component","library","template"],"license":"MIT","category":"ui-components","readme_excerpt":"DEPRECATED. Please, use official guide. 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 2. Add your component's code to src/ as directory, e.g.: src/HelloComponent/ (or add your component directly to src/). 3. Export the new component to apps in src/index.js 4. src/test.js and src/App.svelte are for testing purposes: - add component to the src/App.svelte - add component's properties to src/test.js 4. 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 3. 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 , all change will appear immediately if you use livereload in app. Import component library into your app in App.svelte : Technical background More: https://github.com/sveltejs/sapper-template/blob/master/README.md#using-external-components - sv","default_branch":null,"files":null,"tree":[],"storefront":"/r/patoi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/patoi/svelte-component-library-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}