Skip to content

42BV/ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Gido Manders
Feb 14, 2025
b66097c · Feb 14, 2025
Jun 29, 2023
Sep 29, 2021
Feb 14, 2025
Nov 24, 2022
Feb 14, 2025
Jan 16, 2024
Aug 28, 2019
Nov 22, 2024
Feb 4, 2020
Dec 6, 2024
Aug 30, 2022
May 30, 2023
Sep 20, 2019
Aug 1, 2019
Aug 26, 2022
Feb 14, 2025
Feb 14, 2025
Jun 16, 2023
Jun 16, 2023
Feb 14, 2025
Jun 16, 2023

Repository files navigation

42 BV

Components that are commonly used within 42.nl products.

Build status Coverage Greenkeeper


Migrate to v5

We released a new version of this library with lots of changes. Be sure to check out our migration guide.


Installation

Setup

# with yarn
yarn add @42.nl/ui

# with npm
npm i @42.nl/ui --save

Contributing

Detailled steps can be found at https://42bv.github.io/ui.

Setup

  1. Ensure you have Node.js 10.13+ installed.
  2. Git clone the repository.
  3. From the root of the repository, run npm i to install the dependencies required for development.

Testing

First follow the build instructions above. Then to run both the linters and tests, use:

npm test

Or to run them separately, use:

npm run lint
npm run test:ts
npm run test:coverage

Development

We use Storybook to test our components during development. To start up a local storybook, run npm start from the root directory.

Also make sure the test coverage is 100%. To run the tests automatically on every change, run npm run test:watch from the root directory.

If all tests pass, the test coverage is 100% and you want to test the changes in a project of your choice, you can create a local release.

Local release

To prevent multiple prelease publishes for a single feature, we recommend using Verdaccio. Verdaccio enables you to spin up a local NPM registry which in turn allows us to publish multiple versions for testing purposes without polluting the version in NPM.

We recommend the Docker approach instead of locally installing Verdaccio. If you do not want to use Docker, refer to the Verdaccio documentation.

To publish to the Verdaccio registry run npm run dev:publish this will spin up Verdaccio and publish.

You can view Verdaccio here: http://localhost:4873/ it should after a successful dev publish show the packages here.

To verify the release, install @42.nl/ui from the Verdaccio registry in a project of your choice by running: npm install --registry http://localhost:4873.

Now you can test the package locally without a publish to the actual NPM registry.