Socket
Book a DemoInstallSign in
Socket

@onewelcome/react-lib-components

Package Overview
Dependencies
Maintainers
4
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onewelcome/react-lib-components

This project provides React components built according to the [UI Component Library design](https://xd.adobe.com/view/1f7161d7-5ade-4e54-bb3d-6e4aa3a1d1a0-4a22/grid/). It uses the [DTS tool](https://weiran-zsd.github.io/dts-cli/) which provides for a cons

Source
npmnpm
Version
0.1.1-alpha
Version published
Weekly downloads
1.6K
87.86%
Maintainers
4
Weekly downloads
 
Created
Source

OneWelcome React Component Library

This project provides React components built according to the UI Component Library design. It uses the DTS tool which provides for a consistent setup and configuration.

Note: the package is publicly available.

Commands

Component library

Run lib locally:

npm start # or yarn 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 or yarn test.

npm test # or yarn test

Storybook

Run Storybook locally:

npm run storybook # or yarn storybook

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

Configuration

Code quality is set up for you with prettier, husky, and lint-staged. Adjust the respective fields in package.json accordingly.

Bundle analysis

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

Rollup

DTS uses Rollup as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.

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 on #releases slack channel.

Creating 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

FAQs

Package last updated on 05 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts