webpacker 4.0.6 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.node-version +1 -1
  3. data/.rubocop.yml +2 -1
  4. data/.travis.yml +7 -4
  5. data/CHANGELOG.md +233 -136
  6. data/Gemfile.lock +78 -59
  7. data/README.md +110 -3
  8. data/docs/css.md +12 -0
  9. data/docs/deployment.md +38 -9
  10. data/docs/docker.md +25 -6
  11. data/docs/engines.md +40 -3
  12. data/docs/es6.md +19 -1
  13. data/docs/troubleshooting.md +37 -9
  14. data/docs/typescript.md +8 -5
  15. data/docs/webpack-dev-server.md +1 -1
  16. data/docs/webpack.md +18 -3
  17. data/gemfiles/Gemfile-rails.6.0.x +9 -0
  18. data/lib/install/bin/webpack +0 -1
  19. data/lib/install/bin/webpack-dev-server +0 -1
  20. data/lib/install/coffee.rb +1 -1
  21. data/lib/install/config/babel.config.js +11 -11
  22. data/lib/install/config/webpacker.yml +2 -1
  23. data/lib/install/elm.rb +1 -1
  24. data/lib/install/erb.rb +2 -2
  25. data/lib/install/examples/angular/hello_angular/polyfills.ts +2 -2
  26. data/lib/install/examples/react/babel.config.js +18 -15
  27. data/lib/install/examples/svelte/app.svelte +11 -0
  28. data/lib/install/examples/svelte/hello_svelte.js +20 -0
  29. data/lib/install/loaders/elm.js +9 -6
  30. data/lib/install/loaders/svelte.js +9 -0
  31. data/lib/install/loaders/typescript.js +1 -1
  32. data/lib/install/svelte.rb +29 -0
  33. data/lib/install/template.rb +1 -1
  34. data/lib/install/typescript.rb +1 -1
  35. data/lib/install/vue.rb +1 -1
  36. data/lib/tasks/installers.rake +1 -0
  37. data/lib/tasks/webpacker.rake +2 -0
  38. data/lib/tasks/webpacker/clean.rake +19 -0
  39. data/lib/tasks/webpacker/compile.rake +2 -10
  40. data/lib/tasks/webpacker/yarn_install.rake +15 -0
  41. data/lib/webpacker.rb +9 -1
  42. data/lib/webpacker/commands.rb +29 -1
  43. data/lib/webpacker/compiler.rb +15 -8
  44. data/lib/webpacker/configuration.rb +9 -1
  45. data/lib/webpacker/dev_server.rb +1 -1
  46. data/lib/webpacker/dev_server_proxy.rb +2 -8
  47. data/lib/webpacker/env.rb +1 -1
  48. data/lib/webpacker/helper.rb +39 -13
  49. data/lib/webpacker/railtie.rb +6 -0
  50. data/lib/webpacker/version.rb +1 -1
  51. data/package.json +36 -37
  52. data/package/__tests__/config.js +0 -23
  53. data/package/config.js +2 -10
  54. data/package/config_types/config_list.js +3 -3
  55. data/package/config_types/config_object.js +1 -1
  56. data/package/environments/base.js +2 -2
  57. data/package/environments/development.js +1 -1
  58. data/package/environments/production.js +12 -0
  59. data/package/rules/babel.js +1 -1
  60. data/package/rules/node_modules.js +2 -2
  61. data/package/rules/sass.js +1 -1
  62. data/package/utils/__tests__/get_style_rule.js +9 -0
  63. data/package/utils/deep_merge.js +5 -5
  64. data/package/utils/get_style_rule.js +7 -12
  65. data/package/utils/helpers.js +9 -9
  66. data/test/command_test.rb +6 -0
  67. data/test/compiler_test.rb +5 -6
  68. data/test/configuration_test.rb +36 -27
  69. data/test/dev_server_test.rb +22 -0
  70. data/test/helper_test.rb +34 -0
  71. data/test/rake_tasks_test.rb +6 -0
  72. data/test/test_app/bin/webpack +0 -1
  73. data/test/test_app/bin/webpack-dev-server +0 -1
  74. data/test/test_app/config/webpacker.yml +1 -0
  75. data/test/test_app/public/packs/manifest.json +3 -0
  76. data/webpacker.gemspec +1 -0
  77. data/yarn.lock +1934 -1642
  78. metadata +24 -4
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: 4.0.6
4
+ version: 4.2.2
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: 2019-05-31 00:00:00.000000000 Z
12
+ date: 2019-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -81,6 +81,20 @@ dependencies:
81
81
  - - "<"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0.69'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rubocop-performance
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
84
98
  description:
85
99
  email:
86
100
  - david@basecamp.com
@@ -125,6 +139,7 @@ files:
125
139
  - gemfiles/Gemfile-rails.5.0.x
126
140
  - gemfiles/Gemfile-rails.5.1.x
127
141
  - gemfiles/Gemfile-rails.5.2.x
142
+ - gemfiles/Gemfile-rails.6.0.x
128
143
  - lib/install/angular.rb
129
144
  - lib/install/bin/webpack
130
145
  - lib/install/bin/webpack-dev-server
@@ -155,6 +170,8 @@ files:
155
170
  - lib/install/examples/stimulus/application.js
156
171
  - lib/install/examples/stimulus/controllers/hello_controller.js
157
172
  - lib/install/examples/stimulus/controllers/index.js
173
+ - lib/install/examples/svelte/app.svelte
174
+ - lib/install/examples/svelte/hello_svelte.js
158
175
  - lib/install/examples/typescript/hello_typescript.ts
159
176
  - lib/install/examples/typescript/tsconfig.json
160
177
  - lib/install/examples/vue/app.vue
@@ -163,10 +180,12 @@ files:
163
180
  - lib/install/loaders/coffee.js
164
181
  - lib/install/loaders/elm.js
165
182
  - lib/install/loaders/erb.js
183
+ - lib/install/loaders/svelte.js
166
184
  - lib/install/loaders/typescript.js
167
185
  - lib/install/loaders/vue.js
168
186
  - lib/install/react.rb
169
187
  - lib/install/stimulus.rb
188
+ - lib/install/svelte.rb
170
189
  - lib/install/template.rb
171
190
  - lib/install/typescript.rb
172
191
  - lib/install/vue.rb
@@ -176,6 +195,7 @@ files:
176
195
  - lib/tasks/webpacker/check_binstubs.rake
177
196
  - lib/tasks/webpacker/check_node.rake
178
197
  - lib/tasks/webpacker/check_yarn.rake
198
+ - lib/tasks/webpacker/clean.rake
179
199
  - lib/tasks/webpacker/clobber.rake
180
200
  - lib/tasks/webpacker/compile.rake
181
201
  - lib/tasks/webpacker/info.rake
@@ -267,8 +287,8 @@ homepage: https://github.com/rails/webpacker
267
287
  licenses:
268
288
  - MIT
269
289
  metadata:
270
- source_code_uri: https://github.com/rails/webpacker/tree/v4.0.6
271
- changelog_uri: https://github.com/rails/webpacker/blob/v4.0.6/CHANGELOG.md
290
+ source_code_uri: https://github.com/rails/webpacker/tree/v4.2.2
291
+ changelog_uri: https://github.com/rails/webpacker/blob/v4.2.2/CHANGELOG.md
272
292
  post_install_message:
273
293
  rdoc_options: []
274
294
  require_paths: