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 04d9220 commit 2d064ae
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"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 Down Expand Up @@ -80,7 +80,7 @@
"!dist/**/*.spec.*"
],
"peerDependencies": {
"svelte": "^5.0.0 || ^5.0.0-next.1"
"svelte": "^5.0.0"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
30 changes: 15 additions & 15 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 @@ -57,7 +57,7 @@
const hasPath = (key: string) => currentUrl.includes(key);
const lis = [
{ name: 'Guide', href: '/guide/svelte-4/getting-started' },
{ name: 'Guide', href: '/guide/svelte-5/getting-started' },
{ name: 'Icons', href: '/icons' },
{ name: 'Icon sets', href: 'https://svelte-svg-icons.codewithshin.com/' }
];
Expand Down
6 changes: 3 additions & 3 deletions src/routes/guide/svelte-4/getting-started/md/installation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
npm create svelte@latest my-project
cd my-project
pnpm i -D svelte-lucide
npm create svelte@latest myapp
cd myapp
pnpm i -D svelte-lucide@v1-latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Svelte 4 or 5 (without Runes)
- Svelte 4 or 5
10 changes: 0 additions & 10 deletions src/routes/guide/svelte-5/getting-started/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,8 @@

<H2>Installation</H2>

<p>Install Svelte:</p>

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

<p>Install <Code>svelte-lucide v2</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/installation-3.md'] as string} />

<H2>Basic Usage</H2>

<p>In a svelte file:</p>
Expand Down
7 changes: 3 additions & 4 deletions src/routes/guide/svelte-5/getting-started/md/installation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// install Svelte 5
npm create svelte@latest my-project
cd my-project
pnpm i
npx sv create myapp
cd myapp
pnpm i -D svelte-lucide
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Svelte 5 Runes
- Svelte 5 or later
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 2d064ae

Please sign in to comment.