GitXplorerGitXplorer
A

sveltescape

public
32 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
9ff226777d23f86936a0c8cbdd2958e6701555bc

Merge branch 'master' of https://github.com/AlessioGr/sveltescape

AAlessioGr committed 2 years ago
Unverified
a90b34e19c7996d71d3e2059f1f55026d00a82fd

Update Vite dependency

AAlessioGr committed 2 years ago
Verified
44ea3a3f39c774997c08c63721008cfade857cba

Update README.md

AAlessioGr committed 2 years ago
Verified
1ca7430c1066b97d2b7eb35712e7d078111401c5

Update README.md

AAlessioGr committed 2 years ago
Verified
a328446db2b5730e1183846b8044d6760c6105a5

Merge pull request #1 from AlessioGr/add-license-1

AAlessioGr committed 2 years ago
Verified
84c831d9a55a0ed818ea79a9205bba5adae5be35

Create LICENSE

AAlessioGr committed 2 years ago

README

The README file for this repository.

SvelteScape is a Storybook alternative made for Svelte. Its goal is to also allow managing very complex components, as seen in the Shapes example.

Showcase

SvelteScape Screenshot

https://user-images.githubusercontent.com/70709113/212435844-f3848a97-0b75-4bb8-8684-59e039e26cc0.mp4

Unique features

  • Allows more complex data structures to be managed
  • Optional prop pre- and post-processors, to move load from the svelte component to SvelteScape. Very useful in the shapes example, so you do not have to ship an entire SVG curve generator with negative runtime performance benefits. Instead, this generates the svg paths via the postprocessor. Do more calculations in sveltescape and less in production! => Example => Result
  • Made 100% in svelte & sveltekit - for svelte / sveltekit
  • SvelteScape stories are defined in separate ts config files => nothing needs to be changed or added into your actual .svelte component files. They stay clean & separated!

How to use

Stories/components are currently intermingled with sveltescape in order to allow easier development & testing of sveltescape. Pretty much just follow those examples.

Developing

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Building

To create a production version of your app:

pnpm run build