This template is to be used for frontend applications.
- State management + persistence with
valtio
andPersistableStore
- Around 13.32kb after brotli compression (this includes everything) 😱
preact
under the hood withpreact/compat
makes it compatible with virtually anyreact
library but still makes it faster- Full TypeScript support — no dangling types
vite
packager and devtools make building and development lightning fasttailwind-css
built-in with type-safe class names- GitHub Actions that lint and check the code on pull requests
prettier
andeslint
configured, enabled and formatting your code on save- List of recommended extensions for VSCode
- It is important to keep the bundle small, so a
stats.html
file is generated onyarn build
to visually show you the bundle size
- Install dependencies with
yarn
- Run the server with
yarn start
yarn build
— builds the app for production to thedocs
folderyarn lint
— checks if the code is linted and formattedyarn start
— runs the app in the development modeyarn generate-css-types
— generates the CSS types fortailwind-css
yarn update
— builds the code and pushes it to git remote
Inspired from https://github.com/Borodutch/frontend-starter