Solid template built with:
vite
+typescript
+eslint
+prettier
-> dev productivity@solid-primitives
-> common primitives (similar to custom hooks orreact-use
in 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-ui
in 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:coverage
Builds 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 build
You can deploy the dist
folder to any static host provider (netlify, surge, now, etc.)
Todos:
- fix all tests
- add
/docs
folder, including all my decisions why or technical considerations. - use router routes configuration object, instead of
Routes
. Currentlyv0.8.2
not 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.3
not possible. Using"type": "module"
inpackage.json
breaks the app. Importingimport 'solid-devtools'
inindex.tsx
also breaks the app. - solidjs inside react. Currently
reactjs-solidjs-bridge
library 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.