This blui-react-native leverages the power of nx to manage a collection of Brightlayer UI React Native libraries and example projects within a single codebase. This approach, known as a monorepo, offers a structured and efficient way to develop and maintain multiple interconnected projects.
Prerequisites:
Node.js and npm installed (https://nodejs.org/en/download/package-manager)
Clone the Repository:
git clone https://github.com/etn-ccis/blui-react-native.git
Install Dependencies:
cd blui-react-native
yarn install
This will install all dependencies for the monorepo and its libraries.
Build a Library:
npx nx build <library-name>
Run a Library Example:
npx nx serve <example-name>
Start the Development Server (for all examples):
npx nx serve all
Run Tests for a Library/Example:
npx nx test <library-name/example-name>
Run Tests for All Libraries:
npx nx test all
Run Lint for a Library/Example:
npx nx lint <library-name/example-name>
Run Tests for All Libraries:
npx nx lint all
Run Prettier for a Library/Example:
npx nx format:write <library-name/example-name>
Run Tests for All Libraries:
npx nx format:write all