Starter boilerplate for a React/Typescript monorepo. Includes Storybook implementation, Linting/Testing scripts and pre-commit hooks for auto formatting.
Note: This repo uses pnpm package manager and Turborepo. Please read documentation for additional CLI options.
All turbo commands can be flagged with a --filter=<workspace-name> argument to trigger commands specifically for that workspace.
pnpm iInstall dependencies.turbo devRun workspace dev servers.turbo dev:storybookRun workspace Storybook servers.turbo testRun workspace tests.turbo buildStart workspace production build.turbo lintLint all workspaces packages.turbo formatFormat all workspace packages.turbo deployRun deploy script for all workspace packages.turbo gen create-componentFollow prompts to generate new React component, unit test, and Storybook story from a pre-made template.
apps/ folder contains all independently deployable applications. A template for a NextJS is included called nextjs_template.
packages/ folder contains all shared libraries which are consumed by other apps and packages. A template for a basic React component library is included called component_library_template.
configs/ folder includes all shared configuration files (Typescript, ESLint, Jest, etc.) which are consumed by other apps and packages.