Skip to content

fix: start and dev are two different options#362

Merged
jaredwray merged 2 commits intomainfrom
fix-start-and-dev-are-two-different-options
Mar 15, 2026
Merged

fix: start and dev are two different options#362
jaredwray merged 2 commits intomainfrom
fix-start-and-dev-are-two-different-options

Conversation

@jaredwray
Copy link
Owner

@jaredwray jaredwray commented Mar 15, 2026

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
fix: start and dev are two different options

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the command-line interface by clearly distinguishing between the dev and start commands. Previously, start was an alias for dev, which built, watched, and served the project. Now, dev retains the watch-and-serve functionality for active development, while start is introduced as a separate command to build and serve the project without continuous file watching. This provides users with more precise control over their development workflow, allowing them to choose between live-reloading development and a static preview of the built site.

Highlights

  • Command Separation: Separated the dev and start CLI commands, where dev now exclusively builds, watches, and serves, while start builds and serves without watching.
  • Script Updates: Updated package.json scripts to reflect the new dev command usage for website:serve and added a docula:help script.
  • Documentation Clarity: Modified the CLI documentation (site/docs/cli.md) to clearly define the distinct functionalities of dev and start.
  • Core Logic Implementation: Implemented the start command logic in src/docula.ts to perform a build followed by serving, without enabling file watching.
  • CLI Output and Parsing: Adjusted command parsing and help output in src/console.ts to correctly differentiate and describe the dev and start commands.
  • Test Coverage: Added new unit tests and updated existing ones in test/console.test.ts and test/docula.test.ts to validate the distinct behaviors of the dev and start commands.
Changelog
  • package.json
    • Added a new docula:help script.
    • Updated the website:serve script to use the dev command instead of serve with watch options.
  • site/docs/cli.md
    • Modified the table of commands to list dev and start as separate entries with distinct descriptions.
    • Updated the dev section to remove the alias mention.
    • Added a new dedicated section for the start command, including its purpose and examples.
  • src/console.ts
    • Updated the printHelp method to display dev and start as separate commands with their respective descriptions.
    • Modified the parseProcessArgv method to handle start as a distinct command, no longer treating it as an alias for dev.
  • src/docula.ts
    • Implemented a new case "start" in the execute method to handle the start command, which now triggers a build followed by serving without watching.
  • test/console.test.ts
    • Adjusted the expected length of help messages due to the added start command description.
    • Updated the command parsing test to include start as a distinct command and removed the assertion that start is an alias for dev.
  • test/docula.test.ts
    • Added a new test case to verify that the start command correctly builds and serves a site without initiating a file watcher.
Activity
  • The author confirmed that tests for the changes have been added with 100% code coverage, ensuring the new functionality is well-covered.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7fbe2c1) to head (cd42fca).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #362   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines         1800      1808    +8     
  Branches       512       514    +2     
=========================================
+ Hits          1800      1808    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly separates the dev and start commands. The dev command is now for development with file watching, while start is for previewing a production build without watching. The changes are consistently implemented across the CLI logic, documentation, and tests. The implementation is correct and I found no issues or areas for improvement.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec401bbcc9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jaredwray jaredwray merged commit 59b30c1 into main Mar 15, 2026
9 checks passed
@jaredwray jaredwray deleted the fix-start-and-dev-are-two-different-options branch March 15, 2026 18:02
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