Commit 6da1351
Restore Rainbow colors and SKIP_VALIDATION to generator template
Restored the original implementation which had:
1. Rainbow colored output for better UX during builds
2. ENV["REACT_ON_RAILS_SKIP_VALIDATION"] = "true" because this hook
loads Rails environment and validation would fail during builds
The SKIP_VALIDATION is needed here because:
- The hook loads Rails via require_relative "../config/environment"
- This triggers the engine's validation initializer
- During precompile, packages may not be fully available yet
- Setting this env var prevents spurious validation failures
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 5682b3d commit 6da1351
File tree
1 file changed
+11
-2
lines changed- lib/generators/react_on_rails/templates/base/base/bin
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | | - | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
0 commit comments