7.13.0 • Published 3 years ago

billin-ui v7.13.0

Weekly downloads
556
License
-
Repository
github
Last release
3 years ago

Billin UI Library

A library of React components used in the Billin Frontend project.

Installation

Just follow the basic npm ci flow to install dependencies. After that you can see the components in action running npm start.

Publishing a new version

New horizons are arising with new necessities for us. So we are no longer automatically increasing versions with merges to master branch. We now use manual control.

First of all remember that the workflow depends on a good habit. Use the npm run c command for each commit, and follow the steps the CLI tool ask you.

In order to publish a new version run the npm run publish-version command from package.json. This command do the following:

  • Generate the new version tag thanks to Standard Version (this is the reason for the good habit mentioned before).
  • Push the new tag to Github.
  • Publish in NPM the new version.
  • Publish a new version of styleguidist in Github Pages.

Workflow

We have four major branches, each one with a main purpose:

  • upkeep-v3: contains the freezed major version of the library, to be used in the v3 version of the platform while the rebuild project is undertake. DO NOT ADD BREAKING CHANGES TO THIS BRANCH.
  • master: it holds the current build of the library. Do not commit directly to this one. Each change to this branch should be done via PR.
  • staging: this branch is for bug fixes out of the usual flow of sprints. That way we don't have to wait to have current development ready to deploy new
  • development: this one is for the work done in the current sprint.

If you merge a PR against staging remember that you have to bring those changes into development to avoid further conflicts.

Testing

Testing is done with Jest, Enzyme and Jasmine Matchers. You can refer to Button.test.js as an example.

> npm run test

or (for getting coverage):

> npm run test:coverage

Linting and formating

Linting is set up through ESLint and configured with eslint-config-airbnb You can modify linting rules by overriding them in the .eslintrc.json file.

> npm run lint

or (for for automatic fixing if possible)

> npm run lint:fix

to format the code with prettier use

> npm run format

Publishing the library to NPM

Every time we push changes to master branch, CircleCI automatically generates a new version of the package and publish it in NPM.

To release it manually you can do it with the following commands:

> npm run release
> npm publish

In case you want to publish a beta version you can push changes to beta branch. CircleCI will generate a new beta version and publish it in NPM.

Styleguide

For custom layouts, styleing and more information about the Styleguide please refer to React Styleguidist documentation.

Deploy the Styleguide to GitHub Pages

> npm run pre-deploy
> npm run deploy

Scripts

  • npm run c : Uses commitizen to commit changes following a standard.
  • npm run dev : Executes the develop mode, running watcher and the Stylguide, rebuilding your library on every change.
  • npm run start : Only serves the Styleguide.
  • npm run build : Builds your library (build can be found in dist folder).
  • npm run test : Runs the tests.
  • npm run test:coverage: Runs the test and shows the coverage.
  • npm run lint : Runs the linter.
  • npm run lint:fix : Runs the linter and fixes automatic fixable issues.
  • npm run format : Runs prettier to fix code format issues.
  • npm run release : Publishes your Library on NPM or your private Registry (depending on your config in your .npmrc file).
  • npm run predeploy: Builds the static Styleguide in case you want to deploy it.
  • npm run deploy: Deploys the Styleguide to GitHub Pages.

Resources

Bundler

Styleguide

Testing

Linting

Compiler

7.13.0

3 years ago

7.12.0

4 years ago

8.4.1

4 years ago

8.4.2

4 years ago

8.4.0

4 years ago

8.2.1

4 years ago

8.3.0

4 years ago

8.2.0

4 years ago

8.1.0

4 years ago

8.0.3

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

7.11.1

4 years ago

7.11.0

4 years ago

7.9.0-beta.16

4 years ago

7.9.0-beta.15

4 years ago

7.9.0-beta.14

4 years ago

7.9.0-beta.13

4 years ago

7.9.0-beta.12

4 years ago

7.9.0-beta.11

4 years ago

7.9.0-beta.9

4 years ago

7.9.0-beta.10

4 years ago

7.10.0

4 years ago

7.9.0

4 years ago

7.9.0-beta.8

4 years ago

7.9.0-beta.7

4 years ago

7.9.0-beta.6

4 years ago

7.9.0-beta.5

4 years ago

7.9.0-beta.4

4 years ago

7.9.0-beta.3

4 years ago

7.9.0-beta.2

4 years ago

7.9.0-beta.1

4 years ago

7.9.0-beta.0

4 years ago

7.8.1

4 years ago

7.8.0

4 years ago

7.7.1

4 years ago

7.7.0

4 years ago

7.6.0

4 years ago

7.5.1

4 years ago

7.5.0

4 years ago

7.4.2

4 years ago

7.4.1

4 years ago

7.3.0

4 years ago

7.4.0

4 years ago

7.2.1

4 years ago

7.2.0

4 years ago

7.1.3

4 years ago

7.1.2

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.0

4 years ago

6.8.0

4 years ago

6.7.1

4 years ago

6.7.0

4 years ago

7.0.0-beta.1

4 years ago

7.0.0-beta.0

4 years ago

6.6.0

4 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.0

4 years ago

6.0.1

5 years ago

6.0.0

5 years ago

6.0.0-beta.4

5 years ago

6.0.0-beta.3

5 years ago

6.0.0-beta.2

5 years ago

6.0.0-beta.1

5 years ago

6.0.0-beta.0

5 years ago

5.1.0-beta.0

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

5.0.0-beta.9

5 years ago

5.0.0-beta.8

5 years ago

5.0.0-beta.7

5 years ago

5.0.0-beta.6

5 years ago

5.0.0-beta.5

5 years ago

5.0.0-beta.4

5 years ago

5.0.0-beta.3

5 years ago

5.0.0-beta.2

5 years ago

5.0.0-beta.1

5 years ago

4.51.0

5 years ago

4.50.0

5 years ago

4.49.1

5 years ago

4.49.0

5 years ago

4.48.0

5 years ago

4.47.0

5 years ago

4.46.0

5 years ago

4.45.0

5 years ago

4.44.0

5 years ago

4.43.0

5 years ago

4.42.0

5 years ago

4.41.0

5 years ago

4.40.0

5 years ago

4.39.0

5 years ago

4.38.0

5 years ago

4.37.0

5 years ago

4.36.0

5 years ago

4.35.0

5 years ago

4.34.0

5 years ago

4.33.0

5 years ago

4.32.0

5 years ago

4.31.0

5 years ago

4.30.0

5 years ago

4.29.0

5 years ago

4.28.0

5 years ago

4.27.1

5 years ago

4.27.0

5 years ago

4.26.0

5 years ago

4.25.0

5 years ago

4.24.0

5 years ago

4.23.0

5 years ago

4.22.0

5 years ago

4.21.0

5 years ago

4.20.1

5 years ago

4.20.0

5 years ago

4.19.0

5 years ago

4.18.1

5 years ago

4.18.0

5 years ago

4.17.0

5 years ago

4.16.0

5 years ago

4.15.0

5 years ago

4.14.0

5 years ago

4.13.1

5 years ago

4.13.0

5 years ago

4.12.0

5 years ago

4.11.0

5 years ago

4.10.0

5 years ago

4.9.0

5 years ago

4.8.0

5 years ago

4.7.0

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.0

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.2.0-beta.2

5 years ago

3.2.0-beta.1

5 years ago

3.2.0-beta.0

5 years ago

3.2.0

5 years ago

3.1.1-beta.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.21.0

5 years ago

0.20.0

5 years ago

0.19.0

5 years ago

0.18.0

5 years ago

0.17.1

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.0

5 years ago

0.2.5

5 years ago