stevenriggs / react-library

A library of React components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publish npm Package

react-library

A library of React components used for ReactJS applications.

Build

  • Make sure to set the version in package.json.
  • When a new GitHub release is created, a GitHub workflow will launch to build a package for that release.

Installation

You have to EITHER login before you can install a package.

npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: YOUR-GITHUB-TOKEN
> Email: PUBLIC-EMAIL-ADDRESS

OR use a .npmrc file

  • Create a .npmrc file at the root of your project with this contents
registry=https://npm.pkg.github.com/ukhc
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_AUTH_TOKEN

Then install the package

npm install @stevenriggs/react-library

Install bootstrap

npm install boostrap

The following line should be included in your src/index.js or App.js file

import 'bootstrap/dist/css/bootstrap.min.css';

Reference

About

A library of React components


Languages

Language:JavaScript 92.3%Language:HTML 7.3%Language:Dockerfile 0.4%