Skip to content

Move core logic into new "core" package #73

@matejchalk

Description

@matejchalk

Proposal

  • all our core logic that's not Yargs-related lives in utils - too much?
  • utils could be only for more generic helper functions, e.g. executeProcess or Markdown formatters
  • core logic like collect and executePlugin could live in core package

Motivation

  • core package should be for programmatic usage of our core logic (e.g. used by our GitHub Action)
  • cleaner separation of core and plugin layers - plugin-* packages can import from utils or models, but not from core
  • the cli project might not then need multiple entry points (only bin)
  • having separate cli and core is quite common in other CLI-first projects (e.g. jest or graphql-code-generator)

Nx graph

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions