@momo-kits/doctor
v0.1.31
Published
Momo-kits doctor tool
Readme
@momo-kits/doctor
Momo Kits Doctor CLI tool for running health checks on your Mini App to ensure compatibility with the MoMo Platform.
Table of Contents
Installation
Install globally for CLI use:
npm install -g @momo-kits/doctor
# or
yarn global add @momo-kits/doctorInstall locally as a dev dependency:
npm install --save-dev @momo-kits/doctor
# or
yarn add --dev @momo-kits/doctorUsage
The CLI provides two core commands:
Check
Run an interactive session to perform individual health checks:
momo-kits checkYou will be prompted to select one of the following tasks:
- Check core dependencies: Verify usage of
@momo-kits/core. - Scan native module usage: Detect any native module imports or calls.
- Calculate component adoption rate: Analyze how many components used in Design System.
- Scan for deprecated MaxAPI functions: Identify MaxAPI calls that are removed or deprecated.
Doctor
Run all checks in sequence and receive a final health summary:
momo-kits doctorThe tool will:
- Check core dependencies
- Scan native module usage
- Calculate component adoption rate
- Scan for deprecated MaxAPI usage
- Output a summary indicating overall app health
CLI Options
--helpShow help information--versionDisplay the current CLI versionLOG_LEVELSet log verbosity (debug,info,warn,error)
