Skip to content

feat: add dev watch command for framework development #141

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

timoconnellaus
Copy link
Collaborator

@timoconnellaus timoconnellaus commented Jul 24, 2025

Summary

Addition of a --dev-watch CLI arg so that when working on add-ons you can continually scaffold an app when changes are detected.

Changes

  • Add --dev-watch CLI arg (e.g. --dev-watch ./frameworks/react-cra)
  • Add --no-install CLI arg - skips install deps. Needed so we aren't installing deps when package.json doesn't change in --dev-watch

Contributes to #132

Addition of a --dev-watch cli arg so that when working on add-ons you can continually scaffold an app when changes are detected

- add --dev-watch cli arg e.g. --dev-watch ./frameworks/react-cra
- add --no-install cli arg - skips install deps. Needed so we aren't installing deps when package.json doesn't change in --dev-watch
@@ -13,4 +19,8 @@ cli({
forcedMode: 'file-router',
forcedAddOns: ['start'],
craCompatible: true,
frameworkDefinitionInitializers: [
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jherr how do you feel about this part in particular?

I need to re-initalize the framework when files change. My thought was it's a bit messy to do the registration step + pass initalizers. Perhaps just pass initalizer functions and then have them run by in the CLI

- Replace emoji-based logging with cleaner tree-style output
- Add visual hierarchy for build progress and file changes
- Show inline diffs with proper indentation
- Reduce visual noise while maintaining all important information
- Create silent environment for initial app creation to avoid duplicate output
- Add comprehensive guide for using the --dev-watch feature
- Include example workflow with real command examples
- Document auto-rebuild and live reload capabilities
- Update pnpm-lock.yaml after merge
@timoconnellaus timoconnellaus requested a review from jherr August 11, 2025 23:17
@timoconnellaus timoconnellaus marked this pull request as ready for review August 11, 2025 23:17
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