Separate `@fedify/init` from `@fedify/cli`
Summary
Separate fedify init from @fedify/cli and create @fedify/init. @fedify/cli must then re-import this to ensure fedify init and fedify test-init function correctly. Additionally, ensure it operates independently to simultaneously resolve #351.
Target Area
-
packages/cli/src/init -
packages/init
Motivation
fedify init already has enough code to warrant being separated into its own package. With the addition of fedify test-init in #479, the code has grown even longer. Furthermore, the internal addition of the --test-mode argument has raised concerns that it could confuse users. Additionally, considering existing requests like #351, the idea arose to separate fedify init from @fedify/cli and create a new package called @fedify/init.
Risk Assessment
- Increament of the time for CI/CD by sub-package addition.
Benefits
- Separation of the concern and reduction the amount of code in
@fedify/cli.
Instead of @fedify/init, How about create-fedify-app?
I wanted to create the @fedify/init package and use it in implementation of fedify init and create-fedify-app.