-
-
Notifications
You must be signed in to change notification settings - Fork 638
Upgrade Shakapacker from 9.0.0 to 9.1.0 #1921
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a289bba
Upgrade Shakapacker from 9.0.0 to 9.1.0
justin808 0ec6a71
Fix Shakapacker version mismatch in react_on_rails_pro
justin808 237d56e
Configure Babel transpiler for Shakapacker 9.1.0 in Pro dummies
justin808 51f779f
Fix webpack SCSS rule handling for Shakapacker 9.1.0
justin808 c59ea77
Add CHANGELOG entry for Shakapacker 9.1.0 upgrade
justin808 b4c4cc3
Fix SCSS rule detection to use correct RegExp test method
justin808 1f1030e
Fix SCSS rule detection to use proper filename in test
justin808 dee2edf
Revert Pro dummy webpack config to use original master approach
justin808 e3366cb
Fix SCSS detection to match both .scss and .module.scss files
justin808 895bea8
Update Pro dummy webpack config to use forEach pattern
justin808 7210588
Fix Prettier formatting in Pro dummy webpack config
justin808 42d8f98
Add ESLint to pre-commit hooks to prevent CI failures
justin808 83faebc
Fix CSS Modules configuration for Shakapacker 9.x compatibility
justin808 4260503
Document webpack configuration debugging techniques in CLAUDE.md
justin808 f0a1b0f
Fix pre-commit hooks to properly lint Pro directory
justin808 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| #!/usr/bin/env bash | ||
| # Lint and auto-fix JS/TS files with ESLint | ||
| set -euo pipefail | ||
|
|
||
| CONTEXT="${1:-staged}" | ||
| files="$(bin/lefthook/get-changed-files "$CONTEXT" '\.(js|jsx|ts|tsx)$')" | ||
|
|
||
| if [ -z "$files" ]; then | ||
| echo "✅ No JS/TS files to lint with ESLint" | ||
| exit 0 | ||
| fi | ||
|
|
||
| # Separate files into root and Pro directories | ||
| root_files=$(echo "$files" | grep -v '^react_on_rails_pro/' || true) | ||
| pro_files=$(echo "$files" | grep '^react_on_rails_pro/' || true) | ||
|
|
||
| exit_code=0 | ||
|
|
||
| # Lint root files | ||
| if [ -n "$root_files" ]; then | ||
| if [ "$CONTEXT" = "all-changed" ]; then | ||
| echo "🔍 ESLint on root changed files:" | ||
| else | ||
| echo "🔍 ESLint on root $CONTEXT files:" | ||
| fi | ||
| printf " %s\n" $root_files | ||
|
|
||
| if ! yarn run eslint $root_files --report-unused-disable-directives --fix; then | ||
| exit_code=1 | ||
| fi | ||
|
|
||
| # Re-stage files if running on staged or all-changed context | ||
| if [ "$CONTEXT" = "staged" ] || [ "$CONTEXT" = "all-changed" ]; then | ||
| echo $root_files | xargs -r git add | ||
| fi | ||
| fi | ||
|
|
||
| # Lint Pro files (using Pro's ESLint config) | ||
| if [ -n "$pro_files" ]; then | ||
| if [ "$CONTEXT" = "all-changed" ]; then | ||
| echo "🔍 ESLint on Pro changed files:" | ||
| else | ||
| echo "🔍 ESLint on Pro $CONTEXT files:" | ||
| fi | ||
| printf " %s\n" $pro_files | ||
|
|
||
| # Strip react_on_rails_pro/ prefix for running in Pro directory | ||
| pro_files_relative=$(echo "$pro_files" | sed 's|^react_on_rails_pro/||') | ||
|
|
||
| if ! (cd react_on_rails_pro && yarn run eslint $pro_files_relative --report-unused-disable-directives --fix); then | ||
| exit_code=1 | ||
| fi | ||
|
|
||
| # Re-stage files if running on staged or all-changed context | ||
| if [ "$CONTEXT" = "staged" ] || [ "$CONTEXT" = "all-changed" ]; then | ||
| echo $pro_files | xargs -r git add | ||
| fi | ||
| fi | ||
|
|
||
| if [ $exit_code -eq 0 ]; then | ||
| echo "✅ ESLint checks passed" | ||
| fi | ||
|
|
||
| exit $exit_code | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.