@stryber/stryber-react-ui-components
TypeScript icon, indicating that this package has built-in type declarations

0.0.25 • Public • Published

Stryber React UI Components (Matterhorn)

Description

UI library for React

How to Run in Storybook mode (for demo and development purposes)

  1. Run following commands in the terminal:
npm i
npm start
  1. Browse to 'http://localhost:9001/' (should normally open automatically after step 1)

Using the library within other projects

Projects that would use this package have two options of how to install and import this private library within our organization:

a) Install as an NPM package from GitHub registry (THE RIGHT WAY).

  1. Create an '.npmrc' file at the root of the project that will be using Matterhorn library.

'.npmrc' file contents:

@stryberventures:registry=https://npm.pkg.github.com/stryberventures
  1. Authorize to your GitHub account and create a new 'Personal Access Token' (https://github.com/settings/tokens). This token should have read:packages permission checked.

  2. Copy the created TOKEN and use it to create an '/.npmrc' file located in the '' (home) folder of your user:

//npm.pkg.github.com/:_authToken=TOKEN
  1. After this The package can be installed by typing the following command in the terminal:
npm i @stryberventures/stryber-react-ui-components@0.0.8 --save

b) Install directly from the git repository's URL by typing the following command in the terminal (THE EASIER WAY):

npm i git+ssh://git@github.com/stryberventures/stryber-react-ui-components.git#0.0.8

How to build library for production

npm i
npm run build

How to publish library to GitHub npm registry (Beta)

  1. Create a personal access token in the "Developer settings" page on GitHub (https://github.com/settings/tokens)

Note: Your account must have appropriate GitHub permissions for you to be able to publish it

  1. Create '~/.npmrc' file:
//npm.pkg.github.com/:_authToken=TOKEN

Note: Full guide can be found here https://help.github.com/en/github/managing-packages-with-github-package-registry/configuring-npm-for-use-with-github-package-registry

  1. Publish this package to GitHub npm registry by running following command(s) in the terminal:
npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @stryber/stryber-react-ui-components

Weekly Downloads

0

Version

0.0.25

License

none

Unpacked Size

928 kB

Total Files

119

Last publish

Collaborators

  • jhuebner