0.0.1 • Published 4 years ago

nguyenlt-common-js v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@zjs/common

ZTE common JavaScript library

Installation

The package is published to our private NPM registry. Hence before install the package, add to .npmrc:

registry = http://nexus-repo.zapps.vn/repository/zjs-registry/

Then install it as normal:

npm i @zjs/common

Usage

import { createPromiseDefer } from '@zjs/common/promise';
// OR
const { createPromiseDefer } =  require('@zjs/common/promise);

See documentation for list of modules.

Development

See CONTRIBUTING.md or check the example.

Release

Assume that you are in master branch and you have write access to the origin remote, type the following command to release a new version:

./scripts/release.sh patch

In case your Git remote is NOT origin:

./scripts/release.sh major my-remote

You can replace major by minor or patch depending on your release.

Once done, @zjs/common package will be published to our private NPM registry.