An opinionated template for my Svelte projects.
This template was created before SvelteKit had a stable and reliable TypeScript configuration. However, as of July 2023, the default SvelteKit template now uses the same core parsers and formatters as I set up in this template. Therefore, I highly recommend you refer to SvelteKit's ``Creating a Project'' page instead of this template.
svelte-i18nI prefer this template over other existing templates for several reasons:
.svelte files<script> tags in .svelte files.svelte and .ts filesAt the time of writing, no other template satisfied all of the above. As an autoformat and autofix abuser, I NEED this template. I hope you like it too!
Click the Use this template button in GitHub to use this template.
Once you clone your repository, run yarn to install dependencies. Then, reload VSCode to refresh the ESLint extension. Finally, use the ESLint: Fix all auto-fixable problems command to auto-fix any file.
yarn # install
yarn dev # dev server
yarn build # prod build
yarn format # autofix from cli
yarn serve # serve prod
yarn type:check # ts checks
yarn type:check:watch # ts checks (watch mode)