shakapacker 6.6.0 → 7.0.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) hide show
  1. checksums.yaml +4 -4
  2. data/.github/PULL_REQUEST_TEMPLATE.md +4 -8
  3. data/.github/workflows/dummy.yml +21 -0
  4. data/.github/workflows/generator.yml +37 -0
  5. data/.github/workflows/jest.yml +2 -2
  6. data/.github/workflows/js-lint.yml +2 -2
  7. data/.github/workflows/rubocop.yml +1 -1
  8. data/.github/workflows/ruby-backward-compatibility.yml +39 -0
  9. data/.github/workflows/ruby.yml +2 -6
  10. data/.gitignore +3 -0
  11. data/CHANGELOG.md +48 -4
  12. data/CONTRIBUTING.md +78 -22
  13. data/Gemfile.development_dependencies +1 -1
  14. data/README.md +115 -88
  15. data/Rakefile +46 -5
  16. data/config/shakapacker.yml +1 -0
  17. data/docs/deployment.md +11 -10
  18. data/docs/{developing_webpacker.md → developing_shakapacker.md} +5 -5
  19. data/docs/react.md +10 -6
  20. data/docs/style_loader_vs_mini_css.md +2 -2
  21. data/docs/troubleshooting.md +22 -18
  22. data/docs/using_esbuild_loader.md +5 -3
  23. data/docs/using_swc_loader.md +2 -2
  24. data/docs/v6_upgrade.md +2 -2
  25. data/docs/v7_upgrade.md +56 -0
  26. data/lib/install/bin/shakapacker +13 -0
  27. data/lib/install/bin/shakapacker-dev-server +13 -0
  28. data/lib/install/binstubs.rb +3 -1
  29. data/lib/install/config/{webpacker.yml → shakapacker.yml} +13 -8
  30. data/lib/install/config/webpack/webpack.config.js +3 -2
  31. data/lib/install/template.rb +30 -18
  32. data/lib/{webpacker → shakapacker}/base_strategy.rb +2 -2
  33. data/lib/{webpacker → shakapacker}/commands.rb +4 -4
  34. data/lib/{webpacker → shakapacker}/compiler.rb +43 -15
  35. data/lib/{webpacker → shakapacker}/compiler_strategy.rb +6 -6
  36. data/lib/{webpacker → shakapacker}/configuration.rb +52 -21
  37. data/lib/shakapacker/deprecation_helper.rb +87 -0
  38. data/lib/{webpacker → shakapacker}/dev_server.rb +27 -4
  39. data/lib/{webpacker → shakapacker}/dev_server_proxy.rb +4 -4
  40. data/lib/shakapacker/dev_server_runner.rb +104 -0
  41. data/lib/{webpacker → shakapacker}/digest_strategy.rb +6 -6
  42. data/lib/{webpacker → shakapacker}/env.rb +8 -8
  43. data/lib/{webpacker → shakapacker}/helper.rb +20 -20
  44. data/lib/{webpacker → shakapacker}/instance.rb +13 -10
  45. data/lib/{webpacker → shakapacker}/manifest.rb +14 -14
  46. data/lib/{webpacker → shakapacker}/mtime_strategy.rb +5 -5
  47. data/lib/shakapacker/railtie.rb +70 -0
  48. data/lib/shakapacker/runner.rb +28 -0
  49. data/lib/shakapacker/utils/version_syntax_converter.rb +2 -2
  50. data/lib/{webpacker → shakapacker}/version.rb +2 -2
  51. data/lib/{webpacker → shakapacker}/version_checker.rb +8 -8
  52. data/lib/shakapacker/webpack_runner.rb +67 -0
  53. data/lib/shakapacker.rb +51 -1
  54. data/lib/tasks/shakapacker/binstubs.rake +15 -0
  55. data/lib/tasks/shakapacker/check_binstubs.rake +29 -0
  56. data/lib/tasks/shakapacker/check_node.rake +31 -0
  57. data/lib/tasks/shakapacker/check_yarn.rake +33 -0
  58. data/lib/tasks/shakapacker/clean.rake +23 -0
  59. data/lib/tasks/shakapacker/clobber.rake +18 -0
  60. data/lib/tasks/shakapacker/compile.rake +26 -0
  61. data/lib/tasks/shakapacker/info.rake +21 -0
  62. data/lib/tasks/shakapacker/install.rake +17 -0
  63. data/lib/tasks/shakapacker/verify_config.rake +12 -0
  64. data/lib/tasks/shakapacker/verify_install.rake +4 -0
  65. data/lib/tasks/shakapacker/yarn_install.rake +24 -0
  66. data/lib/tasks/shakapacker.rake +18 -0
  67. data/lib/tasks/webpacker/binstubs.rake +5 -11
  68. data/lib/tasks/webpacker/check_binstubs.rake +6 -9
  69. data/lib/tasks/webpacker/check_node.rake +5 -27
  70. data/lib/tasks/webpacker/check_yarn.rake +5 -29
  71. data/lib/tasks/webpacker/clean.rake +5 -19
  72. data/lib/tasks/webpacker/clobber.rake +6 -13
  73. data/lib/tasks/webpacker/compile.rake +5 -33
  74. data/lib/tasks/webpacker/info.rake +5 -17
  75. data/lib/tasks/webpacker/install.rake +5 -13
  76. data/lib/tasks/webpacker/verify_config.rake +6 -11
  77. data/lib/tasks/webpacker/verify_install.rake +7 -2
  78. data/lib/tasks/webpacker/yarn_install.rake +5 -20
  79. data/lib/tasks/webpacker.rake +15 -13
  80. data/lib/webpacker/dev_server_runner.rb +9 -96
  81. data/lib/webpacker/webpack_runner.rb +9 -58
  82. data/lib/webpacker.rb +3 -47
  83. data/package/__tests__/config-bc.js +27 -0
  84. data/package/__tests__/config.js +6 -5
  85. data/package/__tests__/dev_server-bc.js +46 -0
  86. data/package/__tests__/dev_server.js +9 -8
  87. data/package/__tests__/development-bc.js +66 -0
  88. data/package/__tests__/development.js +36 -5
  89. data/package/__tests__/env-bc.js +59 -0
  90. data/package/__tests__/env.js +3 -2
  91. data/package/__tests__/index.js +13 -0
  92. data/package/__tests__/production-bc.js +51 -0
  93. data/package/__tests__/production.js +25 -3
  94. data/package/__tests__/staging-bc.js +53 -0
  95. data/package/__tests__/staging.js +27 -4
  96. data/package/__tests__/test-bc.js +43 -0
  97. data/package/__tests__/test.js +22 -4
  98. data/package/babel/preset.js +1 -4
  99. data/package/config.js +25 -7
  100. data/package/dev_server.js +7 -4
  101. data/package/env.js +22 -3
  102. data/package/environments/__tests__/base-bc.js +107 -0
  103. data/package/environments/__tests__/base.js +13 -13
  104. data/package/environments/base.js +1 -1
  105. data/package/environments/development.js +4 -46
  106. data/package/environments/production.js +1 -1
  107. data/package/index.js +27 -4
  108. data/package/rules/__tests__/__utils__/webpack.js +1 -1
  109. data/package/rules/__tests__/file.js +27 -0
  110. data/package/rules/__tests__/swc.js +1 -2
  111. data/package/rules/file.js +2 -2
  112. data/package/utils/configPath.js +19 -0
  113. data/package/utils/defaultConfigPath.js +2 -0
  114. data/package/utils/get_style_rule.js +5 -2
  115. data/package/utils/helpers.js +25 -2
  116. data/package/utils/inliningCss.js +7 -0
  117. data/package/utils/snakeToCamelCase +7 -0
  118. data/package/webpackDevServerConfig.js +68 -0
  119. data/package.json +2 -2
  120. data/{webpacker.gemspec → shakapacker.gemspec} +3 -3
  121. data/spec/{command_spec.rb → backward_compatibility_specs/command_spec.rb} +2 -0
  122. data/spec/{compiler_spec.rb → backward_compatibility_specs/compiler_spec.rb} +6 -4
  123. data/spec/{compiler_strategy_spec.rb → backward_compatibility_specs/compiler_strategy_spec.rb} +2 -0
  124. data/spec/{configuration_spec.rb → backward_compatibility_specs/configuration_spec.rb} +25 -20
  125. data/spec/{dev_server_runner_spec.rb → backward_compatibility_specs/dev_server_runner_spec.rb} +10 -2
  126. data/spec/{dev_server_spec.rb → backward_compatibility_specs/dev_server_spec.rb} +4 -2
  127. data/spec/{digest_strategy_spec.rb → backward_compatibility_specs/digest_strategy_spec.rb} +2 -0
  128. data/spec/{engine_rake_tasks_spec.rb → backward_compatibility_specs/engine_rake_tasks_spec.rb} +12 -15
  129. data/spec/{env_spec.rb → backward_compatibility_specs/env_spec.rb} +3 -1
  130. data/spec/{helper_spec.rb → backward_compatibility_specs/helper_spec.rb} +2 -0
  131. data/spec/backward_compatibility_specs/instance_spec.rb +31 -0
  132. data/spec/{manifest_spec.rb → backward_compatibility_specs/manifest_spec.rb} +4 -2
  133. data/spec/{mtime_strategy_spec.rb → backward_compatibility_specs/mtime_strategy_spec.rb} +2 -0
  134. data/spec/backward_compatibility_specs/rake_tasks_spec.rb +37 -0
  135. data/spec/backward_compatibility_specs/spec_helper_initializer.rb +24 -0
  136. data/spec/{webpack_runner_spec.rb → backward_compatibility_specs/webpack_runner_spec.rb} +3 -1
  137. data/spec/{webpacker_spec.rb → backward_compatibility_specs/webpacker_spec.rb} +3 -23
  138. data/spec/backward_compatibility_specs/webpacker_test_app/.gitignore +2 -0
  139. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/app/packs/entrypoints/application.js +1 -1
  140. data/{lib/install → spec/backward_compatibility_specs/webpacker_test_app}/bin/webpacker +0 -0
  141. data/spec/backward_compatibility_specs/webpacker_test_app/config/application.rb +11 -0
  142. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker.yml +1 -1
  143. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_css_extract_ignore_order_warnings.yml +1 -1
  144. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_defaults_fallback.yml +1 -1
  145. data/spec/backward_compatibility_specs/webpacker_test_app/config/webpacker_no_precompile.yml +7 -0
  146. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_other_location.yml +1 -1
  147. data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_public_root.yml +1 -1
  148. data/spec/backward_compatibility_specs/webpacker_test_app/package.json +13 -0
  149. data/spec/backward_compatibility_specs/webpacker_test_app/tmp/shakapacker/last-compilation-digest-production +1 -0
  150. data/spec/dummy/.browserslistrc +1 -0
  151. data/spec/dummy/.gitignore +20 -0
  152. data/spec/dummy/.prettierrc.yaml +4 -0
  153. data/spec/dummy/Gemfile +63 -0
  154. data/spec/dummy/Procfile.dev +5 -0
  155. data/spec/dummy/Procfile.dev-static +9 -0
  156. data/spec/dummy/README.md +1 -0
  157. data/spec/dummy/Rakefile +6 -0
  158. data/spec/dummy/app/assets/config/manifest.js +2 -0
  159. data/spec/dummy/app/assets/images/.keep +0 -0
  160. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  161. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  162. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  163. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  164. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  165. data/spec/dummy/app/controllers/hello_world_controller.rb +9 -0
  166. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  167. data/spec/dummy/app/javascript/Globals.d.ts +3 -0
  168. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorld.module.css +25 -0
  169. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorld.tsx +47 -0
  170. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorldServer.tsx +5 -0
  171. data/spec/dummy/app/javascript/bundles/HelloWorld/components/logo.svg +7 -0
  172. data/spec/dummy/app/javascript/packs/application.js +17 -0
  173. data/spec/dummy/app/javascript/packs/hello-world-bundle.ts +8 -0
  174. data/spec/dummy/app/javascript/packs/server-bundle.ts +8 -0
  175. data/spec/dummy/app/jobs/application_job.rb +7 -0
  176. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  177. data/spec/dummy/app/models/application_record.rb +3 -0
  178. data/spec/dummy/app/models/concerns/.keep +0 -0
  179. data/spec/dummy/app/views/hello_world/index.html.erb +2 -0
  180. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  181. data/spec/dummy/app/views/layouts/hello_world.html.erb +13 -0
  182. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  183. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  184. data/spec/dummy/babel.config.js +30 -0
  185. data/spec/dummy/bin/bundle +114 -0
  186. data/spec/dummy/bin/dev +30 -0
  187. data/spec/dummy/bin/dev-static +30 -0
  188. data/spec/dummy/bin/rails +9 -0
  189. data/spec/dummy/bin/rake +9 -0
  190. data/spec/dummy/bin/setup +33 -0
  191. data/spec/dummy/bin/shakapacker +13 -0
  192. data/spec/dummy/bin/shakapacker-dev-server +13 -0
  193. data/spec/dummy/bin/spring +17 -0
  194. data/spec/dummy/bin/yarn +18 -0
  195. data/spec/dummy/config/application.rb +32 -0
  196. data/spec/dummy/config/boot.rb +4 -0
  197. data/spec/dummy/config/cable.yml +10 -0
  198. data/spec/dummy/config/credentials.yml.enc +1 -0
  199. data/spec/dummy/config/database.yml +25 -0
  200. data/spec/dummy/config/environment.rb +5 -0
  201. data/spec/dummy/config/environments/development.rb +54 -0
  202. data/spec/dummy/config/environments/production.rb +106 -0
  203. data/spec/dummy/config/environments/test.rb +49 -0
  204. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  205. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  206. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  207. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  208. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  209. data/spec/dummy/config/initializers/inflections.rb +16 -0
  210. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  211. data/spec/dummy/config/initializers/react_on_rails.rb +58 -0
  212. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  213. data/spec/dummy/config/locales/en.yml +33 -0
  214. data/spec/dummy/config/puma.rb +38 -0
  215. data/spec/dummy/config/routes.rb +6 -0
  216. data/spec/dummy/config/shakapacker.yml +62 -0
  217. data/spec/dummy/config/spring.rb +6 -0
  218. data/spec/dummy/config/storage.yml +34 -0
  219. data/spec/dummy/config/webpack/ServerClientOrBoth.js +34 -0
  220. data/spec/dummy/config/webpack/clientWebpackConfig.js +15 -0
  221. data/spec/dummy/config/webpack/commonWebpackConfig.js +18 -0
  222. data/spec/dummy/config/webpack/development.js +32 -0
  223. data/spec/dummy/config/webpack/production.js +9 -0
  224. data/spec/dummy/config/webpack/serverWebpackConfig.js +116 -0
  225. data/spec/dummy/config/webpack/test.js +7 -0
  226. data/spec/dummy/config/webpack/webpack.config.js +24 -0
  227. data/spec/dummy/config.ru +5 -0
  228. data/spec/dummy/db/seeds.rb +7 -0
  229. data/spec/dummy/lib/assets/.keep +0 -0
  230. data/spec/dummy/lib/tasks/.keep +0 -0
  231. data/spec/dummy/package.json +44 -0
  232. data/spec/dummy/postcss.config.js +12 -0
  233. data/spec/dummy/public/404.html +67 -0
  234. data/spec/dummy/public/422.html +67 -0
  235. data/spec/dummy/public/500.html +66 -0
  236. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  237. data/spec/dummy/public/apple-touch-icon.png +0 -0
  238. data/spec/dummy/public/favicon.ico +0 -0
  239. data/spec/dummy/public/robots.txt +1 -0
  240. data/spec/dummy/spec/rails_helper.rb +118 -0
  241. data/spec/dummy/spec/spec_helper.rb +96 -0
  242. data/spec/dummy/spec/system/hello_world_spec.rb +19 -0
  243. data/spec/dummy/tsconfig.json +21 -0
  244. data/spec/dummy/vendor/.keep +0 -0
  245. data/spec/dummy/yarn.lock +4697 -0
  246. data/spec/generator_specs/e2e_template/files/app/controllers/home_controller.rb +4 -0
  247. data/spec/generator_specs/e2e_template/files/app/javascript/components/App.js +12 -0
  248. data/spec/generator_specs/e2e_template/files/app/javascript/packs/application.js +10 -0
  249. data/spec/generator_specs/e2e_template/files/app/views/home/index.html.erb +2 -0
  250. data/spec/generator_specs/e2e_template/files/app/views/layouts/application.html.erb +17 -0
  251. data/spec/generator_specs/e2e_template/files/config/routes.rb +3 -0
  252. data/spec/generator_specs/e2e_template/files/spec/system/test_react_component_renders_spec.rb +13 -0
  253. data/spec/generator_specs/e2e_template/template.rb +21 -0
  254. data/spec/generator_specs/generator_spec.rb +169 -0
  255. data/spec/mounted_app/test/dummy/config/application.rb +1 -1
  256. data/spec/mounted_app/test/dummy/config/webpacker.yml +3 -3
  257. data/spec/shakapacker/command_spec.rb +116 -0
  258. data/spec/shakapacker/compiler_spec.rb +59 -0
  259. data/spec/shakapacker/compiler_strategy_spec.rb +22 -0
  260. data/spec/shakapacker/configuration_spec.rb +323 -0
  261. data/spec/shakapacker/dev_server_runner_spec.rb +72 -0
  262. data/spec/shakapacker/dev_server_spec.rb +133 -0
  263. data/spec/shakapacker/digest_strategy_spec.rb +35 -0
  264. data/spec/shakapacker/engine_rake_tasks_spec.rb +43 -0
  265. data/spec/shakapacker/env_spec.rb +23 -0
  266. data/spec/shakapacker/helper_spec.rb +243 -0
  267. data/spec/shakapacker/instance_spec.rb +31 -0
  268. data/spec/shakapacker/manifest_spec.rb +100 -0
  269. data/spec/shakapacker/mtime_strategy_spec.rb +55 -0
  270. data/spec/shakapacker/rake_tasks_spec.rb +93 -0
  271. data/spec/shakapacker/shakapacker_spec.rb +41 -0
  272. data/spec/shakapacker/spec_helper_initializer.rb +24 -0
  273. data/spec/shakapacker/test_app/.gitignore +2 -0
  274. data/spec/shakapacker/test_app/Rakefile +3 -0
  275. data/spec/shakapacker/test_app/app/javascript/entrypoints/application.js +10 -0
  276. data/spec/shakapacker/test_app/app/javascript/entrypoints/generated/something.js +2 -0
  277. data/spec/shakapacker/test_app/app/javascript/entrypoints/multi_entry.css +4 -0
  278. data/spec/shakapacker/test_app/app/javascript/entrypoints/multi_entry.js +4 -0
  279. data/spec/{test_app/bin/webpacker-dev-server → shakapacker/test_app/bin/shakapacker} +3 -3
  280. data/spec/{test_app/bin/webpacker → shakapacker/test_app/bin/shakapacker-dev-server} +3 -3
  281. data/spec/{test_app → shakapacker/test_app}/config/application.rb +1 -1
  282. data/spec/shakapacker/test_app/config/environment.rb +4 -0
  283. data/spec/shakapacker/test_app/config/initializers/inspect_autoload_paths.rb +1 -0
  284. data/spec/shakapacker/test_app/config/shakapacker.yml +82 -0
  285. data/spec/shakapacker/test_app/config/shakapacker_css_extract_ignore_order_warnings.yml +84 -0
  286. data/spec/shakapacker/test_app/config/shakapacker_defaults_fallback.yml +11 -0
  287. data/spec/shakapacker/test_app/config/shakapacker_manifest_path.yml +80 -0
  288. data/spec/shakapacker/test_app/config/shakapacker_nested_entries.yml +83 -0
  289. data/spec/shakapacker/test_app/config/shakapacker_no_precompile.yml +7 -0
  290. data/spec/shakapacker/test_app/config/shakapacker_other_location.yml +85 -0
  291. data/spec/shakapacker/test_app/config/shakapacker_public_root.yml +18 -0
  292. data/spec/shakapacker/test_app/config/webpack/webpack.config.js +0 -0
  293. data/spec/shakapacker/test_app/config.ru +5 -0
  294. data/spec/shakapacker/test_app/public/packs/manifest.json +58 -0
  295. data/spec/shakapacker/test_app/some.config.js +0 -0
  296. data/spec/shakapacker/test_app/yarn.lock +11 -0
  297. data/spec/{version_checker_spec.rb → shakapacker/version_checker_spec.rb} +25 -24
  298. data/spec/shakapacker/webpack_runner_spec.rb +55 -0
  299. data/spec/spec_helper.rb +0 -25
  300. metadata +253 -72
  301. data/config/webpacker.yml +0 -1
  302. data/gemfiles/Gemfile-rails.5.2.x +0 -9
  303. data/lib/webpacker/railtie.rb +0 -70
  304. data/lib/webpacker/runner.rb +0 -23
  305. data/package/configPath.js +0 -3
  306. data/package/inliningCss.js +0 -7
  307. data/spec/rake_tasks_spec.rb +0 -32
  308. data/spec/test_app/config/webpacker_no_precompile.yml +0 -7
  309. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/Rakefile +0 -0
  310. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/app/packs/entrypoints/generated/something.js +0 -0
  311. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/app/packs/entrypoints/multi_entry.css +0 -0
  312. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/app/packs/entrypoints/multi_entry.js +0 -0
  313. /data/{lib/install → spec/backward_compatibility_specs/webpacker_test_app}/bin/webpacker-dev-server +0 -0
  314. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/environment.rb +0 -0
  315. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/initializers/inspect_autoload_paths.rb +0 -0
  316. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpack/webpack.config.js +0 -0
  317. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_manifest_path.yml +0 -0
  318. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config/webpacker_nested_entries.yml +0 -0
  319. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/config.ru +0 -0
  320. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/public/packs/manifest.json +0 -0
  321. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/some.config.js +0 -0
  322. /data/spec/{test_app → backward_compatibility_specs/webpacker_test_app}/yarn.lock +0 -0
  323. /data/spec/{test_app → shakapacker/test_app}/package.json +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 667631baa338ba0105550f29536e148bed8b21475daf816b148ab22be98209f9
4
- data.tar.gz: 1f49260d3dd206242d022a07200c8d5dbf370fbc72e1dedf10ab033add63dc52
3
+ metadata.gz: aba276f401a1f78173be61e48f752843e048ccab75e2cea85789e0db511f120b
4
+ data.tar.gz: d29b9940a940f999d5ec9be41a75fabf9d7601c44767b28bfca7c0068c537ded
5
5
  SHA512:
6
- metadata.gz: c830769b5fc9a2c40c0e686848421ee39b6df1ae4866f6ad0f00a60b34e1d3262c2fa7b39012e92cbc5d1a985f200c38a636597a8a4adf339c5961960d457fe2
7
- data.tar.gz: 818526e1d7b2f5a355a4ffe86c3b09e30ae1ca957fd077e685475aab512fe1107ce3f548e1100811a226c8cce6ed3a5f5a2e1511a9f822112eee9b091e9704c1
6
+ metadata.gz: dddcafead06f6db4f256759f7d8f243f5511f7b131d4bbdaae3da6cc3ea160854f82c70fd87ae313f33a14ec3309a6a762b35d24fcbffbd53c22a0eac0920abb
7
+ data.tar.gz: 06c7e5ed689286cb05091c00390f3b4ef56bbbec19bb5a30354c8819c503373dd503f8ed9f240c3ca970d07506045a6be0dfc96b4a0f1a9faa5dfc2c3cbcbdc3
@@ -1,18 +1,14 @@
1
1
  ### Summary
2
2
 
3
- _Remove this paragraph and provide a general description of the code changes in your pull
4
- request... were there any bugs you had fixed? If so, mention them. If
5
- these bugs have open GitHub issues, be sure to tag them here as well,
6
- to keep the conversation linked together._
3
+ _Remove this paragraph and describe the code changes in your pull request... were there any bugs you had fixed? If so, mention them. If these bugs have open GitHub issues, tag them here as well to keep the conversation linked._
7
4
 
8
5
  ### Pull Request checklist
9
- _Remove this line after checking all the items here. If the item is not applicable to the PR, both check it out and wrap it by `~`._
6
+ _Remove this line after checking all the items here. If the item does not apply to the PR, both check it out and wrap it by `~`._
10
7
 
11
8
  - [ ] Add/update test to cover these changes
12
9
  - [ ] Update documentation
13
- - [ ] Update CHANGELOG file
14
- _Add the CHANGELOG entry at the top of the file._
10
+ - [ ] Update CHANGELOG file
15
11
 
16
12
  ### Other Information
17
13
 
18
- _Remove this parapraph and mention any other important and relevant information such as benchmarks._
14
+ _Remove this paragraph and mention other important and relevant information, such as benchmarks._
@@ -0,0 +1,21 @@
1
+ name: Dummy specs
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: '3.1.2'
14
+ - name: Install dependencies
15
+ run: |
16
+ bundle install
17
+ yarn install
18
+ sudo yarn global add yalc
19
+
20
+ - name: Run tests
21
+ run: bundle exec rake run_spec:dummy
@@ -0,0 +1,37 @@
1
+ name: Generator specs
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ name: Generator specs
8
+ runs-on: ${{ matrix.os }}
9
+ strategy:
10
+ matrix:
11
+ os: [ubuntu-latest]
12
+ ruby: ['2.6', '2.7', '3.0']
13
+ gemfile:
14
+ - gemfiles/Gemfile-rails.6.0.x
15
+ - gemfiles/Gemfile-rails.6.1.x
16
+ - gemfiles/Gemfile-rails.7.0.x
17
+ # Uncomment the following line only to ensure compatibility with the
18
+ # upcomming Rails versions, maybe before a release.
19
+ #- gemfiles/Gemfile-rails-edge
20
+ exclude:
21
+ - ruby: 2.6
22
+ os: ubuntu-latest
23
+ gemfile: gemfiles/Gemfile-rails.7.0.x
24
+ - ruby: 2.6
25
+ os: ubuntu-latest
26
+ gemfile: gemfiles/Gemfile-rails-edge
27
+ env:
28
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
29
+
30
+ steps:
31
+ - uses: actions/checkout@v2
32
+ - uses: ruby/setup-ruby@v1
33
+ with:
34
+ ruby-version: ${{ matrix.ruby }}
35
+ - name: Install dependencies
36
+ run: bundle install
37
+ - run: bundle exec rake run_spec:generator
@@ -1,6 +1,6 @@
1
1
  name: Jest specs
