Files
twenty/packages/twenty-docs/l/ro/developers/contribute/capabilities/frontend-development/frontend-commands.mdx
T
Charles Bochet 2674589b44 Remove any recoil reference from project (#18250)
## Remove all Recoil references and replace with Jotai

### Summary

- Removed every occurrence of Recoil from the entire codebase, replacing
with Jotai equivalents where applicable
- Updated `README.md` tech stack: `Recoil` → `Jotai`
- Rewrote documentation code examples to use
`createAtomState`/`useAtomState` instead of `atom`/`useRecoilState`, and
removed `RecoilRoot` wrappers
- Cleaned up source code comment and Cursor rules that referenced Recoil
- Applied changes across all 13 locale translations (ar, cs, de, es, fr,
it, ja, ko, pt, ro, ru, tr, zh)
2026-02-26 10:28:40 +01:00

91 lines
2.4 KiB
Plaintext

---
title: Comenzi Frontend
---
## Comenzi utile
### Pornirea aplicației
```bash
npx nx start twenty-front
```
### Regenerează schema graphql pe baza schemei graphql a API-ului
```bash
npx nx run twenty-front:graphql:generate --configuration=metadata
```
SAU
```bash
npx nx run twenty-front:graphql:generate
```
### Lint
```bash
npx nx run twenty-front:lint # utilizați --fix pentru a corecta erorile de lint
```
## Traduceri
```bash
npx nx run twenty-front:lingui:extract
npx nx run twenty-front:lingui:compile
```
### Test
```bash
npx nx run twenty-front:test # rulați teste jest
npx nx run twenty-front:storybook:serve:dev # rulați storybook
npx nx run twenty-front:storybook:test # rulați testele # (are nevoie de yarn storybook:serve:dev pentru a rula)
npx nx run twenty-front:storybook:coverage # (are nevoie de yarn storybook:serve:dev pentru a rula)
```
## Tehnologii Utilizate
Proiectul are un stack curat și simplu, cu cod boilerplate minim.
**Aplicație**
* [React](https://react.dev/)
* [Apollo](https://www.apollographql.com/docs/)
* [GraphQL Codegen](https://the-guild.dev/graphql/codegen)
* [Jotai](https://jotai.org/)
* [TypeScript](https://www.typescriptlang.org/)
**Testare**
* [Jest](https://jestjs.io/)
* [Storybook](https://storybook.js.org/)
**Instrumente**
* [Yarn](https://yarnpkg.com/)
* [Craco](https://craco.js.org/docs/)
* [ESLint](https://eslint.org/)
## Arhitectură
### Rutare
[React Router](https://reactrouter.com/) se ocupă de rutare.
Pentru a evita [re-redări](/l/ro/developers/contribute/capabilities/frontend-development/best-practices-front#managing-re-renders) inutile, toată logica de rutare se află în `useEffect` în `PageChangeEffect`.
### Managementul stării
[Jotai](https://jotai.org/) se ocupă de managementul stării.
Consultați [cele mai bune practici](/l/ro/developers/contribute/capabilities/frontend-development/best-practices-front#state-management) pentru mai multe informații despre managementul stării.
## Testare
[Jest](https://jestjs.io/) servește ca instrument pentru testarea unităților, în timp ce [Storybook](https://storybook.js.org/) este pentru testarea componentelor.
Jest este utilizat în principal pentru testarea funcțiilor utilitare, nu a componentelor în sine.
Storybook este pentru testarea comportamentului componentelor izolate, precum și pentru afișarea sistemului de design.