Solid template built with:
vite+typescript+eslint+prettier-> dev productivity@solid-primitives-> common primitives (similar to custom hooks orreact-usein React)@solidjs/router-> routingvitest+@solidjs/testing-library-> unit test, integration test, coveragemsw-> browser and server mockingtailwindcss+tailwindcss-animate+tailwind-merge+daisyui-> styling@formkit/auto-animate-> automate transition animation when component mount/unmount@kobalte/core-> unstyled UI component library (similar toradix-uiin React)axios+@tanstack/solid-query-> data fetchingzod-> schema validation@felte/solid-> form management@iconify-icon/solid-> icon on demand (based on web-component)type-fest-> useful type helpers
# install deps
$ pnpm install
# init msw for browser mocking
$ pnpm msw:init
# Runs the app
$ pnpm start# run test
$ pnpm test
# coverage with instanbul
$ pnpm test:coverageBuilds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
# build app
$ pnpm buildYou can deploy the dist folder to any static host provider (netlify, surge, now, etc.)
Todos:
- fix all tests
- add
/docsfolder, including all my decisions why or technical considerations. - use router routes configuration object, instead of
Routes. Currentlyv0.8.2not possible. Currently, using router configuration object OR separate the routes in a component breaks the app.Uncaught Error: Make sure your app is wrapped in a <Router /> - integrate
solid-devtools. Currentlyv0.27.3not possible. Using"type": "module"inpackage.jsonbreaks the app. Importingimport 'solid-devtools'inindex.tsxalso breaks the app. - solidjs inside react. Currently
reactjs-solidjs-bridgelibrary exists, but the DX is so horrible. If we want to run both libraries side-by-side, we need to have separate Vite configs for React and Solid JSX. While both are JSX, they require different pragmas.