Files
twenty/packages/twenty-docs/l/ar/developers/contribute/capabilities/frontend-development/frontend-commands.mdx
T
github-actions[bot] b77c65946f i18n - docs translations (#19952)
Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
2026-04-22 00:27:38 +02:00

88 lines
2.7 KiB
Plaintext

---
title: أوامر الواجهة الأمامية
icon: الطرفية
---
## الأوامر المفيدة
### "بدء التطبيق"
```bash
"npx nx start twenty-front"
```
### "إعادة توليد مخطط graphql بناءً على مخطط API graphql"
```bash
"npx nx run twenty-front:graphql:generate --configuration=metadata"
```
"أو"
```bash
"npx nx run twenty-front:graphql:generate"
```
### Lint
```bash
"npx nx run twenty-front:lint # مرر --fix لإصلاح أخطاء التدقيق"
```
## "الترجمات"
```bash
"npx nx run twenty-front:lingui:extract\nnpx nx run twenty-front:lingui:compile"
```
### تجربة
```bash
"npx nx run twenty-front:test # تشغيل اختبارات jest\nnpx nx run twenty-front:storybook:serve:dev # تشغيل storybook\nnpx nx run twenty-front:storybook:test # تشغيل الاختبارات # (يحتاج إلى تشغيل yarn storybook:serve:dev)\nnpx nx run twenty-front:storybook:coverage # (يحتاج إلى تشغيل yarn storybook:serve:dev)"
```
## "التقنية المستخدمة"
"المشروع يحتوي على تقنية بسيطة ونظيفة، مع الحد الأدنى من كود البويلر بليت."
"**التطبيق**"
* "[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/)"
**الاختبار**
* [Jest](https://jestjs.io/)
* "[Storybook](https://storybook.js.org/)"
**الأدوات**
* [Yarn](https://yarnpkg.com/)
* "[Craco](https://craco.js.org/docs/)"
* [Oxlint](https://oxc.rs/docs/guide/usage/linter.html)
## "الهيكلية"
### "التوجيه"
"[React Router](https://reactrouter.com/) يتعامل مع التوجيه."
To avoid unnecessary [re-renders](/l/ar/developers/contribute/capabilities/frontend-development/best-practices-front#managing-re-renders) all the routing logic is in a `useEffect` in `PageChangeEffect`.
### "إدارة الحالة"
[Jotai](https://jotai.org/) يتعامل مع إدارة الحالة.
"راجع [أفضل الممارسات](/l/ar/developers/contribute/capabilities/frontend-development/best-practices-front#state-management) لمزيد من المعلومات حول إدارة الحالة."
## "الاختبار"
"[Jest](https://jestjs.io/) يعمل كأداة لاختبار الوحدات بينما يعمل [Storybook](https://storybook.js.org/) لاختبار المكونات."
"يستخدم Jest بشكل رئيسي لاختبار دوال الأدوات وليس المكونات نفسها."
"Storybook لاختبار سلوك المكونات المعزولة، وكذلك عرض نظام التصميم."