Feature/cli#5
Draft
cchirag wants to merge 3 commits into
Draft
Conversation
|
@cchirag is attempting to deploy a commit to the Naman's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overhauled CLI, introduced
gova.json, and unified build/run internalsThis PR marks a significant shift in how Gova works, moving from a flag-heavy CLI to a centralised, file-driven configuration model.
gova.jsonIntroduces a new
initcommand that scaffolds agova.jsonfile in the project root, similar in spirit topubspec.yaml. All commands now depend on this file, making project configuration reproducible, portable, and consistent across systems.Modes
gova.jsonsupports named build modes (e.g.dev,prod). Each mode carries its own build flags, environment variables, and env files, giving fine-grained control over the build process per environment. All commands (build,run,dev) accept a--modeflag that defaults togova-dev, injected at parse time.Builder and runner
Extracted dedicated build and run methods that are shared across commands, replacing the earlier ad-hoc CLI implementation with something more consistent and testable.
File watcher
gova.jsonsupports anignorefield accepting paths and glob patterns. This prevents watching output directories and other non-essential paths, avoiding infinite rebuild loops.CLI
Hardened the overall CLI implementation to be more robust and less flaky compared to the previous approach.
Keeping this a learning project, AI was used solely for generating package and function documentation. All logic is human written.