Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ldgit/template-svelte


https://github.com/ldgit/template-svelte

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

        

# template-svelte

Template for quick start with Svelte frontend library.

Requires:

- [Node.js](https://nodejs.org/en/download/) >= 14

Uses:

- [Svelte](https://svelte.dev/)
- [TypeScript](https://www.typescriptlang.org/) without [strict type checks](https://www.typescriptlang.org/tsconfig#strict)
- [Jest](https://jestjs.io/) for testing
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/) & [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) for code style
- [lint-staged](https://github.com/okonet/lint-staged) & [husky](https://github.com/typicode/husky) to lint and fix code style before commit
- [Svelte Testing Library](https://github.com/testing-library/svelte-testing-library) for testing Svelte components

## Usage

Just copy everything minus `.git` into a new project folder:

- Starting inside this folder: `rsync -r --exclude=.git --exclude=node_modules ./. ../new-svelte-project`
- `cd ../new-svelte-project`
- `git init`
- `npm ci`

To start development:

- `npm run dev`

Build and run production version of the app:

- `npm run build`
- `npm run start`