Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 517 Bytes

File metadata and controls

4 lines (3 loc) · 517 Bytes

Truss Development Guidelines

  • After editing packages/truss/src/generate.ts, always run yarn codegen from the repo root to regenerate the Css.ts output files (e.g. packages/app/src/Css.ts, packages/template-tachyons/src/Css.ts). Never manually edit generated Css.ts files.
  • In packages/truss/src/plugin/transform.test.ts, assert full transform output with expectTrussTransform(...).toHaveTrussOutput(expectedCode, expectedCss). Do not use toContain or not.toContain for partial string checks.