Installation

How to install SmartAC.com UI package.

Package Registry Authentication

To install the UI package, you must authenticate to the GitHub package registry. Additionally, you need to be a member of the SmartAC.com GitHub organization, as packages from internal projects cannot be accessed anonymously.

To authenticate, you must create a personal access token (classic) with the scope set to read:packages. Follow these steps to create your token:

  1. On the right sidebar, select your avatar.
  2. Select Settings.
  3. On the left sidebar, select Developer settings.
  4. Select Personal access tokens.
  5. Select ** Tokens (classic)**.
  6. In Note, enter a description for the token.
  7. Optionally, in Token description, enter a description for the token.
  8. In Expiration date, enter an expiration date for the token.
  9. Select read:packages in the Scopes section.
  10. Select Generate token.

Once created, copy the token immediately as it will not be displayed again. For additional details, refer to the GitHub documentation on personal access tokens..

Install the UI Package

In your project root directory, create or edit a .npmrc file and add the following:

//npm.pkg.github.com/:_authToken="${NPM_TOKEN}"

@smartacteam:registry=https://github.com/smartacteam/ui

Next, install the latest version of the UI package by running the following command:

NPM_TOKEN='<token>' npm install @smartacteam/ui

Replace <token> with the personal access token you created earlier.

Framework guides