2
2
 
3
- on: [push, pull_request]
3
+ on: [push]
4
4
 
5
5
  jobs:
6
6
  jest:
@@ -8,7 +8,7 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  os: [ubuntu-latest]
11
- node: [12.x, 14.x, 16.x]
11
+ node: [14.x, 16.x, 18.x]
12
12
 
13
13
  runs-on: ${{ matrix.os }}
14
14
 
@@ -1,6 +1,6 @@
1
1
  name: JS lint
2
2
 
3
- on: [push, pull_request]
3
+ on: [push]
4
4
 
5
5
  jobs:
6
6
  lint:
@@ -8,7 +8,7 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  os: [ubuntu-latest]
11
- node: [12.x, 14.x, 16.x]
11
+ node: [14.x, 16.x, 18.x]
12
12
 
13
13
  runs-on: ${{ matrix.os }}
14
14
 
@@ -1,6 +1,6 @@
1
1
  name: Rubocop
2
2
 
3
- on: [push, pull_request]
3
+ on: [push]
4
4
 
5
5
  jobs:
6
6
  rubocop:
@@ -0,0 +1,39 @@
1
+ name: Ruby specs - Backward compatibility
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ name: Ruby specs - Backward compatibility
8
+ runs-on: ${{ matrix.os }}
9
+ strategy:
10
+ matrix:
11
+ os: [ubuntu-latest]
12
+ ruby: ['2.6', '2.7', '3.0']
13
+ gemfile:
14
+ - gemfiles/Gemfile-rails.6.0.x
15
+ - gemfiles/Gemfile-rails.6.1.x
16
+ - gemfiles/Gemfile-rails.7.0.x
17
+ # Uncomment the following line only to ensure compatibility with the
18
+ # upcomming Rails versions, maybe before a release.
19
+ #- gemfiles/Gemfile-rails-edge
20
+ exclude:
21
+ - ruby: 2.6
22
+ os: ubuntu-latest
23
+ gemfile: gemfiles/Gemfile-rails.7.0.x
24
+ - ruby: 2.6
25
+ os: ubuntu-latest
26
+ gemfile: gemfiles/Gemfile-rails-edge
27
+
28
+ env:
29
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
30
+
31
+ steps:
32
+ - uses: actions/checkout@v2
33
+ - uses: ruby/setup-ruby@v1
34
+ with:
35
+ ruby-version: ${{ matrix.ruby }}
36
+ bundler-cache: true
37
+
38
+ - name: Ruby specs - Backward compatibility
39
+ run: bundle exec rake run_spec:gem_bc
@@ -1,6 +1,6 @@
1
1
  name: Ruby specs
2
2
 
3
- on: [push, pull_request]
3
+ on: [push]
4
4
 
5
5
  jobs:
6
6
  test:
@@ -11,7 +11,6 @@ jobs:
11
11
  os: [ubuntu-latest]
12
12
  ruby: ['2.6', '2.7', '3.0']
13
13
  gemfile:
14
- - gemfiles/Gemfile-rails.5.2.x
15
14
  - gemfiles/Gemfile-rails.6.0.x
16
15
  - gemfiles/Gemfile-rails.6.1.x
17
16
  - gemfiles/Gemfile-rails.7.0.x
@@ -25,9 +24,6 @@ jobs:
25
24
  - ruby: 2.6
26
25
  os: ubuntu-latest
27
26
  gemfile: gemfiles/Gemfile-rails-edge
28
- - ruby: 3.0
29
- os: ubuntu-latest
30
- gemfile: gemfiles/Gemfile-rails.5.2.x
31
27
 
32
28
  env:
33
29
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
@@ -40,4 +36,4 @@ jobs:
40
36
  bundler-cache: true
41
37
 
42
38
  - name: Ruby specs
43
- run: bundle exec rake test
39
+ run: bundle exec rake run_spec:gem_bc
data/.gitignore CHANGED
@@ -12,3 +12,6 @@ yarn-error.log*
12
12
  /log
