webpacker 5.0.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.js +8 -8
  3. data/.github/workflows/jest.yml +38 -0
  4. data/.github/workflows/js-lint.yml +39 -0
  5. data/.github/workflows/rubocop.yml +39 -0
  6. data/.github/workflows/ruby.yml +70 -0
  7. data/.node-version +1 -1
  8. data/CHANGELOG.md +27 -2
  9. data/Gemfile.lock +76 -76
  10. data/README.md +47 -79
  11. data/docs/css.md +58 -3
  12. data/docs/env.md +0 -2
  13. data/docs/integrations.md +1 -1
  14. data/docs/target.md +22 -0
  15. data/docs/testing.md +2 -3
  16. data/docs/troubleshooting.md +3 -1
  17. data/docs/typescript.md +92 -27
  18. data/docs/webpack-dev-server.md +1 -1
  19. data/lib/install/config/babel.config.js +1 -3
  20. data/lib/install/config/webpacker.yml +1 -5
  21. data/lib/install/examples/react/tsconfig.json +2 -1
  22. data/lib/install/examples/typescript/tsconfig.json +2 -1
  23. data/lib/install/typescript.rb +5 -12
  24. data/lib/tasks/webpacker/check_node.rake +1 -1
  25. data/lib/tasks/webpacker/check_yarn.rake +1 -1
  26. data/lib/webpacker/compiler.rb +9 -5
  27. data/lib/webpacker/configuration.rb +13 -9
  28. data/lib/webpacker/dev_server_proxy.rb +3 -1
  29. data/lib/webpacker/dev_server_runner.rb +2 -2
  30. data/lib/webpacker/helper.rb +37 -18
  31. data/lib/webpacker/railtie.rb +0 -43
  32. data/lib/webpacker/runner.rb +1 -0
  33. data/lib/webpacker/version.rb +1 -1
  34. data/lib/webpacker/webpack_runner.rb +2 -2
  35. data/package.json +35 -35
  36. data/package/__tests__/config.js +12 -1
  37. data/package/__tests__/dev_server.js +2 -0
  38. data/package/__tests__/development.js +14 -1
  39. data/package/config.js +4 -1
  40. data/package/configPath.js +3 -0
  41. data/package/dev_server.js +1 -1
  42. data/package/env.js +1 -2
  43. data/package/environments/__tests__/base.js +25 -8
  44. data/package/environments/base.js +5 -6
  45. data/package/environments/development.js +39 -33
  46. data/package/environments/production.js +1 -3
  47. data/package/rules/babel.js +12 -5
  48. data/package/rules/file.js +1 -0
  49. data/package/rules/node_modules.js +1 -3
  50. data/package/rules/sass.js +7 -2
  51. data/package/utils/helpers.js +1 -1
  52. data/test/compiler_test.rb +8 -3
  53. data/test/configuration_test.rb +8 -7
  54. data/test/dev_server_runner_test.rb +1 -1
  55. data/test/helper_test.rb +3 -0
  56. data/test/test_app/config/application.rb +0 -1
  57. data/test/test_app/config/webpacker.yml +7 -1
  58. data/test/test_app/public/packs/manifest.json +1 -0
  59. data/test/webpack_runner_test.rb +1 -1
  60. data/yarn.lock +3198 -3166
  61. metadata +10 -5
  62. data/lib/install/loaders/typescript.js +0 -11
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-22 00:00:00.000000000 Z
12
+ date: 2020-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -119,6 +119,10 @@ extra_rdoc_files: []
119
119
  files:
120
120
  - ".eslintignore"
121
121
  - ".eslintrc.js"
122
+ - ".github/workflows/jest.yml"
123
+ - ".github/workflows/js-lint.yml"
124
+ - ".github/workflows/rubocop.yml"
125
+ - ".github/workflows/ruby.yml"
122
126
  - ".gitignore"
123
127
  - ".node-version"
124
128
  - ".rubocop.yml"
@@ -142,6 +146,7 @@ files:
142
146
  - docs/integrations.md
143
147
  - docs/misc.md
144
148
  - docs/props.md
149
+ - docs/target.md
145
150
  - docs/testing.md
146
151
  - docs/troubleshooting.md
147
152
  - docs/typescript.md
@@ -193,7 +198,6 @@ files:
193
198
  - lib/install/loaders/elm.js
194
199
  - lib/install/loaders/erb.js
195
200
  - lib/install/loaders/svelte.js
196
- - lib/install/loaders/typescript.js
197
201
  - lib/install/loaders/vue.js
198
202
  - lib/install/react.rb
199
203
  - lib/install/stimulus.rb
@@ -238,6 +242,7 @@ files:
238
242
  - package/__tests__/staging.js
239
243
  - package/__tests__/test.js
240
244
  - package/config.js
245
+ - package/configPath.js
241
246
  - package/config_types/__tests__/config_list.js
242
247
  - package/config_types/__tests__/config_object.js
243
248
  - package/config_types/config_list.js
@@ -301,8 +306,8 @@ homepage: https://github.com/rails/webpacker
301
306
  licenses:
302
307
  - MIT
303
308
  metadata:
304
- source_code_uri: https://github.com/rails/webpacker/tree/v5.0.0
305
- changelog_uri: https://github.com/rails/webpacker/blob/v5.0.0/CHANGELOG.md
309
+ source_code_uri: https://github.com/rails/webpacker/tree/v5.2.1
310
+ changelog_uri: https://github.com/rails/webpacker/blob/v5.2.1/CHANGELOG.md
306
311
  post_install_message:
307
312
  rdoc_options: []
308
313
  require_paths:
@@ -1,11 +0,0 @@
1
- const PnpWebpackPlugin = require('pnp-webpack-plugin')
2
-
3
- module.exports = {
4
- test: /\.tsx?(\.erb)?$/,
5
- use: [
6
- {
7
- loader: 'ts-loader',
8
- options: PnpWebpackPlugin.tsLoaderOptions()
9
- }
10
- ]
11
- }