Introduction
This standalone package is extracted and updated from the previous buildings-common in buildings project. It covers the most basic and common utils logic such as array/object/collection's logic, date, format utils etc. Please follow the steps below to proceed with library migration or adoption.
Usage
- Create .npmrc file in the root directory with content
@citydev:registry= http://npm.envisioncn.com:7001/
- install @citydev/common-utils if you have applied buildings-common logic
yarn add @citydev/common-utils
- update import path from buildings-common to @citydev/common-utils in your projects If it is a monorepo project, the better practise is to check internal module hierarchy and migrate progressively by each module starting with the most basic module.
import from '@citydev/common-utils/lib/***'
- Now you can build and run your own project. Once success, for migration users, you can remove the dependencies on buildings-common