Skip to content

Repository files navigation

tea-cup-package

Monorepo containing components and utilities for react-tea-cup.

Workspace Packages

This monorepo manages the following sub-packages:


Getting Started

Prerequisites

Ensure you have Node.js and pnpm installed:

# Verify pnpm version
pnpm --version

Installation

Install the dependencies across the entire workspace and link local packages:

pnpm install

Build

Compile all the packages in the workspace in the correct topological order:

pnpm build

Workspace Scripts

All scripts are executed from the monorepo root using pnpm workspace filters:

Command Description
pnpm build Compile all packages in the workspace
pnpm check Run TypeScript type checking on all packages
pnpm lint Run ESLint check across the entire workspace
pnpm format Automatically format all codebase files with Prettier

Local Installation (Recommended)

To use these packages in a host application during development, clone this repository as a sibling to your project and reference them using pnpm links in your package.json:

parent-directory/
├── your-host-application/
└── tea-cup-package/           <-- This repository

1. Build the Shared Libraries

Before using them in your host application, build the packages:

cd tea-cup-package
pnpm install
pnpm build

2. Link in Host Application

In your host application's package.json, add the dependencies using relative paths:

"dependencies": {
  "@rinn7e/tea-cup-prelude": "link:../tea-cup-package/package/tea-cup-prelude",
  "@rinn7e/tea-cup-form": "link:../tea-cup-package/package/tea-cup-form",
  "@rinn7e/tea-cup-pagination": "link:../tea-cup-package/package/tea-cup-pagination",
  "@rinn7e/tea-cup-link-pagination": "link:../tea-cup-package/package/tea-cup-link-pagination",
  "@rinn7e/tea-cup-intersection-observer": "link:../tea-cup-package/package/tea-cup-intersection-observer",
  "@rinn7e/tea-cup-router": "link:../tea-cup-package/package/tea-cup-router",
  "@rinn7e/tea-cup-rte-toolkit": "link:../tea-cup-package/package/tea-cup-rte-toolkit"
}

Since the compiled assets (lib/ folders) are tracked in this repository, your host application will pick up the changes immediately after you run pnpm build in the tea-cup-package workspace.

About

Contain various packages for 'react-tea-cup' library

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages