0.73.0 • Published 10 months ago

@nbcuniversal-paint/nbcu-react-components v0.73.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 months ago

NBCU React JS components library

Repository includes React Styleguidedist for demo and development.

NPM package contains /src/components only.

Setup repo and styleguide

git clone git@bitbucket.org:nbcuniversal/nbcu-react-components.git

cd nbcu-react-components/

npm install

You cannot add @nbcuniversal-paint/nbcu-react-components as a dependency of itself, but you can link to imports work.

npm link @nbcuniversal-paint/nbcu-react-components

Run

npm run styleguide

Include package in project

npm i @nbcuniversal-paint/nbcu-react-components --save

Formatting Code Automatically

Prettier is an opinionated code formatter with support for JavaScript, CSS and JSON. With Prettier you can format the code you write automatically to ensure a code style within your project. See the Prettier's GitHub page for more information, and look at this page to see it in action.

To format our code whenever we make a commit in git, we need to install the following dependencies:

npm install --save husky lint-staged prettier

Now we can make sure every file is formatted correctly by adding a few lines to the package.json in the project root.

Add the following line to scripts section:

  "scripts": {
+   "precommit": "lint-staged",
    "prepush": "npm run lint && npm run test",
    "prepare": "./node_modules/.bin/nwb build-react-component",

NOTES ::

"prepublish": "./node_modules/.bin/babel ./src/components --out-dir ./dist/components --source-maps --presets es2015,react-app --plugins babel-plugin-add-module-exports",
"build": "./node_modules/.bin/babel ./src/components --out-dir ./dist/components --source-maps --presets es2015,react-app --plugins babel-plugin-add-module-exports",

Commits & Releases

Releases are made on the develop branch automatically determined by semantic-release during the pipeline build.

Commit messages are linted and must follow the configured format conventional in order for releases to be made.

Commit format:

type(SCOPE): commit message

Examples:

fix(logger): fixes incorrect status code :bug:
feat(users): adds persistent auth :seedling:

Adds persistent authentication using localstorage to store jwt token's and timestamps to automatically refresh the access token using a web worker.

Commit types:

  'build',
  'ci',
  'chore',
  'docs',
  'feat',
  'fix',
  'perf',
  'refactor',
  'revert',
  'style',
  'test'

The commit message can contain the following:

  • :seedling: :seedling: when adding a new feature
  • :bug: :bug: when fixing a bug
  • :books: :books: when adding or updating documentation
  • :nail_care: :nail_care: when making changes to code style (e.g. lint settings)
  • :recycle: :recycle: when refactoring code
  • :fire: :fire: when removing code or files (including dependencies)
  • :racehorse: :racehorse: when improving performance
  • :white_check_mark: :white_check_mark: when adding or updating tests
  • :construction_worker: :construction_worker: when updating the build process
  • :bowtie: :bowtie: when updating CI
  • :house: :house: when performing chores
  • :new: :new: when adding a new dependency
  • :arrow_up: :arrow_up: when upgrading a dependency
  • :arrow_down: :arrow_down: when downgrading a dependency
  • :back: :back: when reverting changes
0.73.0

10 months ago

0.72.0

2 years ago

0.71.0

2 years ago

0.70.1

2 years ago

0.70.0

2 years ago

0.69.0

3 years ago

0.68.0

3 years ago

0.67.0

3 years ago

0.66.0

3 years ago

0.65.0

3 years ago

0.64.0

3 years ago

0.63.0

3 years ago

0.62.0

3 years ago

0.61.1

3 years ago

0.61.0

3 years ago

0.60.0

3 years ago

0.59.0

3 years ago

0.58.0

3 years ago

0.57.0

3 years ago

0.56.0

3 years ago

0.55.0

3 years ago

0.54.0

3 years ago

0.53.0

3 years ago

0.52.0

3 years ago

0.51.0

3 years ago

0.50.0

3 years ago

0.49.0

3 years ago

0.48.0

3 years ago

0.47.0

3 years ago

0.46.0

3 years ago

0.45.0

3 years ago

0.44.0

3 years ago

0.43.0

3 years ago

0.42.3

3 years ago

0.42.2

3 years ago

0.42.1

3 years ago

0.42.0

3 years ago

0.41.0

3 years ago

0.40.2

3 years ago

0.40.1

3 years ago

0.40.0

3 years ago

0.39.0

3 years ago

0.38.2

3 years ago

0.38.1

3 years ago

0.38.0

3 years ago

0.37.0

3 years ago

0.36.2

3 years ago

0.36.1

3 years ago

0.36.0

3 years ago

0.35.2

3 years ago

0.35.1

3 years ago

0.35.0

3 years ago

0.34.0

3 years ago

0.33.0

4 years ago

0.32.1

5 years ago

0.32.0

5 years ago

0.31.1

5 years ago

0.31.0

5 years ago

0.30.0

5 years ago

0.29.1

5 years ago

0.29.0

5 years ago

0.28.0

5 years ago

0.27.0

5 years ago

0.26.0

5 years ago

0.25.0

5 years ago

0.24.0

5 years ago

0.23.0

5 years ago

0.22.0

5 years ago

0.20.2

5 years ago

0.20.1

5 years ago

0.20.0

5 years ago

0.19.0

5 years ago

0.18.0

5 years ago

0.17.1

6 years ago

0.17.0

6 years ago

0.16.0

6 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.95

6 years ago

0.1.94

6 years ago

0.1.93

6 years ago

0.1.92

6 years ago

0.1.91

6 years ago

0.1.90

6 years ago

0.1.89

6 years ago

0.1.88

6 years ago

0.1.86

6 years ago

0.1.85

6 years ago

0.1.84

6 years ago

0.1.83

6 years ago

0.1.82

6 years ago

0.1.81

6 years ago

0.1.80

6 years ago

0.1.79

6 years ago

0.1.78

6 years ago

0.1.77

6 years ago

0.1.76

6 years ago

0.1.75

6 years ago

0.1.74

6 years ago

0.1.73

6 years ago

0.1.72

6 years ago

0.1.71

6 years ago

0.1.69

6 years ago

0.1.68

6 years ago

0.1.67

6 years ago

0.1.66

6 years ago

0.1.65

6 years ago

0.1.64

6 years ago

0.1.63

6 years ago

0.1.62

6 years ago

0.1.61

6 years ago

0.1.60

6 years ago

0.1.59

6 years ago

0.1.58

6 years ago

0.1.57

6 years ago

0.1.56

6 years ago

0.1.55

6 years ago

0.1.54

6 years ago

0.1.53

6 years ago

0.1.52

6 years ago

0.1.51

6 years ago

0.1.50

6 years ago

0.1.49

6 years ago

0.1.48

6 years ago

0.1.47

6 years ago

0.1.46

6 years ago

0.1.45

6 years ago

0.1.44

6 years ago

0.1.43

6 years ago

0.1.42

6 years ago

0.1.41

6 years ago

0.1.40

6 years ago

0.1.39

6 years ago

0.1.38

6 years ago

0.1.37

6 years ago

0.1.36

6 years ago

0.1.35

6 years ago

0.1.34

6 years ago

0.1.33

6 years ago

0.1.32

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago