npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fave-ui

v0.1.30

Published

React UI KiT by Fave

Downloads

41

Readme

Fave UI Components

A React UI library which is used Ant design as main library and applied Fave design system. Here is the list of technology that are used in this library:

Installation

# Using npm
npm install fave-ui
# Using yarn
yarn add fave-ui

Usage

import { Button } from 'fave-ui';

const App = () => (
  <>
    <Button type="primary">Button</Button>
  </>
);

Development

Clone the repo and create your own branch from develop branch based on the type of changes (e.g. feature/NAME_OF_FEATURE) and make a pull request to develop branch.

$ git clone [email protected]:kfit-dev/ui-components.git fave-ui
$ cd fave-ui
$ npm install // or yarn
$ npm run dev // yarn dev

The above code will open http://localhost:6006/ in your browser. You can open the URL manually if it didn't open automatically.

you can test your new component locally by using npm-link without publishing your changes to npm.

$ cd YOUR_FAVE_UI_FOLDER
$ npm link
$ cd YOUR_DESTINATION_PROJECT
$ npm link fave-ui

After completing your testing and publish our changes to npm, you can disable the npm-link and install the latest package from npm.

$ cd YOUR_DESTINATION_PROJECT
$ npm uninstall --no-save fave-ui && npm install

Scripts

There are several useful scripts in package.json that can be used to run the project from development to build.

  • yarn test: Lints the Javascript files and then runs the unit tests.
  • yarn test:watch: Lints the Javascript files and then runs the unit tests and watch the changes.
  • yarn lint: Lints the JavaScript files.
  • yarn prepublishOnly: Removes dist folder and builds the package.
  • yarn dev: Starts the development React Storybook.
  • yarn build-storybook: Builds storybook as a static web application.
  • yarn build: Builds all of the JavaScript files using Rollup.js.
  • yarn clean: Removes all untracked files (git clean -Xdf).
  • yarn storybook: Starts the development React Storybook.
  • yarn create-component: This command scaffolds a component with React components boilerplate. You can pass a component name for creating all the necessary files and folder for the component. For example, you can create a Button component with the following command:
yarn create-component Button

The following file tree will be generated:

/src/Button
├── /stories/
│   └── index.stories.js
├── index.js
├── style.css

Feel free to remove and update the generated files based on your needs.