shakapacker 8.0.0 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/dummy.yml +1 -1
  3. data/.github/workflows/generator.yml +5 -1
  4. data/.github/workflows/node.yml +1 -1
  5. data/.github/workflows/ruby.yml +8 -2
  6. data/.gitignore +0 -1
  7. data/.node-version +1 -1
  8. data/CHANGELOG.md +21 -12
  9. data/Gemfile.lock +257 -0
  10. data/README.md +11 -12
  11. data/docs/customizing_babel_config.md +32 -4
  12. data/docs/react.md +3 -2
  13. data/docs/troubleshooting.md +1 -1
  14. data/docs/v8_upgrade.md +2 -2
  15. data/lib/shakapacker/version.rb +1 -1
  16. data/package.json +2 -2
  17. data/shakapacker.gemspec +5 -2
  18. metadata +5 -235
  19. data/lib/install/bin/yarn +0 -18
  20. data/rakelib/release.rake +0 -65
  21. data/spec/dummy/.browserslistrc +0 -1
  22. data/spec/dummy/.gitignore +0 -20
  23. data/spec/dummy/.prettierrc.yaml +0 -4
  24. data/spec/dummy/Gemfile +0 -61
  25. data/spec/dummy/Procfile.dev +0 -5
  26. data/spec/dummy/Procfile.dev-static +0 -9
  27. data/spec/dummy/README.md +0 -1
  28. data/spec/dummy/Rakefile +0 -6
  29. data/spec/dummy/app/assets/config/manifest.js +0 -2
  30. data/spec/dummy/app/assets/images/.keep +0 -0
  31. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  32. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  33. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  34. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  35. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  36. data/spec/dummy/app/controllers/hello_world_controller.rb +0 -9
  37. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  38. data/spec/dummy/app/javascript/Globals.d.ts +0 -3
  39. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorld.module.css +0 -25
  40. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorld.tsx +0 -47
  41. data/spec/dummy/app/javascript/bundles/HelloWorld/components/HelloWorldServer.tsx +0 -5
  42. data/spec/dummy/app/javascript/bundles/HelloWorld/components/logo.svg +0 -7
  43. data/spec/dummy/app/javascript/packs/application.js +0 -17
  44. data/spec/dummy/app/javascript/packs/hello-world-bundle.ts +0 -8
  45. data/spec/dummy/app/javascript/packs/server-bundle.ts +0 -8
  46. data/spec/dummy/app/jobs/application_job.rb +0 -7
  47. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  48. data/spec/dummy/app/models/application_record.rb +0 -3
  49. data/spec/dummy/app/models/concerns/.keep +0 -0
  50. data/spec/dummy/app/views/hello_world/index.html.erb +0 -2
  51. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  52. data/spec/dummy/app/views/layouts/hello_world.html.erb +0 -13
  53. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  54. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  55. data/spec/dummy/babel.config.js +0 -30
  56. data/spec/dummy/bin/bundle +0 -114
  57. data/spec/dummy/bin/dev +0 -30
  58. data/spec/dummy/bin/dev-static +0 -30
  59. data/spec/dummy/bin/rails +0 -9
  60. data/spec/dummy/bin/rake +0 -9
  61. data/spec/dummy/bin/setup +0 -33
  62. data/spec/dummy/bin/shakapacker +0 -13
  63. data/spec/dummy/bin/shakapacker-dev-server +0 -13
  64. data/spec/dummy/bin/spring +0 -17
  65. data/spec/dummy/bin/yarn +0 -18
  66. data/spec/dummy/config/application.rb +0 -35
  67. data/spec/dummy/config/boot.rb +0 -4
  68. data/spec/dummy/config/cable.yml +0 -10
  69. data/spec/dummy/config/credentials.yml.enc +0 -1
  70. data/spec/dummy/config/database.yml +0 -25
  71. data/spec/dummy/config/environment.rb +0 -5
  72. data/spec/dummy/config/environments/development.rb +0 -54
  73. data/spec/dummy/config/environments/production.rb +0 -106
  74. data/spec/dummy/config/environments/test.rb +0 -49
  75. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  76. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  77. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  78. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  79. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  80. data/spec/dummy/config/initializers/inflections.rb +0 -16
  81. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  82. data/spec/dummy/config/initializers/react_on_rails.rb +0 -58
  83. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  84. data/spec/dummy/config/locales/en.yml +0 -33
  85. data/spec/dummy/config/puma.rb +0 -38
  86. data/spec/dummy/config/routes.rb +0 -6
  87. data/spec/dummy/config/shakapacker.yml +0 -61
  88. data/spec/dummy/config/spring.rb +0 -6
  89. data/spec/dummy/config/storage.yml +0 -34
  90. data/spec/dummy/config/webpack/ServerClientOrBoth.js +0 -34
  91. data/spec/dummy/config/webpack/clientWebpackConfig.js +0 -15
  92. data/spec/dummy/config/webpack/commonWebpackConfig.js +0 -17
  93. data/spec/dummy/config/webpack/development.js +0 -32
  94. data/spec/dummy/config/webpack/production.js +0 -9
  95. data/spec/dummy/config/webpack/serverWebpackConfig.js +0 -116
  96. data/spec/dummy/config/webpack/test.js +0 -7
  97. data/spec/dummy/config/webpack/webpack.config.js +0 -24
  98. data/spec/dummy/config.ru +0 -5
  99. data/spec/dummy/db/seeds.rb +0 -7
  100. data/spec/dummy/lib/assets/.keep +0 -0
  101. data/spec/dummy/lib/tasks/.keep +0 -0
  102. data/spec/dummy/package.json +0 -44
  103. data/spec/dummy/postcss.config.js +0 -12
  104. data/spec/dummy/public/404.html +0 -67
  105. data/spec/dummy/public/422.html +0 -67
  106. data/spec/dummy/public/500.html +0 -66
  107. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  108. data/spec/dummy/public/apple-touch-icon.png +0 -0
  109. data/spec/dummy/public/favicon.ico +0 -0
  110. data/spec/dummy/public/robots.txt +0 -1
  111. data/spec/dummy/spec/rails_helper.rb +0 -118
  112. data/spec/dummy/spec/spec_helper.rb +0 -96
  113. data/spec/dummy/spec/system/hello_world_spec.rb +0 -19
  114. data/spec/dummy/tsconfig.json +0 -21
  115. data/spec/dummy/vendor/.keep +0 -0
  116. data/spec/dummy/yarn.lock +0 -4696
  117. data/spec/fixtures/beta_package-lock.v1.json +0 -119
  118. data/spec/fixtures/beta_package-lock.v2.json +0 -6777
  119. data/spec/fixtures/beta_package.json +0 -13
  120. data/spec/fixtures/beta_pnpm-lock.v7.yaml +0 -116
  121. data/spec/fixtures/beta_pnpm-lock.v8.yaml +0 -2537
  122. data/spec/fixtures/beta_pnpm-lock.v9.yaml +0 -2885
  123. data/spec/fixtures/beta_yarn.v1.lock +0 -106
  124. data/spec/fixtures/beta_yarn.v2.lock +0 -164
  125. data/spec/fixtures/git_url_package-lock.v1.json +0 -118
  126. data/spec/fixtures/git_url_package-lock.v2.json +0 -10263
  127. data/spec/fixtures/git_url_package.json +0 -13
  128. data/spec/fixtures/git_url_pnpm-lock.v7.yaml +0 -126
  129. data/spec/fixtures/git_url_pnpm-lock.v8.yaml +0 -3728
  130. data/spec/fixtures/git_url_pnpm-lock.v9.yaml +0 -4544
  131. data/spec/fixtures/git_url_yarn.v1.lock +0 -106
  132. data/spec/fixtures/git_url_yarn.v2.lock +0 -165
  133. data/spec/fixtures/github_url_package-lock.v1.json +0 -118
  134. data/spec/fixtures/github_url_package-lock.v2.json +0 -10263
  135. data/spec/fixtures/github_url_package.json +0 -13
  136. data/spec/fixtures/github_url_pnpm-lock.v7.yaml +0 -126
  137. data/spec/fixtures/github_url_pnpm-lock.v8.yaml +0 -3728
  138. data/spec/fixtures/github_url_pnpm-lock.v9.yaml +0 -4544
  139. data/spec/fixtures/github_url_yarn.v1.lock +0 -105
  140. data/spec/fixtures/github_url_yarn.v2.lock +0 -165
  141. data/spec/fixtures/relative_path_package-lock.v1.json +0 -3468
  142. data/spec/fixtures/relative_path_package-lock.v2.json +0 -105
  143. data/spec/fixtures/relative_path_package.json +0 -13
  144. data/spec/fixtures/relative_path_pnpm-lock.v7.yaml +0 -18
  145. data/spec/fixtures/relative_path_pnpm-lock.v8.yaml +0 -22
  146. data/spec/fixtures/relative_path_pnpm-lock.v9.yaml +0 -28
  147. data/spec/fixtures/relative_path_yarn.v1.lock +0 -104
  148. data/spec/fixtures/relative_path_yarn.v2.lock +0 -165
  149. data/spec/fixtures/semver_caret_package-lock.v1.json +0 -119
  150. data/spec/fixtures/semver_caret_package-lock.v2.json +0 -10264
  151. data/spec/fixtures/semver_caret_package.json +0 -13
  152. data/spec/fixtures/semver_caret_pnpm-lock.v7.yaml +0 -117
  153. data/spec/fixtures/semver_caret_pnpm-lock.v8.yaml +0 -2558
  154. data/spec/fixtures/semver_caret_pnpm-lock.v9.yaml +0 -4285
  155. data/spec/fixtures/semver_caret_yarn.v1.lock +0 -106
  156. data/spec/fixtures/semver_caret_yarn.v2.lock +0 -165
  157. data/spec/fixtures/semver_exact_package-lock.v1.json +0 -119
  158. data/spec/fixtures/semver_exact_package-lock.v2.json +0 -6819
  159. data/spec/fixtures/semver_exact_package.json +0 -13
  160. data/spec/fixtures/semver_exact_pnpm-lock.v7.yaml +0 -117
  161. data/spec/fixtures/semver_exact_pnpm-lock.v8.yaml +0 -2558
  162. data/spec/fixtures/semver_exact_pnpm-lock.v9.yaml +0 -2908
  163. data/spec/fixtures/semver_exact_yarn.v1.lock +0 -106
  164. data/spec/fixtures/semver_exact_yarn.v2.lock +0 -165
  165. data/spec/fixtures/semver_tilde_package-lock.v1.json +0 -119
  166. data/spec/fixtures/semver_tilde_package-lock.v2.json +0 -6777
  167. data/spec/fixtures/semver_tilde_package.json +0 -13
  168. data/spec/fixtures/semver_tilde_pnpm-lock.v7.yaml +0 -116
  169. data/spec/fixtures/semver_tilde_pnpm-lock.v8.yaml +0 -2558
  170. data/spec/fixtures/semver_tilde_pnpm-lock.v9.yaml +0 -2885
  171. data/spec/fixtures/semver_tilde_yarn.v1.lock +0 -106
  172. data/spec/fixtures/semver_tilde_yarn.v2.lock +0 -164
  173. data/spec/fixtures/without_package-lock.v1.json +0 -19
  174. data/spec/fixtures/without_package-lock.v2.json +0 -47
  175. data/spec/fixtures/without_package.json +0 -13
  176. data/spec/fixtures/without_pnpm-lock.v7.yaml +0 -23
  177. data/spec/fixtures/without_pnpm-lock.v8.yaml +0 -27
  178. data/spec/fixtures/without_pnpm-lock.v9.yaml +0 -34
  179. data/spec/fixtures/without_yarn.v1.lock +0 -13
  180. data/spec/fixtures/without_yarn.v2.lock +0 -29
  181. data/spec/generator_specs/e2e_template/files/app/controllers/home_controller.rb +0 -4
  182. data/spec/generator_specs/e2e_template/files/app/javascript/components/App.js +0 -12
  183. data/spec/generator_specs/e2e_template/files/app/javascript/packs/application.js +0 -10
  184. data/spec/generator_specs/e2e_template/files/app/views/home/index.html.erb +0 -2
  185. data/spec/generator_specs/e2e_template/files/app/views/layouts/application.html.erb +0 -17
  186. data/spec/generator_specs/e2e_template/files/config/routes.rb +0 -3
  187. data/spec/generator_specs/e2e_template/files/spec/system/test_react_component_renders_spec.rb +0 -13
  188. data/spec/generator_specs/e2e_template/template.rb +0 -29
  189. data/spec/generator_specs/fake-bin/bun +0 -10
  190. data/spec/generator_specs/fake-bin/npm +0 -10
  191. data/spec/generator_specs/fake-bin/pnpm +0 -10
  192. data/spec/generator_specs/fake-bin/yarn +0 -10
  193. data/spec/generator_specs/generator_spec.rb +0 -193
  194. data/spec/mounted_app/Rakefile +0 -4
  195. data/spec/mounted_app/package.json +0 -1
  196. data/spec/mounted_app/test/dummy/Rakefile +0 -3
  197. data/spec/mounted_app/test/dummy/bin/rails +0 -3
  198. data/spec/mounted_app/test/dummy/bin/rake +0 -3
  199. data/spec/mounted_app/test/dummy/config/application.rb +0 -10
  200. data/spec/mounted_app/test/dummy/config/environment.rb +0 -3
  201. data/spec/mounted_app/test/dummy/config/webpacker.yml +0 -81
  202. data/spec/mounted_app/test/dummy/config.ru +0 -5
  203. data/spec/mounted_app/test/dummy/package.json +0 -7
  204. data/spec/shakapacker/command_spec.rb +0 -134
  205. data/spec/shakapacker/compiler_spec.rb +0 -57
  206. data/spec/shakapacker/compiler_strategy_spec.rb +0 -24
  207. data/spec/shakapacker/configuration_spec.rb +0 -377
  208. data/spec/shakapacker/dev_server_runner_spec.rb +0 -136
  209. data/spec/shakapacker/dev_server_spec.rb +0 -118
  210. data/spec/shakapacker/digest_strategy_spec.rb +0 -59
  211. data/spec/shakapacker/engine_rake_tasks_spec.rb +0 -50
  212. data/spec/shakapacker/env_spec.rb +0 -23
  213. data/spec/shakapacker/helper_spec.rb +0 -243
  214. data/spec/shakapacker/instance_spec.rb +0 -29
  215. data/spec/shakapacker/manifest_spec.rb +0 -100
  216. data/spec/shakapacker/mtime_strategy_spec.rb +0 -55
  217. data/spec/shakapacker/rake_tasks_spec.rb +0 -85
  218. data/spec/shakapacker/shakapacker_spec.rb +0 -40
  219. data/spec/shakapacker/spec_helper_initializer.rb +0 -24
  220. data/spec/shakapacker/test_app/.gitignore +0 -2
  221. data/spec/shakapacker/test_app/Rakefile +0 -3
  222. data/spec/shakapacker/test_app/app/javascript/entrypoints/application.js +0 -10
  223. data/spec/shakapacker/test_app/app/javascript/entrypoints/generated/something.js +0 -2
  224. data/spec/shakapacker/test_app/app/javascript/entrypoints/multi_entry.css +0 -4
  225. data/spec/shakapacker/test_app/app/javascript/entrypoints/multi_entry.js +0 -4
  226. data/spec/shakapacker/test_app/bin/shakapacker +0 -14
  227. data/spec/shakapacker/test_app/bin/shakapacker-dev-server +0 -14
  228. data/spec/shakapacker/test_app/config/application.rb +0 -11
  229. data/spec/shakapacker/test_app/config/environment.rb +0 -4
  230. data/spec/shakapacker/test_app/config/initializers/inspect_autoload_paths.rb +0 -1
  231. data/spec/shakapacker/test_app/config/shakapacker.yml +0 -82
  232. data/spec/shakapacker/test_app/config/shakapacker_css_extract_ignore_order_warnings.yml +0 -83
  233. data/spec/shakapacker/test_app/config/shakapacker_defaults_fallback.yml +0 -11
  234. data/spec/shakapacker/test_app/config/shakapacker_manifest_path.yml +0 -79
  235. data/spec/shakapacker/test_app/config/shakapacker_nested_entries.yml +0 -82
  236. data/spec/shakapacker/test_app/config/shakapacker_no_precompile.yml +0 -7
  237. data/spec/shakapacker/test_app/config/shakapacker_other_location.yml +0 -84
  238. data/spec/shakapacker/test_app/config/shakapacker_public_root.yml +0 -18
  239. data/spec/shakapacker/test_app/config/webpack/webpack.config.js +0 -0
  240. data/spec/shakapacker/test_app/config.ru +0 -5
  241. data/spec/shakapacker/test_app/package.json +0 -14
  242. data/spec/shakapacker/test_app/public/packs/manifest.json +0 -58
  243. data/spec/shakapacker/test_app/some.config.js +0 -0
  244. data/spec/shakapacker/test_app/yarn.lock +0 -11
  245. data/spec/shakapacker/utils_manager_spec.rb +0 -125
  246. data/spec/shakapacker/version_checker_spec.rb +0 -1469
  247. data/spec/shakapacker/webpack_runner_spec.rb +0 -76
  248. data/spec/spec_helper.rb +0 -100
  249. data/spec/support/package_json_helpers.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c91750341bc2784dd7ac88b732dd6881393e47cc4d8b6581226ad4cd92a96923
4
- data.tar.gz: 0bbb3a5721287691e508522e6d354a2c8d445756fc73823c68d6122bb4757b92
3
+ metadata.gz: 11198f6552ef8050f8946a58ebdf5ff5cffa7a79a9dd8aec3932afd1b7befdc3
4
+ data.tar.gz: 7b50eca8202c5f2bcadabd61d5f9dfb15c48a91d5b4c45125beb58c5e1943ce1
5
5
  SHA512:
6
- metadata.gz: 29df517703f09ddc5e55de809e5bf8e0641903b98f0fab9c67c2710789d3f5003844cb8332f82a953a3f024481d74bdb5fce1d714c4aa99c178d9e9758bb49a4
7
- data.tar.gz: 27d226aa730bca5b467ee6935b97f42064982ea69e4e66436adf9dc510b143de8cd420a9459f18bc4836efda9295cdd76220ed28162fbdc84c4c52350a801d84
6
+ metadata.gz: 82d676202bfbd8d99d0192e91f1215715094122f32e3776c9ab394cb9f35c7e0bbc67f31aacc88b07c4081b059c46011be883c7bf4f48988f82d3f18a9b99024
7
+ data.tar.gz: dac55e80ee92fa06ba53580b0555a677788dfb0d061148db7fef18bd34b9ad11cbe3350b4ee84609b3207d0f2dc45a9e6a454f21eb2dbf3688e17eaf7861bf44
@@ -19,7 +19,7 @@ jobs:
19
19
  - uses: actions/checkout@v4
20
20
  with:
21
21
  persist-credentials: false
22
- - uses: actions/setup-node@v3
22
+ - uses: actions/setup-node@v4
23
23
  with:
24
24
  node-version: '16'
25
25
  - uses: ruby/setup-ruby@v1
@@ -18,7 +18,7 @@ jobs:
18
18
  strategy:
19
19
  matrix:
20
20
  os: [ubuntu-latest]
21
- ruby: ['2.7', '3.0', '3.1', '3.2']
21
+ ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
22
22
  gemfile:
23
23
  - gemfiles/Gemfile-rails.6.0.x
24
24
  - gemfiles/Gemfile-rails.6.1.x
@@ -32,6 +32,10 @@ jobs:
32
32
  gemfile: gemfiles/Gemfile-rails.6.0.x
33
33
  - ruby: '3.2'
34
34
  gemfile: gemfiles/Gemfile-rails.6.0.x
35
+ - ruby: '3.3'
36
+ gemfile: gemfiles/Gemfile-rails.6.0.x
37
+ - ruby: '3.3'
38
+ gemfile: gemfiles/Gemfile-rails.6.1.x
35
39
 
36
40
  env:
37
41
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
@@ -44,7 +44,7 @@ jobs:
44
44
  with:
45
45
  persist-credentials: false
46
46
  - name: Use Node.js ${{ matrix.node }}
47
- uses: actions/setup-node@v3
47
+ uses: actions/setup-node@v4
48
48
  with:
49
49
  node-version: ${{ matrix.node }}
50
50
  cache: yarn
@@ -19,9 +19,11 @@ jobs:
19
19
  - uses: actions/checkout@v4
20
20
  with:
21
21
  persist-credentials: false
22
+ - name: Remove Gemfile.lock
23
+ run: rm -f Gemfile.lock
22
24
  - uses: ruby/setup-ruby@v1
23
25
  with:
24
- ruby-version: '3.2'
26
+ ruby-version: '3.3'
25
27
  bundler-cache: true
26
28
 
27
29
  - name: Ruby rubocop
@@ -33,7 +35,7 @@ jobs:
33
35
  strategy:
34
36
  matrix:
35
37
  os: [ubuntu-latest]
36
- ruby: ['2.7', '3.0', '3.1', '3.2']
38
+ ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
37
39
  gemfile:
38
40
  - gemfiles/Gemfile-rails.6.0.x
39
41
  - gemfiles/Gemfile-rails.6.1.x
@@ -47,6 +49,10 @@ jobs:
47
49
  gemfile: gemfiles/Gemfile-rails.6.0.x
48
50
  - ruby: '3.2'
49
51
  gemfile: gemfiles/Gemfile-rails.6.0.x
52
+ - ruby: '3.3'
53
+ gemfile: gemfiles/Gemfile-rails.6.0.x
54
+ - ruby: '3.3'
55
+ gemfile: gemfiles/Gemfile-rails.6.1.x
50
56
 
51
57
  env:
52
58
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  /.bundle
2
- Gemfile.lock
3
2
  /pkg
4
3
  /spec/mounted_app/test/dummy/log
5
4
  /spec/test_app/log
data/.node-version CHANGED
@@ -1 +1 @@
1
- 21.0.0
1
+ 22.2.0
data/CHANGELOG.md CHANGED
@@ -10,24 +10,32 @@ _next_ branch is for v8 changes
10
10
  ## [Unreleased]
11
11
  Changes since the last non-beta release.
12
12
 
