Back to Turborepo

Solid-Turborepo Starter

examples/with-solid/README.md

2.10.123.5 KB
Original Source

Solid-Turborepo Starter

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.


Table of Contents

Overview

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:

Getting Started

This example requires Node.js 24 or newer.

To bootstrap your new turborepo using this starter, simply run:

sh
npx create-turbo@latest

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • docs: a SolidStart app with Vitest component tests
  • web: 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 configurations

Both applications are built with SolidStart v2, which runs on Vite and the Nitro Vite plugin.

Build & Develop

Build

To build all apps and packages, run the following command:

cd with-solid
pnpm run build

Develop

To develop all apps and packages, run the following command:

cd with-solid
pnpm run dev

Test

To run the Vitest component tests, run the following command:

cd with-solid
pnpm run test

Remote Caching

[!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:

License

MIT