1.3.9 • Published 2 years ago

react-utilites v1.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-utilites

Utilities for React.js

Usage

Install package

 npm i --save-dev react-utilites

Use package

  • Import to component (example with useLogger hook)
 import {useLogger} from "react-utilites";
  • Init class/function/component name for every component (default local environment)
 const logger = useLogger(<app-name>);
  • Write log with type info | warning | error
 logger.log_info(data, options);
 logger.log_warn(data, options);
 logger.log_error(data, options);

Development commands

 // watch
 yarn start

 // or
 npm run start
 // builds the dist folder
 yarn build

 // or
 npm run build

Deployment to NPM

Login to correct NPM account

npm login

Versioning

Increase the version number as per NPM guides https://docs.npmjs.com/about-semantic-versioning.

// increases the first digit i.e. from 0.5.4 to 1.0.0
npm version major

// increases the second digit i.e. from 0.0.3 to 0.1.0
npm version minor

// increases the third digit i.e. from 0.0.1 to 0.0.2
npm version patch

Deployment

Run the command and the package should be up.

npm publish --access public

Flow deploy

  • Build project
  • Login (if not login)
  • Commit and push
  • Set version
  • Publish
1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago