twenty/packages/twenty-ui
Thaïs c5349291c8
chore: setup twenty-ui absolute path alias (#4732)
Split from https://github.com/twentyhq/twenty/pull/4518

- Setup `@ui/*` as an internal alias to reference `twenty-ui/src`.
- Configures twenty-front to understand the `@ui/*` alias on development
mode, so twenty-ui can be hot reloaded.
- When building on production mode, twenty-front needs twenty-ui to be
built beforehand (which is automatic with the `dependsOn` option).
- Configures twenty-front to understand the `@ui/*` alias when launching
tests, so there is no need to re-build twenty-ui for tests.

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-04-04 15:38:01 +02:00
..
.storybook chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
scripts chore: add script to generate twenty-ui barrels before build (#4707) 2024-04-04 12:14:20 +02:00
src chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
.eslintrc.cjs chore: use common eslint config for most packages (#4705) 2024-04-04 12:05:26 +02:00
jest.config.ts chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
package.json chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
project.json chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
README.md Setup the foundation for Twenty UI library. (#4423) 2024-03-13 14:21:18 +01:00
setupTests.ts chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
tsconfig.json chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
tsconfig.lib.json chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
tsconfig.spec.json chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00
tsconfig.storybook.json chore: use common eslint config for most packages (#4705) 2024-04-04 12:05:26 +02:00
vite.config.ts chore: setup twenty-ui absolute path alias (#4732) 2024-04-04 15:38:01 +02:00

Twenty UI

This library was generated with Nx.

Building

Run yarn nx build twenty-ui to build the library.

Storybook Server

Run yarn nx start twenty-ui to start the storybook development server on localhost:6006.

Running unit tests

Run yarn nx test twenty-ui to execute the unit tests via Jest.