- Fork this repository to your own GitHub account and then clone it to your local device.
- Create a new branch
git checkout -b MY_BRANCH_NAME
- Install yarn:
npm install -g yarn
- Install the dependencies:
yarn
Running all unit tests:
yarn run test
- Run the make command
link-packages
within your terminal
make link-packages
This will create a symlink for all searchkit libraries to the examples/next application
- At Searchkit root, keep the two following commands running in the background. Order of execution matters (needs to be core and then UI). This builds the libraries for example app to use. These commands will also continue to watch for changes and rebuild
yarn run dev:core
in terminal / shell 1
yarn run dev:ui
in terminal / shell 2
- Run the next application in local development mode.
cd ./examples/next && yarn start
in shell 3
Changes to any of the packages will automatically reload the next example app
- Once you applied your changes and want to remove symlinks, run the make command
unlink-packages
make unlink-packages
- For your changes, create unit tests for coverage. Its advisable to run
unlink-packages
(above command) as your unit tests may not work as expected.