0.0.4 • Published 4 years ago
@yappy/core v0.0.4
core
yappy core, responsible for cli core configuration.
Command usage options
- d/debug: Whether to enable debug mode.
- r/registry: Specifies the mirror source from which to download the NPM package, default is https://registry.npmjs.org
- p/path: Whether to specify a local debug file's path
Sub-command usage documentation
What did it do
Prior to cli registration
- check cli version
- check node version whether it accords with the requirements or not
- If use root permission, downgrade to user permission.
- check user home is exists.
active command(Leave it to cli registration)- Is it configured YAPPY_HOME in the .env file in the user's home directory, default is .yappy directory in the user's home.
- If a new version is available, prompt the user to update
Cli registration
- Command fault-tolerant
- Dynamic loading init