-
Notifications
You must be signed in to change notification settings - Fork 756
Support singleton webpacker (3 and above) #777
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 38 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
392ec00
Support singleton webpacker (3 and above)
BookOfGreg 4531b1c
Support Specific versions of webpacker in appraisal
BookOfGreg 14865d8
Update appraisal
BookOfGreg 80c03d8
Simplify
BookOfGreg 8c7dcd8
Pin to 3 or greater
BookOfGreg cd74273
Compatibility for Webpacker new
BookOfGreg 2b7cf68
Reference correct constant
BookOfGreg d1e665e
Fixes #778
BookOfGreg ea8810e
Handle manifest load
BookOfGreg 5a78e5d
WIP, trying to get webpacker3 config with webpacker1 and 2
BookOfGreg b960b9a
Extract out data
BookOfGreg cc8528f
Ruby 2.1 doesnt support twiddledocs
BookOfGreg 54f95b7
Take on the configuration comment, also reduce the react regex as the…
BookOfGreg ed8a891
Split out dummy apps for the asset pipelines.
BookOfGreg 488a840
Split out Webpacker dummy and sprockets dummy, then change to that di…
BookOfGreg 2c8ec5e
ignore ruby 2.1 with Rails 5
BookOfGreg 29c1d02
Add new dummy webpacker3 app
BookOfGreg ca48da9
Typo in appraisal gemfile name
BookOfGreg 41b633f
Typo in appraisal gemfile name
BookOfGreg a5f3da5
Pin webpacker 1.1
BookOfGreg 9b7af66
Set directory based on gem version
BookOfGreg 2492053
Define methods based on which webpacker version is loaded to make con…
BookOfGreg f33976a
Update appraisals for each version of webpacker
BookOfGreg 1b210b0
Each one seems to need turbolinks
BookOfGreg 72285ce
Shouldnt need turbolinks
BookOfGreg 8c88a3b
Turns out _no_sprockets_ name is actually executable code...
BookOfGreg 4fad8b3
Reinitialize webpacker with default config except for the following d…
BookOfGreg c587945
Add new Webpacker 2 folder
BookOfGreg b6dc2aa
Regenerate webpacker configs for webpacker 2
BookOfGreg 7b1b5ad
Tweaking configs and requires to sensible version
BookOfGreg 6324185
Use local node_module
BookOfGreg 77536cd
Dont test Rails 5 on ruby 2.1
BookOfGreg 253ccde
Make it use localhost rather than 0.0.0.0, also React 15.4 so I do no…
BookOfGreg 2805d9d
Add Webpacker 3 test app
BookOfGreg 9390b09
Webpack 3 settings
BookOfGreg 4aa297f
Tweak dev-server detector
BookOfGreg f15b255
Use Webpackers native dev_server detection
BookOfGreg c61f74d
properly scope config access
BookOfGreg 0c0b9bc
Remove require pry references
BookOfGreg e3efcb8
Introduce rubocop to project
BookOfGreg 0f75fe7
rubocop --only Layout/SpaceInsideHashLiteralBraces -a
BookOfGreg 07afcb7
rubocop --only Style/StringLiterals -a
BookOfGreg 384a406
Test scanned the file for specific quotes.
BookOfGreg 579367f
rubocop --only Layout/SpaceInsideBlockBraces -a
BookOfGreg 940f5dd
rubocop --only Style/NegatedIf -a
BookOfGreg 9437671
rubocop --only Style/TrailingCommaInLiteral -a
BookOfGreg caf0827
rubocop --only Layout/SpaceInsideBrackets -a
BookOfGreg f2330d9
rubocop --only Layout/SpaceBeforeComment -a
BookOfGreg e5bbe14
rubocop --only Style/ParallelAssignment -a
BookOfGreg 83fbdaf
rubocop --only Layout/EmptyLines -a
BookOfGreg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
source "http://rubygems.org" | ||
|
||
gem "turbolinks" | ||
gem "rails", "4.0.5" | ||
gem "turbolinks" | ||
|
||
gemspec :path => "../" |
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
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
3 changes: 1 addition & 2 deletions
3
...es/rails_5_no_sprockets_webpacker.gemfile → ...ails_5_no_sprockets_webpacker_1_1.gemfile
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# This file was generated by Appraisal | ||
# This file shouldn't have turbolinks or sprockets in it | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", :github => "rails/webpacker" | ||
gem "webpacker", "~> 1.1.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", "~> 1.2" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", "~> 2.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", ">= 3.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", "~> 1.1.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,10 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "turbolinks" | ||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", "~> 1.2" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,10 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "turbolinks" | ||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", "~> 2.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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,10 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
|
||
gem "turbolinks" | ||
gem "rails", "~> 5.0.0" | ||
gem "webpacker", ">= 3.0" | ||
gem "therubyracer" | ||
|
||
gemspec :path => "../" |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works..... but is it correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is correct as-is:
Webpacker.config.source_entry_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Webpacker.config.source_entry_path
is the correct way to call this, as this is defined in webpacker.