Installation
CommunityJS is available as an npm package.
First install peer dependencies needed to make the library work:
Dependencies
- npm
- yarn
npm install @mui/material @mui/icons-material @emotion/react @emotion/styled react-intl
yarn add @mui/material @mui/icons-material @emotion/react @emotion/styled react-intl
Based on which package you want to install proceed as follows:
Install api-services:
- npm
- yarn
npm install @selfcommunity/types @selfcommunity/utils @selfcommunity/api-services
yarn add @selfcommunity/types @selfcommunity/utils @selfcommunity/api-services
Install react-core:
- npm
- yarn
npm install @selfcommunity/api-services @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-core
yarn add @selfcommunity/api-services @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-core
Install react-i18n:
- npm
- yarn
npm install @selfcommunity/react-i18n
yarn add @selfcommunity/react-i18n
Install react-templates:
- npm
- yarn
npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates
yarn add @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates
Install react-theme-default:
- npm
- yarn
npm install @selfcommunity/react-core @selfcommunity/react-ui @selfcommunity/react-theme-default
yarn add @selfcommunity/react-core @selfcommunity/react-ui @selfcommunity/react-theme-default
Install react-ui:
- npm
- yarn
npm install @selfcommunity/api-services @selfcommunity/react-core @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-ui
yarn add @selfcommunity/api-services @selfcommunity/react-core @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-ui