Skip to content

Commit

Permalink
feat: for v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Oct 25, 2024
1 parent 1de5991 commit 2a6ee96
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 70 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@playwright/test": "^1.48.1",
"@sveltejs/adapter-auto": "^3.3.0",
"@sveltejs/kit": "^2.7.2",
"@sveltejs/package": "^2.3.6",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.7.3",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "4.0.0",
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
"@types/eslint": "^9.6.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "2.45.1",
"eslint-plugin-svelte": "2.46.0",
"globals": "^15.11.0",
"highlight.js": "^11.10.0",
"postcss": "^8.4.47",
Expand All @@ -58,7 +58,7 @@
"publint": "^0.2.12",
"runatics": "^0.1.3",
"runes-meta-tags": "^0.4.0",
"runes-webkit": "^0.9.35",
"runes-webkit": "^0.9.36",
"svelte": "5.1.2",
"svelte-5-ui-lib": "^0.9.23",
"svelte-check": "^4.0.5",
Expand All @@ -79,7 +79,7 @@
"!dist/**/*.spec.*"
],
"peerDependencies": {
"svelte": "^5.0.0 || ^5.0.0-next.1",
"svelte": "^5.0.0",
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.4.3"
},
Expand Down
82 changes: 41 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
const hasPath = (key: string) => currentUrl.includes(key);
const lis: LiType[] = [
{ name: 'Guide', href: '/guide/svelte-4/getting-started' },
{ name: 'Guide', href: '/guide/svelte-5/getting-started' },
{ name: 'Outline', href: '/outline-icons' },
{ name: 'Solid', href: '/solid-icons' }
];
Expand Down
7 changes: 3 additions & 4 deletions src/routes/guide/svelte-4/getting-started/md/installation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
npm create svelte@latest my-project
cd my-project
npm create svelte@latest myapp
cd myapp
npx svelte-add@latest tailwindcss
pnpm i
pnpm i -D flowbite-svelte-icons
pnpm i -D flowbite-svelte-icons@v1-latest
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Svelte 4 or 5 (without Runes)
- Svelte 4 or 5
- TailwindCSS
- tailwind-merge
8 changes: 1 addition & 7 deletions src/routes/guide/svelte-5/getting-started/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,12 @@

<H2>Installation</H2>

<p>Install Svelte and TailwindCSS:</p>

<HighlightCompo codeLang="ts" code={modules['./md/installation.md'] as string} />

<p>Install <Code>flowbite-svelte-icons@next</Code>:</p>
<p>Install <Code>flowbite-svelte-icons</Code>:</p>

<HighlightCompo codeLang="ts" code={modules['./md/installation-2.md'] as string} />

<p>Enable Runes in <Code>svelte.config.js</Code>:</p>

<HighlightCompo codeLang="ts" code={modules['./md/svelte-config.md'] as string} />

<p>
To make sure the classes used by flowbite-svelte-icons are included by the Tailwindcss, add the
following to <Code>tailwind.config.cjs</Code>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm i -D flowbite-svelte-icons@next
pnpm i -D flowbite-svelte-icons
9 changes: 4 additions & 5 deletions src/routes/guide/svelte-5/getting-started/md/installation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// install Svelte 5
npm create svelte@latest my-project
cd my-project
npx svelte-add@latest tailwindcss
pnpm i
npx sv create myapp
// select tailwindcss to install
cd myapp
pnpm i -D flowbite-svelte-icons
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Svelte 5:Runes
- Svelte 5 or later
- TailwindCSS
- tailwind-merge
3 changes: 0 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [vitePreprocess({})],
compilerOptions: {
runes: true
},
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
Expand Down

0 comments on commit 2a6ee96

Please sign in to comment.