2.2.2 • Published 4 years ago
react-daily-utilities v2.2.2
react-daily-utilities
Daily utilities for React.js
Usage
Install package
npm i --save-dev react-daily-utilitiesUse package
- Import to component (example with useLogger hook)
import {useLogger} from "react-daily-utilities";- Init class/function/component name for every component (default local environment)
const logger = useLogger({className: <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 buildDeployment to NPM
Login to correct NPM account
npm loginVersioning
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 patchDeployment
Run the command and the package should be up.
npm publish --access publicFlow deploy
- Build project
- Login (if not login)
- Commit and push
- Set version
- Publish
2.2.2
4 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.1.17
4 years ago
2.1.16
4 years ago
2.1.15
4 years ago
2.1.14
4 years ago
2.1.13
4 years ago
2.1.12
4 years ago
2.1.11
4 years ago
2.1.10
4 years ago
2.1.9
4 years ago
2.1.8
4 years ago
2.1.7
4 years ago
2.1.6
4 years ago
2.1.5
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago