实用命令
启动应用
根据API graphql schema重新生成graphql schema
Lint
翻译
测试
技术栈
项目有一个干净且简单的技术栈,使用最少的样板代码。 应用 测试 工具架构
路由
React Router 负责处理路由。 为了避免不必要的 re-renders,所有路由逻辑都在PageChangeEffect中的 useEffect 中。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
npx nx start twenty-front
npx nx run twenty-front:graphql:generate --configuration=metadata
npx nx run twenty-front:graphql:generate
npx nx run twenty-front:lint # pass --fix to fix lint errors
npx nx run twenty-front:lingui:extract
npx nx run twenty-front:lingui:compile
npx nx run twenty-front:test # run jest tests
npx nx run twenty-front:storybook:serve:dev # run storybook
npx nx run twenty-front:storybook:test # run tests # (needs yarn storybook:serve:dev to be running)
npx nx run twenty-front:storybook:coverage # (needs yarn storybook:serve:dev to be running)
PageChangeEffect中的 useEffect 中。
Was this page helpful?