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
-eslint
configurations (includeseslint-config-next
)tsconfig
-tsconfig.json
s 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 build
To develop all apps and packages, run the following command:
pnpm i
pnpm dev
Run following command (from root) and select appropriate generator and modify generated files.
pnpm turbo gen
Available 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 |