A vite template for creating a Preact App with typescript, tailwindcss, scss, eslint, prettier, vitest, husky and lint-staged. Also support electron to create a desktop app.
- Preact as basic framework
- hooks and signals
- tailwindcss + scss for style
- prettier + eslint for code style
- vitest for unit test and component test
- husky + lint-staged for pre-commit hook
- electron for desktop app
Use this template to create a new repo.
If you prefer to do it manually with the cleaner git history, you can do the following:
- download the template
npx degit zadzbw/vite-preact-template my-app
- push to your own repo
cd my-app
git init
git add .
git commit -m "commit message"
git remote add origin https://github.com/username/repositoryname.git
git push -u origin main
- install dependencies
npm install pnpm --global
pnpm install --frozen-lockfile
and then you can start develop your Preact App.