0.0.4 • Published 4 years ago
@yappy/commands v0.0.4
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
- 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.
- Determine whether the project needs to be built through local package.
- Execute the package entry file through node child process.
- Executes the default configuration template