Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 605 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 605 Bytes

Components

What is it

Nx library for shared React components for different websites in this repo.

Build

pnpm nx run components:build

Test

pnpm nx run components:test

Format

pnpm nx run components:format

Use

A TypeScript alias been created in tsconfig.base.json in the root of the monorepo

{
  // ...
  "paths": {
    "@ga/components": ["components/src/index.ts"]
  } // ...
}

and then from TypeScript file in the monorepo you can import it

import { Footer } from '@ga/components';