@moneygeek/ui-components
A set of base react based components for MoneyGeek
Last updated 3 days ago by mdxprograms .
ISC · Original npm · Tarball · package.json
$ cnpm install @moneygeek/ui-components 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.67.0                                ...           latest (3 days ago)

67 Versions

  • 1.67.0                                ...           3 days ago
  • 1.66.0                                ...           3 days ago
  • 1.65.0                                ...           4 days ago
  • 1.64.0                                ...           11 days ago
  • 1.63.0                                ...           13 days ago
  • 1.62.0                                ...           13 days ago
  • 1.61.0                                ...           13 days ago
  • 1.60.0                                ...           15 days ago
  • 1.59.0                                ...           21 days ago
  • 1.58.0                                ...           25 days ago
  • 1.57.0                                ...           a month ago
  • 1.56.0                                ...           a month ago
  • 1.55.0                                ...           a month ago
  • 1.54.0                                ...           a month ago
  • 1.53.0                                ...           a month ago
  • 1.52.0                                ...           a month ago
  • 1.51.0                                ...           a month ago
  • 1.50.0                                ...           a month ago
  • 1.49.0                                ...           a month ago
  • 1.48.0                                ...           a month ago
  • 1.47.0                                ...           a month ago
  • 1.46.0                                ...           a month ago
  • 1.45.0                                ...           a month ago
  • 1.44.0                                ...           a month ago
  • 1.43.0                                ...           a month ago
  • 1.42.0                                ...           a month ago
  • 1.41.0                                ...           a month ago
  • 1.40.0                                ...           2 months ago
  • 1.39.0                                ...           2 months ago
  • 1.38.0                                ...           2 months ago
  • 1.37.0                                ...           2 months ago
  • 1.36.0                                ...           2 months ago
  • 1.35.0                                ...           2 months ago
  • 1.34.0                                ...           2 months ago
  • 1.33.0                                ...           2 months ago
  • 1.32.0                                ...           2 months ago
  • 1.31.0                                ...           2 months ago
  • 1.30.0                                ...           2 months ago
  • 1.29.0                                ...           2 months ago
  • 1.28.0                                ...           2 months ago
  • 1.27.0                                ...           2 months ago
  • 1.26.0                                ...           2 months ago
  • 1.25.0                                ...           2 months ago
  • 1.24.0                                ...           2 months ago
  • 1.23.0                                ...           2 months ago
  • 1.22.0                                ...           2 months ago
  • 1.21.0                                ...           2 months ago
  • 1.20.0                                ...           2 months ago
  • 1.19.0                                ...           2 months ago
  • 1.18.0                                ...           2 months ago
  • 1.17.0                                ...           2 months ago
  • 1.16.0                                ...           2 months ago
  • 1.15.0                                ...           2 months ago
  • 1.14.0                                ...           2 months ago
  • 1.13.0                                ...           2 months ago
  • 1.12.0                                ...           2 months ago
  • 1.11.0                                ...           2 months ago
  • 1.10.0                                ...           2 months ago
  • 1.9.0                                ...           2 months ago
  • 1.8.0                                ...           2 months ago
  • 1.7.0                                ...           4 months ago
  • 1.6.0                                ...           4 months ago
  • 1.5.0                                ...           4 months ago
  • 1.4.0                                ...           4 months ago
  • 1.3.0                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 25
Last Month 197
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |