This is the Mirage UI Kit library. This project is intended to streamline the processs of building web projects by normalizing all of the web components.
-
Use the command npm install to install all packages and dependencies
-
To open the development server run npm run dev. This will open on your localhost branch
-
This project utilizes Storybook to open storybook run the command npm run storybook
To begin with, we need to let npm know that any projects prefixed with @mirage-ar need to pull from GitHub Packages and not npm. To do so folow these simple steps:
-
Generate a new
.npmrcfile scoped to the same level as yourpackage.jsonfile. -
Within this create a new line and input
@mirage-ar:registry=https://npm.pkg.github.com
Now to install the package to a project follow the listed steps:
-
Login to GitHub on the web, and generate-a-new-token with the read/ write packages permissions. This needs to be a classic token.
-
In the project you are adding the UI Kit to, run
$ npm login --scope=@mirage-ar --registry=https://npm.pkg.github.com. -
Here you will input your username, the classic auth token you generated, and a public email address.
-
Once you eneter the required details, a temporary access code will be sent to the public email provided. Input this public access code to authorize with GitHub-Packages.
-
Congratulations! You should now be able to run
npm installand begin using the Mirage UI Kit.