mirror of
https://github.com/iconify/iconify.git
synced 2024-12-22 09:48:54 +00:00
chore(svelte): update dependencies for component and demo
This commit is contained in:
parent
ccd60f4e0b
commit
d0a135fb87
@ -11,13 +11,13 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/svelte": "workspace:*",
|
||||
"@sveltejs/vite-plugin-svelte": "3.0.0-next.3",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"svelte": "5.0.0-next.123",
|
||||
"svelte-check": "^3.8.4",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "^2.6.3",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.4"
|
||||
"svelte": "^5.1.9",
|
||||
"svelte-check": "^4.0.5",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.10"
|
||||
}
|
||||
}
|
||||
|
@ -10,18 +10,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/svelte": "workspace:*",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/kit": "next",
|
||||
"@types/cookie": "^0.6.0",
|
||||
"svelte": "^4.2.18",
|
||||
"svelte-check": "^3.8.4",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "^2.6.3",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.4"
|
||||
"@sveltejs/adapter-auto": "^3.3.1",
|
||||
"@sveltejs/kit": "^2.7.4",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@types/cookie": "^1.0.0",
|
||||
"svelte": "^5.1.9",
|
||||
"svelte-check": "^4.0.5",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.10"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@fontsource/fira-mono": "^5.0.13"
|
||||
"@fontsource/fira-mono": "^5.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import preprocess from 'svelte-preprocess';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: preprocess(),
|
||||
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
1
components/svelte/.gitignore
vendored
1
components/svelte/.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
node_modules
|
||||
dist
|
||||
lib
|
||||
tsconfig.src.tsbuildinfo
|
@ -3,6 +3,7 @@
|
||||
rollup.config.js
|
||||
tsconfig-base.json
|
||||
tsconfig.json
|
||||
tsconfig.src.tsbuildinfo
|
||||
api-extractor*.json
|
||||
build.js
|
||||
copy.js
|
||||
|
@ -55,21 +55,21 @@
|
||||
"devDependencies": {
|
||||
"@iconify/core": "workspace:^",
|
||||
"@iconify/utils": "workspace:^",
|
||||
"@microsoft/api-extractor": "^7.47.3",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@sveltejs/vite-plugin-svelte": "^2.5.3",
|
||||
"@testing-library/jest-dom": "^6.4.8",
|
||||
"@testing-library/svelte": "5.2.0-next.3",
|
||||
"@microsoft/api-extractor": "^7.47.11",
|
||||
"@rollup/plugin-node-resolve": "^15.3.0",
|
||||
"@rollup/plugin-typescript": "^12.1.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/svelte": "^5.2.4",
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/node": "^20.14.12",
|
||||
"@types/jest": "^29.5.14",
|
||||
"@types/node": "^22.8.6",
|
||||
"rimraf": "^6.0.1",
|
||||
"rollup": "^4.19.0",
|
||||
"rollup": "^4.24.3",
|
||||
"rollup-plugin-svelte": "^7.2.2",
|
||||
"svelte": "5.0.0-next.199",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"vitest": "^2.0.4"
|
||||
"svelte": "^5.1.9",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"vitest": "^2.1.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": ">4.0.0"
|
||||
|
@ -32,6 +32,9 @@ export default [
|
||||
resolve(resolveParams),
|
||||
typescript({
|
||||
tsconfig: 'tsconfig.src.json',
|
||||
compilerOptions: {
|
||||
outDir: `./${targetDir}`,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
@ -52,6 +55,9 @@ export default [
|
||||
resolve(resolveParams),
|
||||
typescript({
|
||||
tsconfig: 'tsconfig.src.json',
|
||||
compilerOptions: {
|
||||
outDir: `./${targetDir}`,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
@ -10,14 +10,14 @@
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^2.5.3",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"iconify-icon": "workspace:*",
|
||||
"svelte": "^4.2.18",
|
||||
"svelte-check": "^3.8.4",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "^2.6.3",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.4"
|
||||
"svelte": "^5.1.9",
|
||||
"svelte-check": "^4.0.5",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.10"
|
||||
}
|
||||
}
|
||||
|
@ -1,24 +1,29 @@
|
||||
<script lang="ts">
|
||||
import Counter from './lib/Counter.svelte'
|
||||
import 'iconify-icon';
|
||||
import Counter from './lib/Counter.svelte'
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<div class="logo">
|
||||
<iconify-icon icon="logos:svelte-icon" />
|
||||
<iconify-icon icon="logos:svelte-icon"></iconify-icon>
|
||||
</div>
|
||||
|
||||
<h1><iconify-icon icon="gg:hello" title="Hello" /> <iconify-icon icon="logos:typescript" title="TypeScript" /> <iconify-icon icon="emojione:heavy-heart-exclamation" title="!" /></h1>
|
||||
<h1>
|
||||
Title:
|
||||
<iconify-icon icon="gg:hello" title="Hello"></iconify-icon>
|
||||
<iconify-icon icon="logos:typescript" title="TypeScript"></iconify-icon>
|
||||
<iconify-icon icon="emojione:heavy-heart-exclamation" title="!"></iconify-icon>
|
||||
</h1>
|
||||
|
||||
<Counter />
|
||||
|
||||
<p>
|
||||
Visit <a href="https://svelte.dev">svelte.dev <iconify-icon icon="line-md:external-link" inline mode="style" /></a> to learn how to build <iconify-icon icon="logos:svelte" inline />
|
||||
Visit <a href="https://svelte.dev">svelte.dev <iconify-icon icon="line-md:external-link" inline mode="style"></iconify-icon></a> to learn how to build <iconify-icon icon="logos:svelte" inline></iconify-icon>
|
||||
apps.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Check out <a href="https://github.com/sveltejs/kit#readme">SvelteKit <iconify-icon icon="line-md:external-link" inline mode="style" /></a> for
|
||||
Check out <a href="https://github.com/sveltejs/kit#readme">SvelteKit <iconify-icon icon="line-md:external-link" inline mode="style"></iconify-icon></a> for
|
||||
the officially supported framework, also powered by Vite!
|
||||
</p>
|
||||
</main>
|
||||
|
@ -8,7 +8,7 @@
|
||||
}
|
||||
|
||||
|
||||
let count: number = 0
|
||||
let count = $state(0);
|
||||
const increment = () => {
|
||||
count += 1
|
||||
}
|
||||
@ -16,7 +16,7 @@
|
||||
</script>
|
||||
|
||||
<button on:click={increment}>
|
||||
<iconify-icon icon={plusIcon} inline /> Clicks: {count}
|
||||
<iconify-icon icon={plusIcon} inline></iconify-icon> Clicks: {count}
|
||||
</button>
|
||||
|
||||
<style>
|
||||
|
@ -1,7 +1,6 @@
|
||||
import App from './App.svelte'
|
||||
import { mount } from 'svelte';
|
||||
import App from './App.svelte';
|
||||
|
||||
const app = new App({
|
||||
target: document.getElementById('app')
|
||||
})
|
||||
const app = mount(App, { target: document.getElementById('app') });
|
||||
|
||||
export default app
|
||||
export default app;
|
||||
|
@ -1,7 +0,0 @@
|
||||
import sveltePreprocess from 'svelte-preprocess'
|
||||
|
||||
export default {
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: sveltePreprocess()
|
||||
}
|
@ -10,19 +10,20 @@
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/kit": "next",
|
||||
"@types/cookie": "^0.6.0",
|
||||
"@sveltejs/adapter-auto": "^3.3.1",
|
||||
"@sveltejs/kit": "^2.7.4",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@types/cookie": "^1.0.0",
|
||||
"iconify-icon": "workspace:*",
|
||||
"svelte": "^4.2.18",
|
||||
"svelte-check": "^3.8.4",
|
||||
"svelte-preprocess": "^5.1.4",
|
||||
"tslib": "^2.6.3",
|
||||
"typescript": "^5.5.3",
|
||||
"vite": "^5.3.4"
|
||||
"svelte": "^5.1.9",
|
||||
"svelte-check": "^4.0.5",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.10"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@fontsource/fira-mono": "^5.0.13"
|
||||
"@fontsource/fira-mono": "^5.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import preprocess from 'svelte-preprocess';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: preprocess(),
|
||||
|
||||
kit: {
|
||||
adapter: adapter()
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
1516
pnpm-lock.yaml
1516
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user