1.56.1 • Published 5 years ago

@brickblock/ui-components v1.56.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 years ago

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:

    	```bash

    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:

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
1.56.1

5 years ago

1.56.0

6 years ago

1.55.1

6 years ago

1.55.0

6 years ago

1.54.0

6 years ago

1.53.1

6 years ago

1.53.0

6 years ago

1.52.0

6 years ago

1.51.0

6 years ago

1.50.0

6 years ago

1.49.6

6 years ago

1.49.5

6 years ago

1.49.4

6 years ago

1.49.3

6 years ago

1.49.2

6 years ago

1.49.1

6 years ago

1.49.0

6 years ago

1.48.2

6 years ago

1.48.1

6 years ago

1.48.0

6 years ago

1.47.0

6 years ago

1.46.0

6 years ago

1.45.2

6 years ago

1.45.1

6 years ago

1.45.0

6 years ago

1.44.1

6 years ago

1.44.0

6 years ago

1.43.2

6 years ago

1.43.1

6 years ago

1.43.0

6 years ago

1.42.5

6 years ago

1.42.4

6 years ago

1.42.3

6 years ago

1.42.2

6 years ago

1.42.1

6 years ago

1.42.0

6 years ago

1.41.8

6 years ago

1.41.7

6 years ago

1.41.6

6 years ago

1.41.5

6 years ago

1.41.4

6 years ago

1.41.3

6 years ago

1.41.2

6 years ago

1.41.1

6 years ago

1.41.0

6 years ago

1.40.5

6 years ago

1.40.4

6 years ago

1.40.3

6 years ago

1.40.2

6 years ago

1.40.1

6 years ago

1.40.0

6 years ago

1.39.0

6 years ago

1.38.0

6 years ago

1.37.0

6 years ago

1.36.0

6 years ago

1.34.0

6 years ago

1.33.14

6 years ago

1.33.13

6 years ago

1.33.12

6 years ago

1.33.11

6 years ago

1.33.10

6 years ago

1.33.9

6 years ago

1.33.8

6 years ago

1.33.7

6 years ago

1.33.6

6 years ago

1.33.5

6 years ago

1.33.4

6 years ago

1.33.3

6 years ago

1.33.2

6 years ago

1.33.1

6 years ago

1.33.0

6 years ago

1.32.5

6 years ago

1.32.4

6 years ago

1.32.3

6 years ago

1.32.2

6 years ago

1.32.1

6 years ago

1.32.0

6 years ago

1.31.23

6 years ago

1.31.22

7 years ago

1.31.21

7 years ago

1.31.20

7 years ago

1.31.19

7 years ago

1.31.18

7 years ago

1.31.17

7 years ago

1.31.16

7 years ago

1.31.15

7 years ago

1.31.14

7 years ago

1.31.13

7 years ago

1.31.12

7 years ago

1.31.11

7 years ago

1.31.10

7 years ago

1.31.9

7 years ago

1.31.8

7 years ago

1.31.7

7 years ago

1.31.6

7 years ago

1.31.5

7 years ago

1.31.4

7 years ago

1.31.3

7 years ago

1.31.2

7 years ago