Socket
Socket
Sign inDemoInstall

@blockchain-com/components

Package Overview
Dependencies
Maintainers
4
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockchain-com/components

Blockchain.com components library


Version published
Weekly downloads
29
decreased by-23.68%
Maintainers
4
Weekly downloads
 
Created
Source

js-standard-style code style: prettier Conventional Commits

Blockchain Components

The library Blockchain Components is based on React and styled-components. It contains basic components, "atoms", and more complex "molecules" that are used on the Blockchain.com ecosystem.

Tooling

Both yarn and npm are supported. The commands are given using npm however you can use the yarn equivalent and it will Just Work™

Installation

  1. Just a quick npm i blockchain-info-components and you are good to go!
  2. Use your favourite bundler to import the fonts (.woff files)

Hacking

  1. Ensure Node version >= 8.0 is installed
  2. Install packages: npm i
  3. Start application in dev mode: npm run start
  4. The library will now be accessible at localhost:6006

Architecture

This library follows the Atomic Design principles.

An additional attention has be taken to ensure that all components are available and fully functional accross major web browsers*, as well as responsive on any screen sizes.

Browsers with > 1% usage:

  • IE 11
  • Safari 11+
  • Chrome / Edge / Firefox latest 2 major versions

Release

To create a new release, just run npm version patch|minor|major

Please make sure that you are on master with a clean git status first

Once the versioning pull request is merged, you can generate the changelog using: git-changelog -t @LAST-VERSION-HERE@

git-changelog can be installed with the following: npm i -g git-changelog

Code Quality

Linting

The coding style rules are defined by Prettier and enforced by Eslint The "good practices™" that we follow are defined by the Javascript Standard Style

The following commands are available:

  • npm run lint:js Lints JS code
  • npm run lint:css Lints styled components

Unit Tests

Please execute npm test to run the unit tests

Testing is done using Jest and Enzyme.

Git Hooks

We use Husky to automatically deploy git hooks

On every git commit and git push we run the unit tests and the linting tasks.

FAQs

Package last updated on 30 Jul 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc