This monorepo contains the packages for the React API Kit project.
Project Purpose: Provide a focused middleware layer for React/React Native applications to unify client-side authentication, token management, API communication, and polling against a single backend.
packages/core
(@react-api-kit/core
): The core library containing the main functionalities.
Install all dependencies for the monorepo packages:
npm install
Run these commands from the root directory:
- Build all packages:
npm run build
- Run tests for all packages:
npm test
- Run linter for all packages:
npm run lint
- Format code:
npm run format
- Clean build artifacts:
npm run clean
- Type check all packages:
npm run typecheck
To run commands within a specific package (e.g., core
), you can use npm run <script> --workspace=@react-api-kit/core
:
# Build only the core package
npm run build --workspace=@react-api-kit/core
# Start core package build in watch mode (for development)
npm run dev --workspace=@react-api-kit/core
Tests are run from the root of the directory
# Run tests
npm run test
# Run tests in watch mode
npm run test:watch
Please see the CONTRIBUTING.md file for details on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details (You should add a LICENSE file).