Getting started
Testing Guide
Testing a local Nimbus package in a consuming app.
Testing a local Nimbus package in portal-client-desktop
Prerequisites:
- Local access to the Nimbus package.
- portal-client-desktop repository cloned and set up.
In the nimbus-ui Repository
- Navigate to the Nimbus package repository in your terminal:
JSON
cd path/to/your/local/nimbus-ui/repo- Build the package:
JSON
npm run build- Create a package tarball:
JSON
npm pack- Copy the full path of the generated tarball file (ending with .tgz).
In your local repository
- Go to your project repository where you want to test the Nimbus package.
JSON
cd path/to/your/local/repo-
Open the
package.jsonfile of your project. -
Locate the entry in the dependencies section referencing the Nimbus package, like this:
JSON
"@console/nimbus-ui": "v4.0.0",- Replace
"@console/nimbus-ui": "v4.0.0"with the file path to the tarball from step 4 (replace<path-to-tarball>with the actual path):
JSON
"@console/nimbus-ui": "<path-to-tarball>",-
Save the package.json file.
-
Install the updated Nimbus package locally:
JSON
npm install- Start your local development server:
JSON
npm run start:devNow, with your local development server running, you can test the integration of the local Nimbus package within your project and observe the design system changes.