Commit 7c0dfa3
Add automatic pack generation to bin/dev scripts
Updates both the dummy app and generator templates to automatically
run react_on_rails:generate_packs before starting development servers.
Changes:
- spec/dummy/bin/dev: Add pack generation to dummy app dev script
- lib/generators/react_on_rails/bin/dev: Update generator template
- lib/generators/react_on_rails/bin/dev-static: Update static generator template
Benefits:
- Developers no longer need to manually run rake react_on_rails:generate_packs
- Ensures generated packs are always up to date when starting development
- Provides clear feedback about pack generation process
- Fails fast with clear error message if pack generation fails
All bin/dev scripts now automatically:
1. Generate React on Rails packs with detailed feedback
2. Exit with error if pack generation fails
3. Start the development server only after successful pack generation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent a155390 commit 7c0dfa3
File tree
3 files changed
+30
-0
lines changed- lib/generators/react_on_rails/bin
- spec/dummy/bin
3 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
0 commit comments