Zum Hauptinhalt springen

Shared Packages

Ever Teams shares code across applications through a set of internal packages in the packages/ directory. These packages are managed as Yarn workspace packages.

Package Overview

Packagenpm NameDescription
packages/ui@ever-teams/uiShared UI component library built on shadcn/ui
packages/services@ever-teams/servicesAPI service layer for backend communication
packages/hooks@ever-teams/hooksReusable React hooks
packages/types@ever-teams/typesTypeScript type definitions
packages/constants@ever-teams/constantsShared constants and enums
packages/utils@ever-teams/utilsUtility functions
packages/eslint-config@ever-teams/eslint-configShared ESLint configuration
packages/ts-config@ever-teams/ts-configShared TypeScript compiler options

@ever-teams/ui

The shared UI component library, built on top of shadcn/ui and Radix UI.

Features

  • Pre-built, accessible UI components
  • Tailwind CSS-based styling
  • Customizable with CSS variables
  • Tree-shakeable exports

Components Include

  • Buttons, inputs, selects, checkboxes
  • Dialog, modal, popover, tooltip
  • Table, data table, pagination
  • Calendar, date picker
  • Tabs, accordion, collapsible
  • Card, badge, avatar
  • Command palette, combobox
  • Toast notifications
  • And many more...

Building

yarn build:ui

@ever-teams/services

API service layer providing typed API methods for communicating with the Ever Gauzy backend.

Modules

  • Auth — Authentication and session management
  • User — User profile operations
  • File — File upload and management
  • Task — Task CRUD operations
  • Projects — Project management

Building

yarn build:services

@ever-teams/hooks

A library of reusable React hooks shared across applications.

Building

yarn build:hooks

@ever-teams/types

TypeScript type definitions shared across the entire monorepo.

Building

yarn build:types

@ever-teams/constants

Shared constants, enums, and configuration values.

Building

yarn build:constants

@ever-teams/utils

General-purpose utility functions.

Building

yarn build:utils

@ever-teams/eslint-config

Shared ESLint configuration extending standard and TypeScript rules.


@ever-teams/ts-config

Shared TypeScript compiler options (tsconfig.json) used across all packages and apps.


Dependency Graph

Building All Packages

# Build all packages in dependency order
yarn build

# Build specific package
yarn build:ui
yarn build:services
yarn build:types
yarn build:constants
yarn build:hooks
yarn build:utils