Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ldgit/template-svelte
https://github.com/ldgit/template-svelte
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ldgit/template-svelte
- Owner: ldgit
- License: gpl-3.0
- Created: 2021-01-23T19:25:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-20T20:43:55.000Z (over 3 years ago)
- Last Synced: 2024-10-05T08:05:29.551Z (about 1 month ago)
- Language: JavaScript
- Size: 719 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`