This repo contains Rubric's landing page, 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 appweb
: another Next.js appui
: a stub React component library shared by bothweb
anddocs
applications@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:
bun workspace [subrepo name] dev
To add a dependency to a subrepo, run:
bun workspace [subrepo name] add 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: