Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fausttobias/svelte-template
:blue_book: Almost automatically updated svelte templates. TypeScript, Tailwind, PWA, Snowpack, Sapper.
https://github.com/fausttobias/svelte-template
husky lint-staged prettier rollup sapper snowpack svelte-template sveltejs tailwind typescript yarn2
Last synced: 2 days ago
JSON representation
:blue_book: Almost automatically updated svelte templates. TypeScript, Tailwind, PWA, Snowpack, Sapper.
- Host: GitHub
- URL: https://github.com/fausttobias/svelte-template
- Owner: FaustTobias
- License: mit
- Created: 2020-12-31T11:13:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T00:31:07.000Z (over 3 years ago)
- Last Synced: 2024-10-10T20:40:54.372Z (28 days ago)
- Topics: husky, lint-staged, prettier, rollup, sapper, snowpack, svelte-template, sveltejs, tailwind, typescript, yarn2
- Language: JavaScript
- Homepage:
- Size: 65.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FaustTobias/svelte-template
Automatically maintained svelte templates.
## Introduction
This repository contains several svelte templates that are automatically maintained. They are based on the official templates.
## Features
Every template contains the following features:
- Code formatting using [prettier](https://prettier.io/)
- Pre-commit linting using [lint-staged](https://github.com/okonet/lint-staged) with [husky@4](https://typicode.github.io/husky)\[[?](#why-husky-4)\]## Available templates
If you are unsure which one to pick, choose the `snowpack-typescript` one:
```bash
mkdir
cd
git init
npx degit FaustTobias/svelte-template#snowpack-typescript-tailwind . --force
yarn
```| Name | Description |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| snowpack-typescript-tailwind | Preconfigured [yarn 2] [snowpack] project with TypeScript integration and TailwindCSS. Useful for single page applications. |
| snowpack-javascript-tailwind | Preconfigured [yarn 2] [snowpack] project without preprocessor integrations and TailwindCSS. Useful for single page applications. |
| snowpack-typescript | Preconfigured [yarn 2] [snowpack] project with TypeScript integration. Useful for single page applications. |
| snowpack-javascript | Preconfigured [yarn 2] [snowpack] project without preprocessor integrations. Useful for single page applications. |
| typescript-tailwind | Preconfigured [yarn 2] project with TypeScript integration and TailwindCSS. Useful for single page applications. Based on [sveltejs/template]. |
| typescript | Preconfigured [yarn 2] project with TypeScript integration. Useful for single page applications. Based on [sveltejs/template]. |
| javascript | Preconfigured [yarn 2] project without preprocessor integrations. Useful for single page applications. Based on [sveltejs/template]. |
| sapper-typescript-tailwind | Preconfigured [yarn 2] [sapper] project with TypeScript integration and TailwindCSS. Useful for websites. Based on [sveltejs/sapper-template#rollup]. |
| sapper-typescript | Preconfigured [yarn 2] [sapper] project with TypeScript integration. Useful for websites. Based on [sveltejs/sapper-template#rollup]. |
| sapper-javascript | Preconfigured [yarn 2] [sapper] project without preprocessor integrations. Useful for websites. Based on [sveltejs/sapper-template#rollup]. |## FAQ
### Why husky 4?
Husky caused quite some controversies after releasing its 5.0.0 Release. First of all, its license was changed to a [copyleft license](https://paritylicense.com/versions/7.0.0.html). This makes it pretty much unusable in closed source projects. Additionally, its configuration has changed and you have to depend on an external module which handles the postinstall step for you. The templates here will stick to version 4 for now.
## Maintainer
[Tobias Faust](https://github.com/FaustTobias)
[yarn 2]: https://yarnpkg.com/
[sapper]: https://sapper.svelte.dev/
[sveltejs/template]: https://github.com/sveltejs/template
[sveltejs/sapper-template#rollup]: https://github.com/sveltejs/sapper-template/tree/rollup
[snowpack]: https://www.snowpack.dev/