More Premium Hugo Themes Premium Tailwind Themes

Monorepo

Turborepo + Sveltekit + PNPM + Tailwind + Histoire

Monorepo

Turborepo + Sveltekit + PNPM + Tailwind + Histoire

Author Avatar Theme by oneezy
Github Stars Github Stars: 91
Last Commit Last Commit: Dec 8, 2022 -
First Commit Created: Dec 18, 2023 -
default image

Overview

This monorepo is a starter template powered by PNPMTurborepo, Sveltekit, TailWindCSS, and Histoire. It allows for easy development and organization of multiple apps and websites in a single repository.

Features

  • Symlink routes to link multiple apps together.
  • Symlink static assets to share static files between apps.
  • Support for shared @packages/ folder between @apps/.
  • Build and preview multiple apps with pnpm commands.
  • Setup Component Stories for better component management.
  • Integration with Histoire for managing app routes.
  • Use of Turborepo, Sveltekit, and Tailwind for fast and efficient development.
  • Implementing Changesets for tracking changes in the codebase.

Installation

To install the monorepo starter, follow these steps:

  1. Install the required dependencies:
pnpm install
  1. Symlink static assets: To enable static assets in each app, symlink the static folder from the ./apps/+app/static directory to every app’s ./apps/my-app/static directory.

  2. Symlink app routes: If you want to link entire apps together as routes, symlink the ./apps/my-app/src/routes directory to the ./apps/+app/src/routes directory.

  3. Add Components: To add components, create them in the ./packages/components directory.

  4. Setup Prerequisites: Ensure you have the necessary prerequisites installed.

Summary

This monorepo starter provides a convenient way to develop and manage multiple apps and websites within a single repository. It offers features such as symlinked routes and static assets, support for shared packages, and integration with popular tools like Sveltekit and TailwindCSS. With easy installation and setup, this starter template is a great choice for projects requiring a monorepo architecture.