Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to citty #47

Merged
merged 10 commits into from
Jul 5, 2023
Merged

refactor: migrate to citty #47

merged 10 commits into from
Jul 5, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jul 3, 2023

Todo:

  • Basic interface compatibility with current nuxi for runCommand
  • Refactor module as sub-commands
  • [citty] Allow passing custom options from runCommand (upstream)
  • [citty] positional is not optional
  • [citty] description missing
  • consola /utils subpath type missing

Notes:

  • rootDir: Commands that require a legacy positional arg to specify rootDir. They have backward compatibility with new --cwd (or --dir) flag support in addition

Commands:

  • add
  • analyze (rootDir, options, wait)
  • build-module (rootDir)
  • build (rootDir, options)
  • cleanup (rootDir)
  • dev (rootDir, options)
  • devtools (rootDir)
  • generate (rootDir, recursive invoke)
  • info (rootDir)
  • init
  • module (submodule)
  • prepare (rootDir, options)
  • preview (rootDir, options)
  • test (rootDir, options, wait) (to be tested later)
  • typecheck
  • upgrade (rootDir)

@pi0 pi0 changed the title [wip] refactor: initial migration to unjs/citty [wip] refactor: migrate to citty Jul 3, 2023
@pi0
Copy link
Member Author

pi0 commented Jul 5, 2023

rootDir handling and couple of refactors left over. Merging to iterate faster.

@pi0 pi0 changed the title [wip] refactor: migrate to citty refactor: migrate to citty Jul 5, 2023
@pi0 pi0 merged commit 8c0fc95 into main Jul 5, 2023
1 check passed
@pi0 pi0 deleted the refactor/citty2 branch July 5, 2023 23:53
@pi0 pi0 mentioned this pull request Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant