Command Palette

Search for a command to run...

Getting started

Testing Guide

Testing a local Nimbus package in a consuming app.

Testing a local Nimbus package in portal-client-desktop

Prerequisites:

  1. Local access to the Nimbus package.
  2. portal-client-desktop repository cloned and set up.

In the nimbus-ui Repository

  1. Navigate to the Nimbus package repository in your terminal:
JSON
cd path/to/your/local/nimbus-ui/repo
  1. Build the package:
JSON
npm run build
  1. Create a package tarball:
JSON
npm pack
  1. Copy the full path of the generated tarball file (ending with .tgz).

In your local repository

  1. Go to your project repository where you want to test the Nimbus package.
JSON
cd path/to/your/local/repo
  1. Open the package.json file of your project.

  2. Locate the entry in the dependencies section referencing the Nimbus package, like this:

JSON
"@console/nimbus-ui": "v4.0.0",
  1. 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>",
  1. Save the package.json file.

  2. Install the updated Nimbus package locally:

JSON
npm install
  1. Start your local development server:
JSON
npm run start:dev

Now, 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.