examples/with-solid/README.md
A modern Turborepo starter for building SolidJS applications with a complete development setup. This starter comes equipped with the pnpm package manager, SolidStart v2 on Vite and Nitro for optimized builds, Tailwind CSS v4 for styling and ESLint for code quality.
This starter project leverages Turborepo to manage a monorepo structure that combines SolidStart applications with shared component libraries and configuration packages. It provides a robust setup for modern web development:
This example requires Node.js 24 or newer.
To bootstrap your new turborepo using this starter, simply run:
npx create-turbo@latest
This Turborepo includes the following packages/apps:
docs: a SolidStart app with Vitest component testsweb: a SolidStart app@repo/ui: a stub Solid component library shared by both solid applications@repo/eslint-config: shared ESLint flat configurations@repo/tailwind-config: Tailwind v4 configurationsBoth applications are built with SolidStart v2, which runs on Vite and the Nitro Vite plugin.
To build all apps and packages, run the following command:
cd with-solid
pnpm run build
To develop all apps and packages, run the following command:
cd with-solid
pnpm run dev
To run the Vitest component tests, run the following command:
cd with-solid
pnpm run test
[!TIP] Vercel Remote Cache is free for all plans. Get started today at vercel.com.
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd with-solid
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo:
MIT