Frontier UI Library
To Run Locally
- Clone the repo
git clone https://github.com/frontierdotxyz/frontier-ui.git
- Install deps:
go to root folder
cd frontier-ui yarn install
- Run storybook
yarn storybook
- Run All Test Cases
yarn test
- Run Test Cases with UI
yarn test:ui
To Build Library
- Run the below command in the root directory
yarn build
- This will generate a build folder "dist" , which will contain minified and bundled files
To publish the npm package
- Setup your npmrc account
npmrc <profile-name>
- Go to dist folder and run below command
npm init --scope=@name-of-org/package-name
- Publish it to a repo
npm publish --access public
OR
Follow this tutorial here