Skip to content

NextSmartShip/status-definition

Repository files navigation

NextSmartShip Status Definition

Status definition for tables

Usage

npm install

eg

  cd new-oms-ui/
  npm install https://github.com/NextSmartShip/status-definition  --save

import package

eg

import statusDefinition from 'status-definition';

use status definition

eg

const ORDER_STATUSES = statusDefinition.order.status
const ORDER_CANCEL_STATUSES = statusDefinition.order.cancelStatus
const PRODUCT_STATUSES = statusDefinition.product.status

development

eg

cd status-definition/
## add or update status

npm run build

when you added or updated some status definition, you can use follow command to test at you local eg

cd new-oms-ui/
npm install ../status-definition --save

after the test is finished, commit you code, and update the package version, you can follow those steps

eg

cd status-definition/
npm run build
git add .
git commit �
git push

cd new-oms-ui/
npm install https://github.com/NextSmartShip/status-definition  --save

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages