https://github.com/gift-stack/svelte-button-library
A component based library built with svelte and storybook.js
https://github.com/gift-stack/svelte-button-library
Last synced: 2 months ago
JSON representation
A component based library built with svelte and storybook.js
- Host: GitHub
- URL: https://github.com/gift-stack/svelte-button-library
- Owner: Gift-Stack
- License: mit
- Created: 2021-10-30T18:18:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-30T18:43:40.000Z (over 4 years ago)
- Last Synced: 2025-03-23T18:33:08.737Z (about 1 year ago)
- Language: JavaScript
- Size: 173 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Chromatic's Intro to Storybook Svelte template
This template ships with the main Svelte and Storybook configuration files you'll need to get up and running fast.
## π
Quick start
1. **Create the application.**
Use [degit](https://github.com/Rich-Harris/degit) to get this template.
```shell
# Clone the template
npx degit chromaui/intro-storybook-svelte-template taskbox
```
1. **Install the dependencies.**
Navigate into your new siteβs directory and install the necessary dependencies.
```shell
# Navigate to the directory
cd taskbox/
# Install the dependencies
yarn
```
1. **Open the source code and start editing!**
Open the `taskbox` directory in your code editor of choice and building your first component!
1. **Browse your stories!**
Run `yarn storybook` to see your component's stories at `http://localhost:6006`
## π What's inside?
A quick look at the top-level files and directories included with this template.
.
βββ __mocks__
βββ .storybook
βββ node_modules
βββ public
βββ scripts
βββ src
βββ .babelrc
βββ .gitignore
βββ yarn.lock
βββ package.json
βββ LICENSE
βββ rollup.config.json
βββ README.md
1. **`__mocks__`**: This directory contains all of the modules of code that your project depends on for testing with Jest.
2. **`.storybook`**: This directory contains Storybook's [configuration](https://storybook.js.org/docs/react/configure/overview) files.
3. **`node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages).
4. **`public`**: This directory will contain the development and production build of the site.
5. **`scripts`**: This directory will contain all the modules required should you want to setup Typescript in your project.
6. **`src`**: This directory will contain all of the code related to what you will see on your application.
7. **`.babelrc`**: This file tells [babel](https://babeljs.io/) how to transpile the application's code.
8. **`.gitignore`**: This file tells git which files it should not track or maintain during the development process of your project.
9. **`.rollup.config.json`**: This is a configuration file for [rollup.js](https://rollupjs.org/guide/en/). Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as libraries or applications.
10. **`package.json`**: Standard manifest file for Node.js projects, which typically includes project specific metadata (such as the project's name, the author among other information). It's based on this file that npm will know which packages are necessary to the project.
11. **`LICENSE`**: The template is licensed under the MIT licence.
12. **`yarn.lock`**: This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(Do not change it manually).**
13. **`README.md`**: A text file containing useful reference information about the project.
## Contribute
If you encounter an issue with the template, we encourage you to open an issue in this template's repository.
## Learning Storybook
1. Read our introductory tutorial at [Learn Storybook](https://storybook.js.org/tutorials/intro-to-storybook/svelte/en/get-started/).
2. Learn how to transform your component libraries into design systems in our [Design Systems for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/) tutorial.
2. See our official documentation at [Storybook](https://storybook.js.org/).# svelte-button-library