You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add dev watch command for framework development (#141)
* feat: add dev watch command for framework development
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
* feat: improve dev watch command output with tree-style formatting
- 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
* docs: add --dev-watch command documentation to CONTRIBUTING.md
- 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
---------
Co-authored-by: Jack Herrington <jherr@pobox.com>
The `--dev-watch` command provides real-time feedback while developing frameworks, add-ons, and starters. It watches for changes in your framework files and automatically rebuilds them.
46
+
47
+
## Using --dev-watch
48
+
49
+
To start developing a framework with live rebuilding:
50
+
51
+
```bash
52
+
node [root of the monorepo]/cli/create-tsrouter-app/dist/index.js --dev-watch ./frameworks/react-cra test-app --template typescript --package-manager bun --tailwind --add-ons shadcn
53
+
```
54
+
55
+
This command will:
56
+
57
+
- Watch the selected folder for changes (the folder with the add-ons in it)
58
+
- Automatically rebuild your app / install packages in the target folder when changes are detected (in this case it will install the shadcn addon)
59
+
- Show build output, diffs detected and any errors in real-time
0 commit comments