-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Shakapacker instead of Webpacker with Rails 6
REDMINE-19438
- Loading branch information
Showing
11 changed files
with
150 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
7 changes: 6 additions & 1 deletion
7
entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb
This file contains 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 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 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,8 +1,10 @@ | ||
# Make sure packs are recompiled for Capybara specs when Rollup | ||
# outputs change | ||
unless Pageflow::RailsVersion.experimental? | ||
# Make sure packs are recompiled for Capybara specs when Rollup | ||
# outputs change | ||
|
||
Webpacker::Compiler.watched_paths << Pageflow::Engine.root.join('package/*.js') | ||
Webpacker::Compiler.watched_paths << PageflowScrolled::Engine.root.join('package/*.js') | ||
Webpacker::Compiler.watched_paths << Pageflow::Engine.root.join('package/*.js') | ||
Webpacker::Compiler.watched_paths << PageflowScrolled::Engine.root.join('package/*.js') | ||
|
||
# see https://github.com/rails/webpacker/issues/2410 | ||
Webpacker::Compiler.watched_paths << Rails.root.join('app/javascript/**/*.js') | ||
# see https://github.com/rails/webpacker/issues/2410 | ||
Webpacker::Compiler.watched_paths << Rails.root.join('app/javascript/**/*.js') | ||
end |
This file contains 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,14 @@ | ||
module.exports = { | ||
externals: { | ||
'backbone': 'Backbone', | ||
'backbone.babysitter': 'Backbone.ChildViewContainer', | ||
'cocktail': 'Cocktail', | ||
'jquery': 'jQuery', | ||
'jquery-ui': 'jQuery', | ||
'jquery.minicolors': 'jQuery', | ||
'underscore': '_', | ||
'backbone.marionette': 'Backbone.Marionette', | ||
'iscroll': 'IScroll', | ||
'wysihtml5': 'wysihtml5' | ||
} | ||
}; |
This file contains 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 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 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