Skip to content

Commit

Permalink
docs: use svelte cli instead of create-svelte and svelte-add
Browse files Browse the repository at this point in the history
With version 5 of svelte, svelte-add and create-svelte commands
are deprecated. Svelte cli is the new way to go so the docs have been
updated to replace:

- npm create svelte@latest my-project by npx sv create my-project
- npx svelte-add@latest tailwindcss by npx sv add tailwindcss
  • Loading branch information
gemb0y committed Dec 15, 2024
1 parent 2257cbc commit 06b1036
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/routes/docs/pages/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Learn how to get started with Flowbite Svelte by following the quickstart guide
You can install SvelteKit or Svelte to start your app. For SvelteKit:

```bash example
npm create svelte@latest my-app
npx sv create my-app
cd my-app
pnpm install
```
Expand All @@ -44,7 +44,7 @@ pnpm install
In order to enable the utility classes from Tailwind CSS install the package using NPM:

```bash
npx svelte-add@latest tailwindcss
npx sv add tailwindcss
pnpm install
```

Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/pages/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Learn how to get started with Flowbite Svelte by following the quickstart guide
You can install SvelteKit or Svelte to start your app. For SvelteKit:

```bash example
npm create svelte@latest my-app
npx sv create my-app
cd my-app
pnpm install
```
Expand All @@ -43,7 +43,7 @@ pnpm install
In order to enable the utility classes from Tailwind CSS install the package using NPM:

```bash
npx svelte-add@latest tailwindcss
npx sv add tailwindcss
pnpm i
```

Expand Down
4 changes: 2 additions & 2 deletions src/routes/icons/svelte-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Use well over 500 SVG icons based on the open-source [Flowbite Icons](https://fl
Install Svelte and TailwindCSS:

```sh
npm create svelte@latest my-project
npx sv create my-project
cd my-project
npx svelte-add@latest tailwindcss
npx sv add tailwindcss
pnpm i
pnpm i -D flowbite-svelte-icons@v1-latest
```
Expand Down

0 comments on commit 06b1036

Please sign in to comment.