0.0.4 • Published 4 years ago

@yappy/core v0.0.4

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

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

  1. check cli version
  2. check node version whether it accords with the requirements or not
  3. If use root permission, downgrade to user permission.
  4. check user home is exists.
  5. active command(Leave it to cli registration)
  6. Is it configured YAPPY_HOME in the .env file in the user's home directory, default is .yappy directory in the user's home.
  7. If a new version is available, prompt the user to update

Cli registration

  1. Command fault-tolerant
  2. Dynamic loading init