13
13
  gemfiles/*.lock
14
14
  .DS_Store
15
+
16
+ .yalc
17
+ yalc.lock
data/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
1
  * For the changelog of versions prior to v6, see the [5.x stable branch of rails/webpacker](https://github.com/rails/webpacker/tree/5-x-stable).
2
+ * Please see the [v7 Upgrade Guide](./docs/v7_upgrade.md) for upgrading to new spelling in version 7.
2
3
  * Please see the [v6 Upgrade Guide](./docs/v6_upgrade.md) to go from versions prior to v6.
3
4
  * [ShakaCode](https://www.shakacode.com) offers support for upgrading from Webpacker or using Shakapacker. If interested, contact Justin Gordon, [justin@shakacode.com](mailto:justin@shakacode.com).
4
5
 
@@ -8,21 +9,64 @@ Changes since last non-beta release.
8
9
 
9
10
  _Please add entries here for your pull requests that are not yet released._
10
11
 
12
+ ### Breaking changes
13
+ - Removes defaults passed to `@babel/preset-typescript`. [PR 273](https://github.com/shakacode/shakapacker/pull/273) by [tomdracz](https://github.com/tomdracz).
14
+
15
+ `@babel/preset-typescript` has been initialised in default configuration with `{ allExtensions: true, isTSX: true }` - meaning every file in the codebase was treated as TSX leading to potential issues. This has been removed and returns to sensible default of the preset which is to figure out the file type from the extensions. This change might affect generated output however so it is marked as breaking.
16
+
17
+ - Export immutable webpackConfig function. [PR 293](https://github.com/shakacode/shakapacker/pull/293) by [tomdracz](https://github.com/tomdracz).
18
+
19
+ The `webpackConfig` property in the `shakapacker` module has been updated to be a function instead of a global mutable webpack configuration. This function now returns an immutable webpack configuration object, which ensures that any modifications made to it will not affect any other usage of the webpack configuration. If a project still requires the old mutable object, it can be accessed by replacing `webpackConfig` with `globalMutableWebpackConfig`. Check [v7-upgrade](https://github.com/shakacode/shakapacker/blob/master/docs/v7_upgrade.md) documentation for more detail.
20
+
21
+ ### Added
22
+ - Set CSS modules mode depending on file type. [PR 261](https://github.com/shakacode/shakapacker/pull/261) by [talyuk](https://github.com/talyuk).
23
+ - All standard webpack entries with the camelCase format are now supported in `shakapacker.yml` in snake_case format. [PR276](https://github.com/shakacode/shakapacker/pull/276) by [ahangarha](https://github.com/ahangarha).
24
+ - The `shakapacker:install` rake task now has an option to force overriding files using `FORCE=true` environment variable [PR311](https://github.com/shakacode/shakapacker/pull/311) by [ahangarha](https://github.com/ahangarha).
25
+
26
+ ### Changed
27
+ - Rename Webpacker to Shakapacker in the entire project including config files, binstubs, environment variables, etc. with a high degree of backward compatibility.
28
+
29
+ This change might be breaking for certain setups and edge cases. More information: [v7 Upgrade Guide](./docs/v7_upgrade.md) [PR157](https://github.com/shakacode/shakapacker/pull/157) by [ahangarha](https://github.com/ahangarha)
30
+
31
+ - Set `source_entry_path` to `packs` and `nested_entries` to `true` in`shakapacker.yml` [PR 284](https://github.com/shakacode/shakapacker/pull/284) by [ahangarha](https://github.com/ahangarha).
32
+ - Dev server configuration is modified to follow [webpack recommended configurations](https://webpack.js.org/configuration/dev-server/) for dev server. [PR276](https://github.com/shakacode/shakapacker/pull/276) by [ahangarha](https://github.com/ahangarha):
33
+ - Deprecated `https` entry is removed from the default configuration file, allowing to set `server` or `https` as per the project requirements. For more detail, check webpack documentation. The `https` entry can be effective only if there is no `server` entry in the config file.
34
+ - `allowed_hosts` is now set to `auto` instead of `all` by default.
35
+
36
+ - Remove the arbitrary stripping of the top-level directory when generating static file paths. [PR 283](https://github.com/shakacode/shakapacker/pull/283) by [tomdracz](https://github.com/tomdracz).
37
+
38
+ Prior to this change, top level directory of static assets like images and fonts was stripped. This meant that file in `app/javascript/images/image.png` would be output to `static/image.png` directory and could be referenced through helpers as `image_pack_tag("image.jpg")` or `image_pack_tag("static/image.jpg")`.
39
+
40
+ Going forward, the top level directory of static files will be retained so this will necessitate the update of file name references in asset helpers. In the example above, the file sourced from `app/javascript/images/image.png` will be now output to `static/images/image.png` and needs to be referenced as `image_pack_tag("images/image.jpg")` or `image_pack_tag("static/images/image.jpg")`.
41
+
42
+ ### Fixed
43
+ - Move compilation lock file into the working directory. [PR 272](https://github.com/shakacode/shakapacker/pull/272) by [tomdracz](https://github.com/tomdracz).
44
+ - Process `source_entry_path` with values starting with `/` as a relative path to `source_path` [PR 284](https://github.com/shakacode/shakapacker/pull/284) by [ahangarha](https://github.com/ahangarha).
45
+ - Removes defaults passed to `@babel/preset-typescript` to make it possible to have projects with mix of JS and TS code [PR 273](https://github.com/shakacode/shakapacker/pull/273) by [tomdracz](https://github.com/tomdracz).
46
+
47
+ `@babel/preset-typescript` has been initialised in default configuration with `{ allExtensions: true, isTSX: true }` - meaning every file in the codebase was treated as TSX leading to potential issues. This has been removed and returns to sensible default of the preset which is to figure out the file type from the extensions. This change might affect generated output however so it is marked as breaking.
48
+
49
+ - Fixed RC version detection during installation. [PR312](https://github.com/shakacode/shakapacker/pull/312) by [ahangarha](https://github.com/ahangarha)
50
+ - Fix addition of webpack-dev-server to devDependencies during installation. [PR310](https://github.com/shakacode/shakapacker/pull/310) by [ahangarha](https://github.com/ahangarha)
51
+ ### Removed
52
+ - Remove redundant enhancement for precompile task to run `yarn install` [PR 270](https://github.com/shakacode/shakapacker/pull/270) by [ahangarha](https://github.com/ahangarha).
53
+ - Remove deprecated `check_yarn_integrity` from `Shakapacker::Configuration` [PR SP288](https://github.com/shakacode/shakapacker/pull/288) by [ahangarha](https://github.com/ahangarha).
54
+
11
55
  ## [v6.6.0] - March 7, 2023
12
56
  ### Improved
13
- - Allow configuration of webpacker.yml through env variable. [PR 254](https://github.com/shakacode/shakapacker/pull/254) by [alecslupu](https://github.com/alecslupu)
57
+ - Allow configuration of webpacker.yml through env variable. [PR 254](https://github.com/shakacode/shakapacker/pull/254) by [alecslupu](https://github.com/alecslupu).
14
58
 
15
59
  ## [v6.5.6] - February 11, 2023
16
60
  ### Fixed
17
- - Fixed failing to update `bin/setup` file due to different formats of the file in different versions of Rails. [PR 229](https://github.com/shakacode/shakapacker/pull/229) by [ahangarha](https://github.com/ahangarha)
61
+ - Fixed failing to update `bin/setup` file due to different formats of the file in different versions of Rails. [PR 229](https://github.com/shakacode/shakapacker/pull/229) by [ahangarha](https://github.com/ahangarha).
18
62
 
19
63
  - Upgrade several JS dependencies to fix security issues. [PR 243](https://github.com/shakacode/shakapacker/pull/243) by [ahangarha](https://github.com/ahangarha).
20
64
 
21
65
  - Added `prepend_javascript_pack_tag` to helpers. Allows to move an entry to the top of queue. Handy when calling from the layout to make sure an entry goes before the view and partial `append_javascript_pack_tag` entries. [PR 235](https://github.com/shakacode/shakapacker/pull/235) by [paypro-leon](https://github.com/paypro-leon).
22
66
 
23
- - Fixed [issue](https://github.com/shakacode/shakapacker/issues/208) to support directories under `node_modules/*` in the `additional_paths` property of `webpacker.yml` [PR 238](https://github.com/shakacode/shakapacker/pull/238) by [vaukalak](https://github.com/vaukalak).
67
+ - Fixed [issue](https://github.com/shakacode/shakapacker/issues/208) to support directories under `node_modules/*` in the `additional_paths` property of `webpacker.yml` [PR 240](https://github.com/shakacode/shakapacker/pull/240) by [vaukalak](https://github.com/vaukalak).
24
68
  - Remove duplicate yarn installs. [PR 238](https://github.com/shakacode/shakapacker/pull/238) by [justin808](https://github/justin808).
25
- - Remove unneeded code related to CSP config for generator. [PR 223](https://github.com/shakacode/shakapacker/pull/223) by [ahangarha](https://github/ahangarha).
69
+ - Remove unneeded code related to CSP config for generator. [PR 223](https://github.com/shakacode/shakapacker/pull/223) by [ahangarha](https://github/ahangarha).
26
70
 
27
71
  ## [v6.5.5] - December 28, 2022
28
72
 
data/CONTRIBUTING.md CHANGED
@@ -1,26 +1,60 @@
1
+ # Contributing Guidelines
2
+
3
+ Thank you for your interest in contributing to Shakapacker! We welcome all contributions that align with our project goals and values. To ensure a smooth and productive collaboration, please follow these guidelines.
4
+
1
5
  ## Contents
6
+ - [Reporting Issues](#reporting-issues)
7
+ - [Submitting Pull Requests](#submitting-pull-requests)
2
8
  - [Setting Up a Development Environment](#setting-up-a-development-environment)
3
9
  - [Making sure your changes pass all tests](#making-sure-your-changes-pass-all-tests)
4
10
  - [Testing the generator](#testing-the-generator)
5
- - [Find existing issues](#find-existing-issues)
6
11
 
7
- ---
8
- ## Setting Up a Development Environment
12
+ ## Reporting Issues
13
+ If you encounter any issues with the project, please first check the exisiting issues (including closed ones). If the issues is not reported before, please opening an issue on our GitHub repository. Please provide a clear and detailed description of the issue, including steps to reproduce it. Creating a demo repository to demonstrate the issue would be ideal (and in some cases necessary).
9
14
 
10
- 1. Install [Yarn](https://yarnpkg.com/)
15
+ If looking to contribute to the project by fixing existing issues, we recommend looking at issues, particularly with the "[help wanted](https://github.com/shakacode/shakapacker/issues?q=is%3Aissue+label%3A%22help+wanted%22)" label.
11
16
 
12
- 2. Run the following commands to set up the development environment.
17
+ ## Submitting Pull Requests
18
+ We welcome pull requests that fix bugs, add new features, or improve existing ones. Before submitting a pull request, please make sure to:
13
19
 
14
- ```
15
- bundle install
16
- yarn
17
- ```
20
+ - Open an issue about what you want to propose before start working on.
21
+ - Fork the repository and create a new branch for your changes.
22
+ - Write clear and concise commit messages.
23
+ - Follow our code style guidelines.
24
+ - Write tests for your changes and [make sure all tests pass](#making-sure-your-changes-pass-all-tests).
25
+ - Update the documentation as needed.
26
+ - Update CHANGELOG.md if the changes affect public behavior of the project.
27
+
28
+ ---
29
+ ## Setting Up a Development Environment
30
+
31
+ 1. Install [Yarn](https://classic.yarnpkg.com/)
32
+ 2. To test your changes on a Rails test project do the following steps:
33
+ - For Ruby gem, update `Gemfile` and point the `shakapacker` to the locally developing Shakapacker project:
34
+ ```ruby
35
+ gem 'shakapacker', path: "relative_or_absolute_path_to_local_shakapacker"
36
+ ```
37
+ - For npm package, use `yalc` with following steps:
38
+ ```bash
39
+ # In Shakapacker root directory
40
+ yalc publish
41
+ # In Rails app for testing
42
+ yalc link shakapacker
43
+
44
+ # After every chagnes in shakapacker, run the folloing in Shakapacker directory
45
+ yalc push # or yalc publish --push
46
+ ```
47
+ 3. Run the following commands to set up the development environment.
48
+ ```
49
+ bundle install
50
+ yarn install
51
+ ```
18
52
 
19
53
  ## Making sure your changes pass all tests
20
54
 
21
- There are a number of automated checks which run on GitHub Actions when a pull request is created.
55
+ There are several specs, covering different aspects of Shakapacker gem. You may run them locally or rely on GitHub CI actions configured to test the gem functionality if different Ruby, Rails, and Node environment.
22
56
 
23
- You can run those checks on your own locally to make sure that your changes would not break the CI build.
57
+ We request running tests locally to ensure the new changes would not break the CI build.
24
58
 
25
59
  ### 1. Check the code for JavaScript style violations
26
60
 
@@ -40,33 +74,55 @@ bundle exec rubocop
40
74
  yarn test
41
75
  ```
42
76
 
43
- ### 4. Run the Ruby test suite
77
+ ### 4. Run all the Ruby test suite
44
78
 
45
79
  ```
46
80
  bundle exec rake test
47
81
  ```
48
82
 
83
+ Note: For this, you need `yalc` to be installed on your local machine
84
+
49
85
  #### 4.1 Run a single ruby test file
50
86
 
51
87
  ```
52
- bundle exec rake test TEST=test/rake_tasks_test.rb
88
+ bundle exec rspec spec/configuration_spec.rb
53
89
  ```
54
90
 
55
91
  #### 4.2 Run a single ruby test
56
92
 
57
93
  ```
58
- bundle exec ruby -I test test/rake_tasks_test.rb -n test_rake_webpacker_install
94
+ bundle exec rspec -e "#source_entry_path returns correct path"
59
95
  ```
60
96
 
61
- ## Testing the generator
62
- If you change the generator, check that install instructions work.
97
+ #### 4.3 Run only Shakapacker gem specs
63
98
 
64
- 1. Update the gemfile so that gem "webpacker" has a line like this, pointing to your install of webpacker
99
+ ```
100
+ bundle exec rake run_spec:gem
101
+ ```
102
+
103
+ #### 4.4 Run only Shakapacker gem specs for backward compatibility
104
+ These specs are to check Shakapcker v7 backward compatibility with v6.x
105
+
106
+ ```
107
+ bundle exec rake run_spec:gem_bc
108
+ ```
109
+
110
+ #### 4.5 Run dummy app test
111
+ For this, you need `yalc` to be installed on your local machine
112
+
113
+ ```
114
+ bundle exec rake run_spec:dummy
115
+ ```
116
+
117
+ #### 4.6 Testing the installer
118
+ To ensure that your installer works as expected, either you can run `bundle exec rake run_spec:install`, or take the following manual testing steps:
119
+
120
+ 1. Update the `Gemfile` so that gem `shakapacker` has a line like this, pointing to your developing Shakapacker:
65
121
  ```ruby
66
- gem 'webpacker', path: "~/shakacode/forks/shakapacker"
122
+ gem 'shakapacker', path: "relative_or_absolute_path_to_the_gem"
67
123
  ```
68
- 2. `bundle`
69
- 3. Run the generator confirm that you got the right changes.
124
+ 2. Run `bundle install` to install the updated gem.
125
+ 3. Run `bundle exec rails shakapacker:install` to confirm that you got the right changes.
126
+
127
+ **Note:** Ensure that you use bundle exec otherwise the installed shakapacker gem will run and not the one you are working on.
70
128
 
71
- ## Find existing issues
72
- You may look at the issues list to find existing known issues to be addressed. In this, we recommend to look at closed issues, particularly with "[help wanted](https://github.com/shakacode/shakapacker/issues?q=is%3Aissue+label%3A%22help+wanted%22+is%3Aclosed+)" label.
@@ -7,7 +7,7 @@ gem "nokogiri", ">= 1.13.6"
7
7
  gem "rails-html-sanitizer", ">= 1.4.3"
8
8
 
9
9
  group :test, :development do
10
- gem "rspec-rails", "~> 5.0.0"
10
+ gem "rspec-rails", "~> 6.0.2"
11
11
  end
12
12
 
13
13
  group :test do