Collection of UI packages used for Enterwell projects.
This repository includes the following:
@enterwell/react-ui- React component library
@enterwell/react-hooks- React hooks library
@enterwell/react-mui-hooks- React MUI hooks library
docs- Documentation app (built with nextra) available at enterwell.github.io/uieslint-config-custom-eslintconfigurations (includeseslint-config-next)tsconfig-tsconfig.jsons used throughout the monorepo
- nvm for Windows
- Run
nvm install lst && nvm use lts - Optionally install Node 18 (LTS) manually from Node.js Download page
- Run
- pnpm
- Visual Studio Code (optional)
Open workspace file ui.code-workspace with VS Code or your favorite editor.
To build all apps and packages, run the following command:
pnpm i
pnpm buildNote: Run pnpm build before pnpm dev to ensure that all packages have required files built and ready.
To develop all apps and packages, run the following command:
pnpm i
pnpm devRun following command (from root) and select appropriate generator and modify generated files.
pnpm turbo genAvailable generators:
| Generator | Description | Command |
|---|---|---|
| component | Creates react component in react-ui package along with basic documentation. |
pnpm turbo gen component |
| react-hook | Creates react hook in react-hooks package alogn with basic documentation. |
pnpm turbo gen react-hook |
| react-mui-hook | Creates react hook in react-mui-hooks package alogn with basic documentation. |
pnpm turbo gen react-mui-hook |