:zap: Community template with Sveltekit + Typescript + TailwindCSS + Jest + Storybook
You can use to setup in an easy way for init your svelte project.
In 3 easy steps
Clone the repository
npx degit alcibiadesc/template-sveltekit YOUR-FOLDER-NAME
Enter in the folder
cd YOUR-FOLDER-NAME
Install
npm install
Inside your folder
npm run dev
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
npm run build
Builds a static copy of your site to the build/
folder. Your app is ready to be deployed!
npm run test
Launch jest battery of tests
npm run test:watch
Launch jest battery of tests in every change of document.
npm run storybook
Launch storybook. You can enter openning http://localhost:6006 to view it in the browser.
others scripts
more info inside package.json
This components are here to validate the correct work of the template.
When I install all and check that works I follow this steps:
Delete /lib | I use a custom version of Atomic Design template folder instead:
* Components/
* atoms/
* molecules/
* organisms/
* pages/
Delete Button.svelte & Button.stories.js & Button.css inside "./src/components/atoms/" | I added this Button from Storybook to test that works with alias (dynamic path) and tailwind (you can delete it if you want :smile_cat:)