Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubriclab/rubric
Monorepo for Rubric resources
https://github.com/rubriclab/rubric
monorepo turborepo
Last synced: about 2 months ago
JSON representation
Monorepo for Rubric resources
- Host: GitHub
- URL: https://github.com/rubriclab/rubric
- Owner: RubricLab
- License: other
- Created: 2023-05-25T14:08:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T16:29:32.000Z (about 2 months ago)
- Last Synced: 2024-11-09T17:26:15.400Z (about 2 months ago)
- Topics: monorepo, turborepo
- Homepage: https://rubriclab.com
- Size: 7.2 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rubric Monorepo
### Home of Rubric Labs
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.## What's inside?
This monorepo includes the following packages/apps:
### Apps and Packages
- `docs`: a [Next.js](https://nextjs.org/) app
- `ui`: a stub React component library used by `docs` application
- `@rubriclab/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
- `tailwind-config`: `tailwind.config.js` used throughout the monorepoEach package/app is 100% [Typescript](https://www.typescriptlang.org/).
### Utilities
This Turborepo has some additional tools already setup for you:
- [Typescript](https://www.typescriptlang.org/) for static type checking
- [ESLint](https://eslint.org/) for code linting
- [Prettier](https://prettier.io) for code formatting### Build
To build all apps and packages, run the following command:
```sh
bun build
```### Develop
To develop all apps and packages, run the following command:
```sh
bun dev
```To develop a subrepo, run:
```sh
cd apps/[subrepo_name]
bun run dev
```To add a dependency to a subrepo, run:
```sh
cd apps/[subrepo_name]
bun i dependency
```To add a global dependency, run:
```sh
bun add -W dependency
```### Remote Caching
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/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:
```sh
npx turbo login
npx turbo link
```## Useful Links
Learn more about the power of Turborepo:
- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)