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

@onewelcome/react-lib-components

v6.6.0

Published

[![CircleCI status](https://circleci.com/gh/onewelcome/react-lib-components.svg?style=svg)](<https://circleci.com>) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=onewelcome_react-lib-components&metric=alert_status&token=

Downloads

380

Readme

OneWelcome React Component Library

CircleCI status Quality Gate Status Vulnerabilities Coverage

This project provides React components built according to the OneWelcome design. We recommend visiting our Storybook page to see the components in action.

Note: the package is publicly available on npm.

Commands

Component library

When you are developing for the component library, you're going to want to run the Typescript compiler, test watcher and storybook. Please see the commands below for more information.

Run the Typescript compiler:

npm start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To run tests, use npm test

npm test

For running and watching tests, use npm test -- --watch.

npm test -- --watch

Storybook

Run Storybook locally:

npm run storybook

All at once

When developing stories, components and tests at the same time, it may be easier to run the command npm run dev. This will run the commands start, test:watch and storybook in parallel.

npm run dev

Development

Please see the CONTRIBUTING.md file for information on how to develop for the Component Library.

Adding new icons

See adding icons to font manual

Code quality

Code quality is set up for you with prettier, husky, and lint-staged. This is to ensure that formatting is the same in every file of the component library. If you would like to suggest a change, please let the SASSy team know.

Bundle analysis

Calculates the real cost of your library using size-limit with npm run size and visualise it with npm run analyze.

Rollup

We use Rollup as a bundler and generate multiple rollup configs for various module formats and build settings. We output both CommonJS and Ecmascript Modules format. Treeshaking is supported and will work if your application is setup correctly and is built for production.

TypeScript

tsconfig.json is set up to interpret dom and esnext types, as well as react for jsx. Adjust according to your needs.

Release

The publishing process is fired by git tag creation. CircleCI builds a package and publishes it to the public npmjs.com registry. Release notes should be provided via GitHub UI. After a successful release, the release notes are published via Slack.

Creating a release

Follow these steps to create a release:

  • note all changes introduced from the last release
  • create a release on the GitHub repository page:
    • determine new version (bugfix/minor/major)
    • put proper release notes based on previous releases
    • click on the CREATE RELEASE button
  • check if the release is published on https://www.npmjs.com/package/@onewelcome/react-lib-components