13
- ### Breaking changes
14
- - Removes CDN url from the manifest.json paths. [PR 473](https://github.com/shakacode/shakapacker/pull/473) by [tomdracz](https://github.com/tomdracz).
15
-
16
- This returns to the Webpacker behaviour prior to the aborted Webpacker v6.
13
+ ### Changed
14
+ - Update outdated GitHub Actions to use Node.js 20.0 versions instead [PR 497](https://github.com/shakacode/shakapacker/pull/497) by [adriangohjw](https://github.com/adriangohjw).
15
+ - Allow `webpack-merge` v6 to be used [PR 502](https://github.com/shakacode/shakapacker/pull/502) by [G-Rath](https://github.com/g-rath).
17
16
 
18
17
  ### Fixed
19
18
 
20
- - Fixes incorrect removal of files in the assets:clean task [PR 474](https://github.com/shakacode/shakapacker/pull/474) by [tomdracz](https://github.com/tomdracz).
19
+ - Fixes failing tests for Ruby 2.7 due to `Rack::Handler::Puma.respond_to?(:config)` [PR 501](https://github.com/shakacode/shakapacker/pull/501) by [adriangohjw](https://github.com/adriangohjw)
20
+
21
+ - Improve documentation for using Yarn PnP [PR 484](https://github.com/shakacode/shakapacker/pull/484) by [G-Rath](https://github.com/g-rath).
22
+
23
+ - Remove old `yarn` bin script [PR 483](https://github.com/shakacode/shakapacker/pull/483) by [G-Rath](https://github.com/g-rath).
24
+
25
+ ## [v8.0.0] - May 17, 2024
21
26
 
22
- ## [v8.0.0.rc.3] - May 9, 2024
27
+ See the [v8 Upgrade Guide](https://github.com/shakacode/shakapacker/blob/main/docs/v8_upgrade.md).
23
28
 
24
29
  ### Fixed
25
30
 
26
- - Support v9 PNPM lockfiles [PR 472](https://github.com/shakacode/shakapacker/pull/472) by [G-Rath](https://github.com/g-rath).
31
+ - Fixes incorrect removal of files in the assets:clean task [PR 474](https://github.com/shakacode/shakapacker/pull/474) by [tomdracz](https://github.com/tomdracz).
27
32
 
28
- ## [v8.0.0.rc.2] - May 7, 2024
33
+ - Support v9 PNPM lockfiles [PR 472](https://github.com/shakacode/shakapacker/pull/472) by [G-Rath](https://github.com/g-rath).
29
34
 
30
35
  ### Breaking changes
36
+
37
+ - Removes CDN url from the manifest.json paths. [PR 473](https://github.com/shakacode/shakapacker/pull/473) by [tomdracz](https://github.com/tomdracz). This returns to the Webpacker behaviour prior to the aborted Webpacker v6.
38
+
31
39
  - Remove `relative_url_root` [PR 413](https://github.com/shakacode/shakapacker/pull/413) by [G-Rath](https://github.com/g-rath).
32
40
 
33
41
  - Removes deprecated support of `Webpacker` spelling, config variables and constants. [PR 429](https://github.com/shakacode/shakapacker/pull/429) by [tomdracz](https://github.com/tomdracz).
@@ -43,6 +51,8 @@ Changes since the last non-beta release.
43
51
  This enables support for package managers other than `yarn`, with `npm` being the default; to continue using Yarn,
44
52
  specify it in `package.json` using the [`packageManager`](https://nodejs.org/api/packages.html#packagemanager) property.
45
53
 
54
+ This also removed `@node_modules_bin_path`, `SHAKAPACKER_NODE_MODULES_BIN_PATH`, and support for installing `Shakapacker`'s javascript package in a separate directory from the Gemfile containing `Shakapacker`'s ruby gem.
55
+
46
56
  - Remove `yarn_install` rake task, and stop installing js packages automatically as part of `assets:precompile` [PR 412](https://github.com/shakacode/shakapacker/pull/412) by [G-Rath](https://github.com/g-rath).
47
57
 
48
58
  - Remove `check_yarn` rake task [PR 443](https://github.com/shakacode/shakapacker/pull/443) by [G-Rath](https://github.com/g-rath).
@@ -345,7 +355,7 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
345
355
  ## [v6.0.0.rc.6 changes from v5.4] - Forked January 16, 2022
346
356
 
347
357
 
348
- - `node_modules` will no longer be babel transfomed compiled by default. This primarily fixes [rails issue #35501](https://github.com/rails/rails/issues/35501) as well as [numerous other webpacker issues](https://github.com/rails/webpacker/issues/2131#issuecomment-581618497). The disabled loader can still be required explicitly via:
358
+ - `node_modules` will no longer be babel transformed compiled by default. This primarily fixes [rails issue #35501](https://github.com/rails/rails/issues/35501) as well as [numerous other webpacker issues](https://github.com/rails/webpacker/issues/2131#issuecomment-581618497). The disabled loader can still be required explicitly via:
349
359
 
350
360
  ```js
351
361
  const nodeModules = require('@rails/webpacker/rules/node_modules.js')
@@ -370,9 +380,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
370
380
  ## v5.4.3 and prior changes from rails/webpacker
371
381
  See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
372
382
 
373
- [Unreleased]: https://github.com/shakacode/shakapacker/compare/v8.0.0-rc.3...main
374
- [v8.0.0.rc.3]: https://github.com/shakacode/shakapacker/compare/v8.0.0-rc.2...v8.0.0-rc.3
375
- [v8.0.0.rc.2]: https://github.com/shakacode/shakapacker/compare/v7.2.3...v8.0.0-rc.2
383
+ [Unreleased]: https://github.com/shakacode/shakapacker/compare/v8.0.0...main
384
+ [v8.0.0]: https://github.com/shakacode/shakapacker/compare/v7.2.3...v8.0.0
376
385
  [v7.2.3]: https://github.com/shakacode/shakapacker/compare/v7.2.2...v7.2.3
377
386
  [v7.2.2]: https://github.com/shakacode/shakapacker/compare/v7.2.1...v7.2.2
378
387
  [v7.2.1]: https://github.com/shakacode/shakapacker/compare/v7.2.0...v7.2.1
data/Gemfile.lock ADDED
@@ -0,0 +1,257 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shakapacker (8.0.1)
5
+ activesupport (>= 5.2)
6
+ package_json
7
+ rack-proxy (>= 0.6.1)
8
+ railties (>= 5.2)
9
+ semantic_range (>= 2.3.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actioncable (7.1.3.4)
15
+ actionpack (= 7.1.3.4)
16
+ activesupport (= 7.1.3.4)
17
+ nio4r (~> 2.0)
18
+ websocket-driver (>= 0.6.1)
19
+ zeitwerk (~> 2.6)
20
+ actionmailbox (7.1.3.4)
21
+ actionpack (= 7.1.3.4)
22
+ activejob (= 7.1.3.4)
23
+ activerecord (= 7.1.3.4)
24
+ activestorage (= 7.1.3.4)
25
+ activesupport (= 7.1.3.4)
26
+ mail (>= 2.7.1)
27
+ net-imap
28
+ net-pop
29
+ net-smtp
30
+ actionmailer (7.1.3.4)
31
+ actionpack (= 7.1.3.4)
32
+ actionview (= 7.1.3.4)
33
+ activejob (= 7.1.3.4)
34
+ activesupport (= 7.1.3.4)
35
+ mail (~> 2.5, >= 2.5.4)
36
+ net-imap
37
+ net-pop
38
+ net-smtp
39
+ rails-dom-testing (~> 2.2)
40
+ actionpack (7.1.3.4)
41
+ actionview (= 7.1.3.4)
42
+ activesupport (= 7.1.3.4)
43
+ nokogiri (>= 1.8.5)
44
+ racc
45
+ rack (>= 2.2.4)
46
+ rack-session (>= 1.0.1)
47
+ rack-test (>= 0.6.3)
48
+ rails-dom-testing (~> 2.2)
49
+ rails-html-sanitizer (~> 1.6)
50
+ actiontext (7.1.3.4)
51
+ actionpack (= 7.1.3.4)
52
+ activerecord (= 7.1.3.4)
53
+ activestorage (= 7.1.3.4)
54
+ activesupport (= 7.1.3.4)
55
+ globalid (>= 0.6.0)
56
+ nokogiri (>= 1.8.5)
57
+ actionview (7.1.3.4)
58
+ activesupport (= 7.1.3.4)
59
+ builder (~> 3.1)
60
+ erubi (~> 1.11)
61
+ rails-dom-testing (~> 2.2)
62
+ rails-html-sanitizer (~> 1.6)
63
+ activejob (7.1.3.4)
64
+ activesupport (= 7.1.3.4)
65
+ globalid (>= 0.3.6)
66
+ activemodel (7.1.3.4)
67
+ activesupport (= 7.1.3.4)
68
+ activerecord (7.1.3.4)
69
+ activemodel (= 7.1.3.4)
70
+ activesupport (= 7.1.3.4)
71
+ timeout (>= 0.4.0)
72
+ activestorage (7.1.3.4)
73
+ actionpack (= 7.1.3.4)
74
+ activejob (= 7.1.3.4)
75
+ activerecord (= 7.1.3.4)
76
+ activesupport (= 7.1.3.4)
77
+ marcel (~> 1.0)
78
+ activesupport (7.1.3.4)
79
+ base64
80
+ bigdecimal
81
+ concurrent-ruby (~> 1.0, >= 1.0.2)
82
+ connection_pool (>= 2.2.5)
83
+ drb
84
+ i18n (>= 1.6, < 2)
85
+ minitest (>= 5.1)
86
+ mutex_m
87
+ tzinfo (~> 2.0)
88
+ ast (2.4.2)
89
+ base64 (0.2.0)
90
+ bigdecimal (3.1.8)
91
+ builder (3.3.0)
92
+ byebug (11.1.3)
93
+ concurrent-ruby (1.3.3)
94
+ connection_pool (2.4.1)
95
+ crass (1.0.6)
96
+ date (3.3.4)
97
+ diff-lcs (1.5.1)
98
+ drb (2.2.1)
99
+ erubi (1.13.0)
100
+ globalid (1.2.1)
101
+ activesupport (>= 6.1)
102
+ i18n (1.14.5)
103
+ concurrent-ruby (~> 1.0)
104
+ io-console (0.7.2)
105
+ irb (1.14.0)
106
+ rdoc (>= 4.0.0)
107
+ reline (>= 0.4.2)
108
+ json (2.7.2)
109
+ language_server-protocol (3.17.0.3)
110
+ loofah (2.22.0)
111
+ crass (~> 1.0.2)
112
+ nokogiri (>= 1.12.0)
113
+ mail (2.8.1)
114
+ mini_mime (>= 0.1.1)
115
+ net-imap
116
+ net-pop
117
+ net-smtp
118
+ marcel (1.0.4)
119
+ mini_mime (1.1.5)
120
+ mini_portile2 (2.8.7)
121
+ minitest (5.24.1)
122
+ mutex_m (0.2.0)
123
+ net-imap (0.4.14)
124
+ date
125
+ net-protocol
126
+ net-pop (0.1.2)
127
+ net-protocol
128
+ net-protocol (0.2.2)
129
+ timeout
130
+ net-smtp (0.5.0)
131
+ net-protocol
132
+ nio4r (2.7.3)
133
+ nokogiri (1.16.6)
134
+ mini_portile2 (~> 2.8.2)
135
+ racc (~> 1.4)
136
+ package_json (0.1.0)
137
+ parallel (1.25.1)
138
+ parser (3.3.3.0)
139
+ ast (~> 2.4.1)
140
+ racc
141
+ psych (5.1.2)
142
+ stringio
143
+ racc (1.8.0)
144
+ rack (3.1.6)
145
+ rack-proxy (0.7.7)
146
+ rack
147
+ rack-session (2.0.0)
148
+ rack (>= 3.0.0)
149
+ rack-test (2.1.0)
150
+ rack (>= 1.3)
151
+ rackup (2.1.0)
152
+ rack (>= 3)
153
+ webrick (~> 1.8)
154
+ rails (7.1.3.4)
155
+ actioncable (= 7.1.3.4)
156
+ actionmailbox (= 7.1.3.4)
157
+ actionmailer (= 7.1.3.4)
158
+ actionpack (= 7.1.3.4)
159
+ actiontext (= 7.1.3.4)
160
+ actionview (= 7.1.3.4)
161
+ activejob (= 7.1.3.4)
162
+ activemodel (= 7.1.3.4)
163
+ activerecord (= 7.1.3.4)
164
+ activestorage (= 7.1.3.4)
165
+ activesupport (= 7.1.3.4)
166
+ bundler (>= 1.15.0)
167
+ railties (= 7.1.3.4)
168
+ rails-dom-testing (2.2.0)
169
+ activesupport (>= 5.0.0)
170
+ minitest
171
+ nokogiri (>= 1.6)
172
+ rails-html-sanitizer (1.6.0)
173
+ loofah (~> 2.21)
174
+ nokogiri (~> 1.14)
175
+ railties (7.1.3.4)
176
+ actionpack (= 7.1.3.4)
177
+ activesupport (= 7.1.3.4)
178
+ irb
179
+ rackup (>= 1.0.0)
180
+ rake (>= 12.2)
181
+ thor (~> 1.0, >= 1.2.2)
182
+ zeitwerk (~> 2.6)
183
+ rainbow (3.1.1)
184
+ rake (13.2.1)
185
+ rdoc (6.7.0)
186
+ psych (>= 4.0.0)
187
+ regexp_parser (2.9.2)
188
+ reline (0.5.9)
189
+ io-console (~> 0.5)
190
+ rexml (3.3.1)
191
+ strscan
192
+ rspec-core (3.13.0)
193
+ rspec-support (~> 3.13.0)
194
+ rspec-expectations (3.13.1)
195
+ diff-lcs (>= 1.2.0, < 2.0)
196
+ rspec-support (~> 3.13.0)
197
+ rspec-mocks (3.13.1)
198
+ diff-lcs (>= 1.2.0, < 2.0)
199
+ rspec-support (~> 3.13.0)
200
+ rspec-rails (6.0.4)
201
+ actionpack (>= 6.1)
202
+ activesupport (>= 6.1)
203
+ railties (>= 6.1)
204
+ rspec-core (~> 3.12)
205
+ rspec-expectations (~> 3.12)
206
+ rspec-mocks (~> 3.12)
207
+ rspec-support (~> 3.12)
208
+ rspec-support (3.13.1)
209
+ rubocop (1.64.1)
210
+ json (~> 2.3)
211
+ language_server-protocol (>= 3.17.0)
212
+ parallel (~> 1.10)
213
+ parser (>= 3.3.0.2)
214
+ rainbow (>= 2.2.2, < 4.0)
215
+ regexp_parser (>= 1.8, < 3.0)
216
+ rexml (>= 3.2.5, < 4.0)
217
+ rubocop-ast (>= 1.31.1, < 2.0)
218
+ ruby-progressbar (~> 1.7)
219
+ unicode-display_width (>= 2.4.0, < 3.0)
220
+ rubocop-ast (1.31.3)
221
+ parser (>= 3.3.1.0)
222
+ rubocop-performance (1.21.1)
223
+ rubocop (>= 1.48.1, < 2.0)
224
+ rubocop-ast (>= 1.31.1, < 2.0)
225
+ ruby-progressbar (1.13.0)
226
+ semantic_range (3.0.0)
227
+ stringio (3.1.1)
228
+ strscan (3.1.0)
229
+ thor (1.3.1)
230
+ timeout (0.4.1)
231
+ tzinfo (2.0.6)
232
+ concurrent-ruby (~> 1.0)
233
+ unicode-display_width (2.5.0)
234
+ webrick (1.8.1)
235
+ websocket-driver (0.7.6)
236
+ websocket-extensions (>= 0.1.0)
237
+ websocket-extensions (0.1.5)
238
+ zeitwerk (2.6.16)
239
+
240
+ PLATFORMS
241
+ ruby
242
+
243
+ DEPENDENCIES
244
+ bundler (>= 1.3.0)
245
+ byebug
246
+ nokogiri (>= 1.13.6)
247
+ rack-proxy (>= 0.7.2)
248
+ rails (>= 6.1.6)
249
+ rails-html-sanitizer (>= 1.4.3)
250
+ rake (>= 11.1)
251
+ rspec-rails (~> 6.0.2)
252
+ rubocop
253
+ rubocop-performance
254
+ shakapacker!
255
+
256
+ BUNDLED WITH
257
+ 2.5.9
data/README.md CHANGED
@@ -156,7 +156,7 @@ Shakapacker uses the [`package_json`](https://github.com/shakacode/package_json)
156
156
 
157
157
  If `packageManager` is not set when running `shakapacker:install`, Shakapacker will set it based on the lockfile and the result of calling `--version` on the inferred manager; if no lockfile is present, then `npm` be used unless you choose to explicitly set the `PACKAGE_JSON_FALLBACK_MANAGER` to your preferred package manager.
158
158
 
159
- > **Note**
159
+ > [!NOTE]
160
160
  >
161
161
  > The `packageManager` property is only used to determine the package manager to use, based primarily on its name.
162
162
  > The version (if present) is only used to determine if Yarn Classic or Yarn Berry should be used, but is otherwise
@@ -167,7 +167,9 @@ If `packageManager` is not set when running `shakapacker:install`, Shakapacker w
167
167
 
168
168
  See [here](https://github.com/G-Rath/package_json#specifying-a-package-manager) for a list of the supported package managers and more information; note that `package_json` does not handle ensuring the manager is installed.
169
169
 
170
- > [NOTE]
170
+ If you wish to use [Yarn PnP](https://yarnpkg.com/features/pnp) you will need to configure Babel using a `babel.config.js` file rather than via `package.json` - see [customizing Babel Config](./docs/customizing_babel_config.md) for examples on how to do this.
171
+
172
+ > [!NOTE]
171
173
  >
172
174
  > The rest of the documentation will only reference `npm` when providing commands such as to install optional packages except in cases where
173
175
  > a particular package manager requires a very different command; otherwise it should be safe to just replace `npm` with the name of your
@@ -444,16 +446,13 @@ In production or CI environments, the `digest` strategy is more suitable, unless
444
446
 
445
447
  You can control what strategy is used by the `compiler_strategy` option in `shakapacker.yml` config file. By default `mtime` strategy is used in development environment, `digest` is used elsewhere.
446
448
 
447
- **Note:**
448
- If you are not using the `shakapacker-dev-server`,
449
- your packs will be served by the Rails public file server.
450
- If you've enabled caching
451
- (Rails application `config.action_controller.perform_caching` setting),
452
- your changes will likely not be picked up due to `Cache-Control` header being set
453
- and
454
- assets being cached in the browser memory.
455
- For more details see
456
- [issue 88: Caching issues in Development since migrating to Shakapacker](https://github.com/shakacode/shakapacker/issues/88).
449
+ > [!NOTE]
450
+ >
451
+ > If you are not using the `shakapacker-dev-server`, your packs will be served by the Rails public file server.
452
+ > If you've enabled caching (Rails application `config.action_controller.perform_caching` setting),
453
+ > your changes will likely not be picked up due to `Cache-Control` header being set and assets being cached in the browser memory.
454
+ >
455
+ > For more details see [issue 88: Caching issues in Development since migrating to Shakapacker](https://github.com/shakacode/shakapacker/issues/88).
457
456
 
458
457
  If you want to use live code reloading, or you have enough JavaScript that on-demand compilation is too slow, you'll need to run `./bin/shakapacker-dev-server`. This process will watch for changes in the relevant files, defined by `shakapacker.yml` configuration settings for `source_path`, `source_entry_path`, and `additional_paths`, and it will then automatically reload the browser to match. This feature is also known as [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/).
459
458
 
@@ -14,16 +14,44 @@ The default configuration of babel is done by using `package.json` to use the fi
14
14
  ```
15
15
 
16
16
  ## Customizing the Babel Config
17
- This example shows how you can create an object and apply _additional_ presets and plugins on top of the default.
18
17
 
19
- ### React Configuration
20
- To use this example file,
18
+ ### Basic Configuration
19
+
20
+ This is a very basic skeleton that you can use that includes the Shakapacker preset, and makes it easy to add new plugins and presents:
21
+
22
+ ```js
23
+ // babel.config.js
24
+ module.exports = function (api) {
25
+ const defaultConfigFunc = require('shakapacker/package/babel/preset.js')
26
+ const resultConfig = defaultConfigFunc(api)
27
+
28
+ const changesOnDefault = {
29
+ presets: [
30
+ // put custom presets here
31
+ ].filter(Boolean),
32
+ plugins: [
33
+ // put custom plugins here
34
+ ].filter(Boolean),
35
+ }
21
36
 
37
+ resultConfig.presets = [...resultConfig.presets, ...changesOnDefault.presets]
38
+ resultConfig.plugins = [...resultConfig.plugins, ...changesOnDefault.plugins]
39
+
40
+ return resultConfig
41
+ }
22
42
  ```
43
+
44
+ ### React Configuration
45
+
46
+ This shows how you can add to the above skeleton to support React - to use this, install the following dependencies:
47
+
48
+ ```bash
23
49
  npm install react react-dom @babel/preset-react
24
50
  npm install --dev @pmmmwh/react-refresh-webpack-plugin react-refresh
25
51
  ```
26
52
 
53
+ And then update the configuration:
54
+
27
55
  ```js
28
56
  // babel.config.js
29
57
  module.exports = function (api) {
@@ -54,7 +82,7 @@ module.exports = function (api) {
54
82
  }
55
83
 
56
84
  resultConfig.presets = [...resultConfig.presets, ...changesOnDefault.presets]
57
- resultConfig.plugins = [...resultConfig.plugins, ...changesOnDefault.plugins ]
85
+ resultConfig.plugins = [...resultConfig.plugins, ...changesOnDefault.plugins]
58
86
 
59
87
  return resultConfig
60
88
  }
data/docs/react.md CHANGED
@@ -3,11 +3,12 @@
3
3
  These steps describe creating a Rails/React app, using Shakapacker as the bundler.
4
4
 
5
5
  ## Easy Setup
6
+
6
7
  If you'd like easy integration of React with Ruby on Rails, see [React on Rails](https://github.com/shakacode/react_on_rails).
7
8
 
8
- The below information applies to a React on Rails app, except that you need to setup some environment variables as follows:
9
+ The following information applies to a React on Rails app. Additionally, you need to set up some environment variables as follows:
9
10
 
10
- ```
11
+ ```shell
11
12
  EXECJS_RUNTIME=Node
12
13
  ```
13
14
 
@@ -180,7 +180,7 @@ default: &default
180
180
 
181
181
  If you want to access any dependency without importing it everywhere or use it directly in your dev tools, please check: [https://webpack.js.org/plugins/provide-plugin/](https://webpack.js.org/plugins/provide-plugin/) and the [webpack docs on shimming globals](https://webpack.js.org/guides/shimming/#shimming-globals).
182
182
 
183
- Note, if you are exposing globals, like jQuery, to non-webpack dependencies (like an inline script) via the [expose-loader](https://webpack.js.org/loaders/expose-loader/), you will need to override the default of `defer: true` to be `defer:false` your call to the `javascript_pack_tag` so that the browser will load your bundle to setup the global variable before other code depends on it. However, you really should try to remove the dependendency on such globals.
183
+ Note, if you are exposing globals, like jQuery, to non-webpack dependencies (like an inline script) via the [expose-loader](https://webpack.js.org/loaders/expose-loader/), you will need to override the default of `defer: true` to be `defer:false` your call to the `javascript_pack_tag` so that the browser will load your bundle to set up the global variable before other code depends on it. However, you really should try to remove the dependency on such globals.
184
184
 
185
185
  Thus ProvidePlugin manages build-time dependencies to global symbols whereas the expose-loader manages runtime dependencies to global symbols.
186
186
 
data/docs/v8_upgrade.md CHANGED
@@ -33,7 +33,7 @@ Setting for example:
33
33
  __webpack_public_path__ = 'https://mycdn.url.com/packs';
34
34
  ```
35
35
 
36
- In your code and ensuring it is run first in the app, will allow the dynamic imports lookup path to be overriden at runtime.
36
+ In your code and ensuring it is run first in the app, will allow the dynamic imports lookup path to be overridden at runtime.
37
37
 
38
38
  You can also try Webpack `output.publicPath` option of `'auto'` as per https://webpack.js.org/guides/public-path/#automatic-publicpath.
39
39
 
@@ -152,7 +152,7 @@ module.exports = merge(globalMutableWebpackConfig, customConfig);
152
152
 
153
153
  ```js
154
154
  // after
155
- const { generateWebpackConfig } = require('shakapacker');
155
+ const { generateWebpackConfig, merge } = require('shakapacker');
156
156
 
157
157
  const customConfig = {
158
158
  module: {
@@ -1,4 +1,4 @@
1
1
  module Shakapacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "8.0.0".freeze
3
+ VERSION = "8.0.1".freeze
4
4
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shakapacker",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "homepage": "https://github.com/shakacode/shakapacker",
6
6
  "bugs": {
@@ -62,7 +62,7 @@
62
62
  "webpack-assets-manifest": "^5.0.6",
63
63
  "webpack-cli": "^4.9.2 || ^5.0.0",
64
64
  "webpack-dev-server": "^4.9.0 || ^5.0.0",
65
- "webpack-merge": "^5.8.0"
65
+ "webpack-merge": "^5.8.0 || ^6.0.0"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@types/babel__core": {
data/shakapacker.gemspec CHANGED
@@ -27,6 +27,9 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency "rubocop"
28
28
  s.add_development_dependency "rubocop-performance"
29
29
 
30
- s.files = `git ls-files`.split("\n")
31
- s.test_files = `git ls-files -- test/*`.split("\n")
30
+ s.files = `git ls-files -z`.split("\x0").reject { |f|
31
+ f.match(%r{^(test|spec|features|tmp|node_modules|packages|coverage|Gemfile.lock|rakelib)/})
32
+ }
33
+
34
+ s.test_files = `git ls-files -- test/*`.split("\n")
32
35
  end