Everything you need to build a Svelte project, powered by create-svelte
.
The only thing we need to run this is node.
- Windows:
- Mac:
brew install node
- Linux:
sudo apt-get install -y nodejs
If you plan to start from scratch in the future, here is how to get the same skeleton as in this repo:
# create a new project in the current directory
npm init @svelte-add/kit@latest
npx svelte-add@latest tailwindcss
To be able to follow along, please clone the repo:
git clone https://github.com/svelte-add/svelte-add.git
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.