1.122.0 • Published 3 years ago

@moneygeek/ui-components v1.122.0

Weekly downloads
378
License
ISC
Repository
-
Last release
3 years ago

MoneyGeek UI Components

npm

Usage

The MoneyGeek ui-components library is a set of react based DOM components aimed to increase the features of web pages and blog posts of the MoneyGeek websites. This library currently have available the next components to use:

  • Best Ranking
  • Button
  • Column
  • Expand/Collapse
  • Icon
  • OrderedList
  • Quote
  • Quote Widget
  • PremiumRanking

Installation

npm i -S @moneygeek/ui-components

The previous command would install these components in a NodeJS project and they could be used like in the following example.

import { Button } from "@moneygeek/ui-components";

<Button handleClick={() => alert("Clicked!")}>MG Button</Button> 

Development

Each component contains three different sections, the component, styles and the unit tests. For styling we are using the React based styled-components library, for unit tests we are using jest and eslint as the project linter.

Setup

If you are using Unix like systems to install the right version of NodeJS it is convenient to use the following command:

nvm install

If you are using Windows based systems you can download the last LTS version of NodeJS from its website (https://nodejs.org/en/).

Once NodeJS is installed you can start adding the project modules using the next command:

npm i

If you want to use yarn instead of npm you could install it using the next command:

npm i -g yarn

You could install the project libraries through yarn using the following command:

yarn

Bulding the Docz Development Bundle

To build the documentation of the existing components you need to run the following command:

npm run docz:dev

or

yarn docz:dev

This would generate a local website in the http://localhost:3000 address with the components that exist currently in the project.

Building the project and running all the test suite with linters included

To run the whole project Continuous Integration you can use the next command:

npm run build:ci

or

yarn build:ci

This would show you if there are any linter errors and whether all the unit tests passed successfully.

Running only the unit tests

If you only need to run the unit tests you could use the following command:

npm test

or

yarn test

Running the linters

If you only need to run the linter (Eslint) you can run it using the next command:

npm run lint

or

yarn lint

Building Parcel transpiler and Docz source code

For building Parcel and Docz transpilers you can use the following command:

npm run build

or

yarn build

Building Parcel

For building Parcel you could use the next command:

npm run parcel:build

or

yarn parcel:build

Building Docz

For building Docz you could use the following command:

npm run docz:build

or

yarn docz:build
1.122.0

3 years ago

1.121.0

3 years ago

1.120.0

3 years ago

1.119.0

3 years ago

1.118.0

3 years ago

1.117.0

3 years ago

1.116.0

3 years ago

1.115.0

3 years ago

1.114.0

3 years ago

1.113.0

3 years ago

1.112.0

3 years ago

1.111.0

3 years ago

1.110.0

3 years ago

1.109.0

3 years ago

1.108.0

3 years ago

1.107.0

3 years ago

1.103.0

3 years ago

1.106.0

3 years ago

1.105.0

3 years ago

1.104.0

3 years ago

1.102.0

3 years ago

1.101.0

3 years ago

1.100.0

3 years ago

1.99.0

3 years ago

1.98.0

3 years ago

1.97.0

3 years ago

1.96.0

3 years ago

1.95.0

3 years ago

1.94.0

3 years ago

1.93.0

4 years ago

1.92.0

4 years ago

1.91.0

4 years ago

1.90.0

4 years ago

1.89.0

4 years ago

1.88.0

4 years ago

1.87.0

4 years ago

1.86.0

4 years ago

1.85.0

4 years ago

1.84.0

4 years ago

1.83.0

4 years ago

1.82.0

4 years ago

1.81.0

4 years ago

1.80.0

4 years ago

1.79.0

4 years ago

1.78.0

4 years ago

1.77.0

4 years ago

1.76.0

4 years ago

1.75.0

4 years ago

1.74.0

4 years ago

1.72.0

4 years ago

1.73.0

4 years ago

1.71.0

4 years ago

1.70.0

4 years ago

1.69.0

4 years ago

1.68.0

4 years ago

1.67.0

4 years ago

1.66.0

4 years ago

1.65.0

4 years ago

1.64.0

4 years ago

1.63.0

4 years ago

1.62.0

4 years ago

1.61.0

4 years ago

1.60.0

4 years ago

1.59.0

4 years ago

1.58.0

4 years ago

1.57.0

4 years ago

1.56.0

4 years ago

1.55.0

4 years ago

1.54.0

4 years ago

1.53.0

4 years ago

1.52.0

4 years ago

1.51.0

4 years ago

1.49.0

4 years ago

1.50.0

4 years ago

1.48.0

4 years ago

1.46.0

4 years ago

1.47.0

4 years ago

1.45.0

4 years ago

1.44.0

4 years ago

1.42.0

4 years ago

1.43.0

4 years ago

1.41.0

4 years ago

1.40.0

4 years ago

1.39.0

4 years ago

1.38.0

4 years ago

1.37.0

4 years ago

1.36.0

4 years ago

1.35.0

4 years ago

1.34.0

4 years ago

1.33.0

4 years ago

1.32.0

4 years ago

1.31.0

4 years ago

1.30.0

4 years ago

1.29.0

4 years ago

1.28.0

4 years ago

1.27.0

4 years ago

1.26.0

4 years ago

1.25.0

4 years ago

1.24.0

4 years ago

1.23.0

4 years ago

1.21.0

4 years ago

1.22.0

4 years ago

1.19.0

4 years ago

1.20.0

4 years ago

1.18.0

4 years ago

1.17.0

4 years ago

1.15.0

4 years ago

1.16.0

4 years ago

1.14.0

4 years ago

1.13.0

4 years ago

1.12.0

4 years ago

1.11.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.10.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago