Local Integration Testing
In this guide, we'll walk through how you can integrate your new HSDS: React updates with local projects.
Creating a beta build
The simplest way to do this is to create a new beta build for HSDS: React.
To do this, run this command:
You'll be prompted to select a version to upgrade to.
Note: The version numbers (below) may be different when you run this.
Other (specify)
It is recommended that you select the Other (specify)
option. This allows you to create a (unique) namespaced release.
From the above example, you'll be asked to specify your own version after selecting Other (specify)
:
For this guide, we'll enter in 2.6.8-hello-0
:
Next, you'll be asked to specify the tag for your release.
Note: This list (below) may be different when you run this.
You can either select next
(if you're confident this release will be 👍). If not, or if you want to release under a custom tag, select Other (specify)
.
For this example, we'll release under a custom tag of hello
:
Congrats! You just created a custom beta release!
Prepatching
To easiest thing to do would be to select prepatch
. From the above example, you'll be asked to confirm after selecting prepatch
:
Press Enter
, or type Y
+ Enter
.
Congrats! You just created a prepatch beta release!
Integration with local development
Awesome! We just released a custom beta build with the version `@helpscout/hsds-react@v2.6-8-hello-0.
To test it out in your local development project, simply version bump the @helpscout/hsds-react
version in your project's package.json
.
And that's it 🙏! You've successfully integrated your newly custom beta build with your local project.
(Beta) Build and repeat
Feel free to create new beta builds as needed! Repeat the steps above until you're confident the update is ready for prime time!
What about npm link
?
npm link
?Unfortunately, setting up npm link
with this project is (very) tedious and slow. We've explored various ways to automate the linking process. The results were inconsistent and very slow.
As of this moment, it's actually much more efficient to create and release beta builds.
Last updated