Skip to content

code-fiddle/react-flow-playground

 
 

Repository files navigation

Turborepo Bootstrap

Includes:

  • Apps:
    • React Mobx Starter App
  • Packages:
    • Shared tsconfigs
    • Shared eslint
    • Shared MobX types
    • Shared Types
    • Shared UI Components

Good things to know

  • Package Manager: pnpm - advantages: workspaces, just one node_modules folder with symlinks
  • Shared Packages can be included into apps via package name:
{
  ...
  "dependencies": {
    ...
    "shared-types": "workspace:*"
    ...
  }
}

Can be imported into ts files with:

import { CatRoute } from "shared-types";

Example: cats.ts

Utilities

This turborepo has some additional tools already setup for you:

Setup

This repository is used in the npx create-turbo@latest command, and selected when choosing which package manager you wish to use with your monorepo (pnpm).

Build

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

cd my-turborepo
pnpm run build

Develop

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

cd my-turborepo
pnpm run dev

Useful Links

Learn more about the power of Turborepo:

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.2%
  • HTML 7.4%
  • JavaScript 5.7%
  • Other 0.7%