0.0.4 • Published 4 years ago

@yappy/commands v0.0.4

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

commands

yappy commands

init

Init a new project by assigned template or default config template.

yappy init [option]<name>

options

  • f/force: Whether to force a new project to be created if it already exists in a folder.
  • n/name: Initializes the project with the specified NPM package.
  • p/path: Initializes the project with the specified local package.

What did it do

  1. Determine whether the project needs to be built through NPM package.
    • Whether to explicitly request a version number, by default select the latest version.
    • Determine if there is a local cache. If not, download and cache it.
    • Execute the package entry file through node child process.
  2. Determine whether the project needs to be built through local package.
    • Execute the package entry file through node child process.
  3. Executes the default configuration template