{"_id":"@baicie/vite-svelte-test","_rev":"2-a5e6ec3175c52b49470cc843d4932fee","name":"@baicie/vite-svelte-test","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@baicie/vite-svelte-test","version":"1.0.0","type":"module","main":"./dist/es/index.js","module":"./dist/es/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview","check":"svelte-check --tsconfig ./tsconfig.json"},"devDependencies":{"@sveltejs/vite-plugin-svelte":"^3.0.0","@tsconfig/svelte":"^5.0.2","svelte":"^4.2.3","svelte-check":"^3.6.0","tslib":"^2.6.2","typescript":"^5.2.2","vite":"^5.0.0"},"publishConfig":{"access":"public"},"description":"This template should help get you started developing with Svelte and TypeScript in Vite.","_id":"@baicie/vite-svelte-test@1.0.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-BuCIiIHmGnchsFeDT5wgekqIii18wvNaKdgF6UjVzr4p+H09mPKKyeQ3qUDpouhxpQii1kt3ZPAzHKWiin14EA==","shasum":"ea13c72d4bb043d1ea2e1ff55ae2364e0ad07608","tarball":"https://registry.npmjs.org/@baicie/vite-svelte-test/-/vite-svelte-test-1.0.0.tgz","fileCount":16,"unpackedSize":11995,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuokwV/AsVHOrZZJudy4Tn7uLLN6bptNKkkm64i23d9AiEA8FolPEpNkfN4lgtfHqhV4IeyNlWwIMj9MuPqqEw00EE="}]},"_npmUser":{"name":"baicie2","email":"2055572879@qq.com"},"directories":{},"maintainers":[{"name":"baicie2","email":"2055572879@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-svelte-test_1.0.0_1701260232691_0.3952955426372857"},"_hasShrinkwrap":false},"1.0.1":{"name":"@baicie/vite-svelte-test","version":"1.0.1","type":"module","main":"./dist/es/index.js","module":"./dist/es/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview","check":"svelte-check --tsconfig ./tsconfig.json"},"devDependencies":{"@sveltejs/vite-plugin-svelte":"^3.0.0","@tsconfig/svelte":"^5.0.2","svelte":"^4.2.3","svelte-check":"^3.6.0","tslib":"^2.6.2","typescript":"^5.2.2","vite":"^5.0.0"},"publishConfig":{"access":"public"},"description":"This template should help get you started developing with Svelte and TypeScript in Vite.","_id":"@baicie/vite-svelte-test@1.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-O+moUtkinqZ78MFnLkwYk4eTOh0ZubKTjh0342uYi1E5y1JgFDHpIFgcTlQxcUeWgj4G1Yahj7dZq4iDWEGO9Q==","shasum":"91b5e314faf288ebd5784bf0dc8261e732d2ed84","tarball":"https://registry.npmjs.org/@baicie/vite-svelte-test/-/vite-svelte-test-1.0.1.tgz","fileCount":5,"unpackedSize":113557,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClSrsGW1AqnkUfFFJJTmGYs0Fez6bZcgxNqyuXG2FwWAiEAoETvzbJpyV3atH0g2JCUgd3G+zdo3y+o84n+901NcgQ="}]},"_npmUser":{"name":"baicie2","email":"2055572879@qq.com"},"directories":{},"maintainers":[{"name":"baicie2","email":"2055572879@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-svelte-test_1.0.1_1701260508161_0.3136515592240612"},"_hasShrinkwrap":false},"1.1.0":{"name":"@baicie/vite-svelte-test","version":"1.1.0","type":"module","main":"./dist/es/index.js","module":"./dist/es/index.js","scripts":{"dev":"vite","build":"vite build","preview":"vite preview","check":"svelte-check --tsconfig ./tsconfig.json"},"devDependencies":{"@sveltejs/vite-plugin-svelte":"^3.0.0","@tsconfig/svelte":"^5.0.2","svelte":"^4.2.3","svelte-check":"^3.6.0","tslib":"^2.6.2","typescript":"^5.2.2","vite":"^5.0.0"},"publishConfig":{"access":"public"},"description":"This template should help get you started developing with Svelte and TypeScript in Vite.","_id":"@baicie/vite-svelte-test@1.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-3m6oVTNgTh9o4OZqpzuDBp9jPbnGYvko7/9vCqWeUVKVBRuO8udEjOeRCN7mbawFoA46Y/9/icJSUlH9XJ0HWA==","shasum":"d19e2ad45dc2f873c0a59eb767bac5e968f30b85","tarball":"https://registry.npmjs.org/@baicie/vite-svelte-test/-/vite-svelte-test-1.1.0.tgz","fileCount":5,"unpackedSize":114743,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCJw7gdyh7BPNUI5vZ7Gq62gVZa6YjVnbwyAmccltmywIgOuY6HjY6968/zzDAxyBWAwQF5DlvNqcUT3m+SL0AJhg="}]},"_npmUser":{"name":"baicie2","email":"2055572879@qq.com"},"directories":{},"maintainers":[{"name":"baicie2","email":"2055572879@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-svelte-test_1.1.0_1701260970423_0.5615665164675407"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-29T12:17:12.591Z","1.0.0":"2023-11-29T12:17:12.890Z","modified":"2023-11-29T12:29:30.838Z","1.0.1":"2023-11-29T12:21:48.357Z","1.1.0":"2023-11-29T12:29:30.644Z"},"maintainers":[{"name":"baicie2","email":"2055572879@qq.com"}],"description":"This template should help get you started developing with Svelte and TypeScript in Vite.","readme":"# Svelte + TS + Vite\n\nThis template should help get you started developing with Svelte and TypeScript in Vite.\n\n## Recommended IDE Setup\n\n[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).\n\n## Need an official Svelte framework?\n\nCheck out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more.\n\n## Technical considerations\n\n**Why use this over SvelteKit?**\n\n- It brings its own routing solution which might not be preferable for some users.\n- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.\n\nThis template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.\n\nShould you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.\n\n**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?**\n\nSetting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information.\n\n**Why include `.vscode/extensions.json`?**\n\nOther templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.\n\n**Why enable `allowJs` in the TS template?**\n\nWhile `allowJs: false` would indeed prevent the use of `.js` files in the project, it does not prevent the use of JavaScript syntax in `.svelte` files. In addition, it would force `checkJs: false`, bringing the worst of both worlds: not being able to guarantee the entire codebase is TypeScript, and also having worse typechecking for the existing JavaScript. In addition, there are valid use cases in which a mixed codebase may be relevant.\n\n**Why is HMR not preserving my local component state?**\n\nHMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).\n\nIf you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.\n\n```ts\n// store.ts\n// An extremely simple external store\nimport { writable } from 'svelte/store'\nexport default writable(0)\n```\n","readmeFilename":"README.md"}