Skip to content
Vy logo
Guides

How to test Spor locally

A guide to how you can test the spor-react package locally with other apps.

You may want to test changes to components with your app before releasing a new version of Spor. This is very easy, and can be done in just a few steps.

1. In Spor, navigate to /packages/spor-react in the terminal

cd packages
cd spor-react

2. run npm pack to create a .tgz package in the repository

npm pack

This will create a file named something like vygruppen-spor-react-10.9.2.tgz (the version will differ). You may move this wherever you want.

3. In your app, install the local package in the root of your project. Remember to update the version and file path.

npm install --save ../spor/packages/spor-react/vygruppen-spor-react-10.9.2.tgz

And voilà, the spor-react package should be updated with your local package and is ready to be tested. Your package.json installation should look something like this:

"@vygruppen/spor-react": "file:../spor/packages/spor-react/vygruppen-spor-react-10.9.2.tgz",

Please report any trouble to us in the repository issues, or #team-kanaler on slack.