This repo contains Rubric's, UI library, docs, and code config.
This makes it easier to
- Share code across projects
- Coordinate global style changes with a single PR
- Skip common setup in new projects: Tailwind, ESLint, Typescript, etc.
This monorepo includes the following packages/apps:
docs
: a Next.js appui
: a stub React component library used bydocs
application@rubriclab/eslint-config
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepotailwind-config
:tailwind.config.js
used throughout the monorepo
Each package/app is 100% Typescript.
This Turborepo has some additional tools already setup for you:
- Typescript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
bun build
To develop all apps and packages, run the following command:
bun dev
To develop a subrepo, run:
cd apps/[subrepo_name]
bun run dev
To add a dependency to a subrepo, run:
cd apps/[subrepo_name]
bun i dependency
To add a global dependency, run:
bun add -W dependency
Turborepo can use a technique known as Remote Caching to share build artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. Remote Caching has also been configured with Vercel by running:
npx turbo login
npx turbo link
Learn more about the power of Turborepo: