Commit 64d14e8
Make generator template precompile hook use shared implementation when available
Update the generator template to intelligently use the shared precompile hook
implementation when running in the gem's development/test context, while
maintaining a self-contained fallback for generated user applications.
This provides the best of both worlds:
- Test dummy apps and generator template all use the same shared code
- Generated user apps have a standalone copy that works independently
- Easier to maintain and update the precompile hook logic
The hook now tries to load the shared implementation from the gem first,
and falls back to its inline implementation if the gem isn't available
or accessible.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 641132c commit 64d14e8
File tree
1 file changed
+16
-0
lines changed- lib/generators/react_on_rails/templates/base/base/bin
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
| |||
0 commit comments