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

@brickblock/ui-components

v1.56.1

Published

Brickblock Common UI Components

Downloads

26

Readme

Brickblock UI & Core Components

This repo is a private npm package that gets consumed by other projects as an npm dependency.

NOTE: Please make sure to read through our Developer Handbook before committing code to this repo. It contains information about coding styleguides, deployment documentation etc.

How to use Components and CSS from this repo in other projects

Components

  1. Install the npm package:

    	```sh

    yarn add @brickblock/ui-components

  2. Import components with:

    import { Button } from '@brickblock/ui-components'
  3. Use components as you would use any other react component:

    <Button someCustomProp="someValue">Launch Rocket to Mars</Button>

CSS

TODO: This is not done, yet. First we need to create CSS exports and then describe how to use them here.

How to run

This is a react-storybook project that doesn't have a normal dev server. Instead, yarn start will fire up react-storybook on http://localhost:8081

0) Prerequisites

Chronic

Chronic runs a command quietly unless it fails to suppress overly verbose output It's part of moreutils and can be installed:

  • macOS: $ brew install moreutils
  • Debian: https://packages.debian.org/sid/utils/moreutils
  • Ubuntu: https://packages.ubuntu.com/search?keywords=moreutils
  • Alpine: https://pkgs.alpinelinux.org/package/edge/testing/x86/moreutils

Node.js

Yarn

1) Setup

yarn

2a) Run locally

yarn start

2b) Run with docker

yarn build:docker
yarn start:docker

How to run tests & other healthchecks

Quickstart: Run yarn healthcheck to execute all of the below in one go!

Tests & Coverage

Runs all tests, generates a coverage report and checks our test coverage is above the threshold specified in jest-config.js

yarn test

Hint: in Windows Git Bash flag --no-watchman must be added

Linters

Runs eslint on JavaScript files and stylelint on styles

yarn lint

Flow

Checks for typing errors with flow

yarn flow

List open TODOs and FIXMEs

Parses all *.js, *.css and *.sol files for the keywords TODO & FIXME and prints them out in a list

yarn todo

How to release a new version

Via CI

Every merge into master automatically releases a new version. You don't need to do anything 🔮🧙‍♂️✨

From Your Local Machine

In case CI is acting up and you need to urgently release a new version to npm, you can always do it manually:

  1. Make sure you're up to date
git pull origin master
  1. Create new release
yarn release

standard-version will figure out the right version number for us based on the conventional commits standard. It will automatically bump the version number, create a new git tag and update the CHANGELOG.md.

  1. Release to npm
npm publish

For this to work, make sure the shell environment variable $SECRET_NPM_TOKEN is properly set from wherever you run this command.

  1. Use in other projects
cd whatever-project-you-want-to-update
yarn upgrade @brickblock/ui-components --latest