expensify-common
This is a collection of JS libraries and components which are used across various Expensify projects. These libraries are provided as-is, and the repos which use them will need to do their own bundling, minifying, and uglifying.
Installation
- Clone this repo to a directory of your choosing
- Run
npm install
to install all the dependencies
Development
Testing your code while you are developing
The best way to test your code while you are developing changes is via npm link
.
- Run
npm link
in the project root cd
into the project directory that has a dependency on expensify-common
- Run
npm link expensify-common
Alternatively, you can edit files directly in a project's node_modules
then apply those changes to this repository.
Proposing a Change (Non-Expensify Contributors)
- Fork this repository and create a new branch
- Open a PR to merge your changes
- An Expensify engineer will be automatically assigned to your PR
- They will review and accept your changes, merge them, then deploy a new version
Deploying a Change (Expensify Only)
- Create a new branch from master and run
npm run patch
- Push up the changes, create a PR, and get it reviewed and merged
- Publish a new version by following the instructions here