Skip to content

Commit

Permalink
Update gems & packages. Update auto-reload code for Webpack Dev Serve…
Browse files Browse the repository at this point in the history
…r v5
  • Loading branch information
swrobel committed Apr 16, 2024
1 parent 3ba7d63 commit 3995774
Show file tree
Hide file tree
Showing 5 changed files with 793 additions and 582 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gem 'puma'
gem 'react-rails', '~> 3.1.0'
gem 'safely_block'
gem 'scenic'
gem 'shakapacker', '7.2.2'
gem 'shakapacker', '7.2.3'
gem 'slim-rails'
gem 'typhoeus'

Expand Down
64 changes: 32 additions & 32 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ GEM
backport (1.2.0)
base64 (0.2.0)
benchmark (0.3.0)
bigdecimal (3.1.6)
bigdecimal (3.1.7)
bindex (0.8.1)
bootsnap (1.18.3)
msgpack (~> 1.2)
brotli (0.5.0)
bugsnag (6.26.3)
bugsnag (6.26.4)
concurrent-ruby (~> 1.0)
builder (3.2.4)
coderay (1.1.3)
Expand All @@ -124,7 +124,7 @@ GEM
ffi (>= 1.15.0)
execjs (2.9.1)
ffi (1.16.3)
foreman (0.87.2)
foreman (0.88.1)
formatador (1.1.0)
friendly_id (5.5.1)
activerecord (>= 4.0.0)
Expand All @@ -148,16 +148,16 @@ GEM
guard-shell (0.7.2)
guard (>= 2.0.0)
guard-compat (~> 1.0)
hiredis-client (0.21.0)
redis-client (= 0.21.0)
i18n (1.14.1)
hiredis-client (0.22.0)
redis-client (= 0.22.0)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.11.2)
irb (1.12.0)
rdoc
reline (>= 0.4.2)
jaro_winkler (1.5.6)
json (2.7.1)
json (2.7.2)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
Expand All @@ -178,10 +178,10 @@ GEM
marcel (1.0.4)
memery (1.5.0)
ruby2_keywords (~> 0.0.2)
method_source (1.0.0)
method_source (1.1.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.22.2)
mini_portile2 (2.8.6)
minitest (5.22.3)
msgpack (1.7.2)
mutex_m (0.2.0)
nenv (0.3.0)
Expand All @@ -192,14 +192,14 @@ GEM
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0.1)
net-smtp (0.5.0)
net-protocol
newrelic_rpm (9.7.1)
nio4r (2.7.0)
nokogiri (1.16.2)
newrelic_rpm (9.8.0)
nio4r (2.7.1)
nokogiri (1.16.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
nokogiri (1.16.4-x86_64-darwin)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
Expand All @@ -221,7 +221,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (3.0.9.1)
rack (3.0.10)
rack-brotli (1.2.0)
brotli (>= 0.1.7)
rack (>= 1.4)
Expand Down Expand Up @@ -264,58 +264,58 @@ GEM
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rbs (2.8.4)
rdoc (6.6.2)
rdoc (6.6.3.1)
psych (>= 4.0.0)
react-rails (3.1.1)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
railties (>= 3.2)
tilt
redis (5.1.0)
redis-client (>= 0.17.0)
redis-client (0.21.0)
redis (5.2.0)
redis-client (>= 0.22.0)
redis-client (0.22.0)
connection_pool
regexp_parser (2.9.0)
reline (0.4.3)
reline (0.5.1)
io-console (~> 0.5)
reverse_markdown (2.1.1)
nokogiri
rexml (3.2.6)
rubocop (1.61.0)
rubocop (1.63.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.1)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-performance (1.20.2)
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails (2.24.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.24.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
safely_block (0.4.0)
scenic (1.7.0)
scenic (1.8.0)
activerecord (>= 4.0.0)
railties (>= 4.0.0)
semantic_range (3.0.0)
shakapacker (7.2.2)
shakapacker (7.2.3)
activesupport (>= 5.2)
package_json
rack-proxy (>= 0.6.1)
Expand Down Expand Up @@ -406,7 +406,7 @@ DEPENDENCIES
rubocop-rails
safely_block
scenic
shakapacker (= 7.2.2)
shakapacker (= 7.2.3)
slim-rails
solargraph
solargraph-rails!
Expand Down
12 changes: 1 addition & 11 deletions config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@ const customConfig = {
}

if (env.isDevelopment) {
const chokidar = require('chokidar')
customConfig.devServer = {
onBeforeSetupMiddleware: (devServer) => {
chokidar
.watch(['config/locales/*.yml', 'app/views/**/*.slim'])
.on("change", () =>
devServer.sendMessage(
devServer.webSocketServer.clients,
"content-changed"
)
)
}
watchFiles: ['config/locales/*.yml', 'app/views/**/*.slim']
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react_ujs": "^3.1.0",
"sass": "^1.49.7",
"sass-loader": "14",
"shakapacker": "7.2.2",
"shakapacker": "7.2.3",
"style-loader": "^3.3.1",
"swc-loader": "^0.2.0",
"terser-webpack-plugin": "5",
Expand All @@ -32,7 +32,7 @@
"webpack-merge": "5"
},
"devDependencies": {
"webpack-dev-server": "^4.7.4"
"webpack-dev-server": "^5.0.0"
},
"browserslist": [
"defaults"
Expand Down
Loading

0 comments on commit 3995774

Please sign in to comment.