@dysonic/dy-cli-cmd-create
v1.0.8
Published
Built-in create command for scaffolding monorepo and single-package projects
Readme
@dysonic/dy-cli-cmd-create
Architecture
flowchart LR
user["User"] --> command["CreateCommand"]
command --> task["CreateProjectTask"]
task --> templates["monorepo / single templates"]
templates --> output["dy.config.ts / package.json / README"]@dysonic/dy-cli-cmd-create implements the dy-cli create command.
It initializes project scaffolds for two project types:
monoreposingle
For the Chinese version, see README_ZH.md.
Role
This package is responsible only for project creation.
It does not execute follow-up flows itself, but it does lay down the default dy-cli workflow for install, add, build, test, version, and publish.
Generated projects include:
dy.config.ts- project-type-specific templates
- default entrypoints for later
dy-cliflows
Main Contents
src/commands/create.tscommand entry forcreatesrc/tasks/create-project-task.tstemplate rendering and file outputsrc/templates/monorepomonorepo project templatessrc/templates/singlesingle-package templates
Command Semantics
Typical usage:
dy-cli create --project monorepo --dest-dir ./
dy-cli create --project single --dest-dir ./Design Notes
This package uses filesystem templates instead of hard-coded file output inside the task.
In practice:
- templates live in
src/templates/* - the command chooses the template
- the task renders it into the target directory
