webpacker 4.2.2 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.node-version +1 -1
  3. data/.travis.yml +7 -20
  4. data/CHANGELOG.md +32 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +8 -5
  7. data/README.md +52 -280
  8. data/docs/css.md +3 -4
  9. data/docs/deployment.md +2 -2
  10. data/docs/docker.md +17 -17
  11. data/docs/engines.md +13 -0
  12. data/docs/env.md +0 -2
  13. data/docs/integrations.md +220 -0
  14. data/docs/testing.md +1 -2
  15. data/docs/typescript.md +48 -28
  16. data/lib/install/config/webpacker.yml +0 -4
  17. data/lib/install/examples/react/tsconfig.json +2 -1
  18. data/lib/install/examples/typescript/tsconfig.json +2 -1
  19. data/lib/install/loaders/svelte.js +2 -2
  20. data/lib/install/template.rb +1 -1
  21. data/lib/install/typescript.rb +5 -12
  22. data/lib/tasks/webpacker/check_node.rake +14 -7
  23. data/lib/tasks/webpacker/check_yarn.rake +16 -9
  24. data/lib/tasks/webpacker/clean.rake +12 -6
  25. data/lib/tasks/webpacker/clobber.rake +8 -4
  26. data/lib/tasks/webpacker/yarn_install.rake +5 -16
  27. data/lib/webpacker/commands.rb +33 -9
  28. data/lib/webpacker/compiler.rb +2 -3
  29. data/lib/webpacker/configuration.rb +1 -5
  30. data/lib/webpacker/dev_server_proxy.rb +3 -1
  31. data/lib/webpacker/dev_server_runner.rb +4 -4
  32. data/lib/webpacker/helper.rb +12 -12
  33. data/lib/webpacker/manifest.rb +4 -4
  34. data/lib/webpacker/railtie.rb +0 -43
  35. data/lib/webpacker/version.rb +1 -1
  36. data/package.json +35 -35
  37. data/package/__tests__/dev_server.js +2 -0
  38. data/package/dev_server.js +1 -1
  39. data/package/environments/__tests__/base.js +10 -0
  40. data/package/environments/base.js +12 -1
  41. data/package/environments/development.js +0 -4
  42. data/package/rules/babel.js +1 -1
  43. data/package/rules/sass.js +7 -1
  44. data/test/manifest_test.rb +37 -6
  45. data/test/rake_tasks_test.rb +11 -0
  46. data/test/test_app/app/javascript/packs/multi_entry.css +4 -0
  47. data/test/test_app/app/javascript/packs/multi_entry.js +4 -0
  48. data/test/test_app/config/application.rb +0 -1
  49. data/webpacker.gemspec +4 -3
  50. data/yarn.lock +2627 -1547
  51. metadata +28 -13
  52. data/gemfiles/Gemfile-rails.4.2.x +0 -9
  53. data/gemfiles/Gemfile-rails.5.0.x +0 -9
  54. data/gemfiles/Gemfile-rails.5.1.x +0 -9
  55. 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: 4.2.2
4
+ version: 5.1.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: 2019-12-09 00:00:00.000000000 Z
12
+ date: 2020-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '5.2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
27
+ version: '5.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: railties
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '4.2'
34
+ version: '5.2'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '4.2'
41
+ version: '5.2'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rack-proxy
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +53,20 @@ dependencies:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.6.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: semantic_range
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.3.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 2.3.0
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: bundler
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +139,7 @@ files:
125
139
  - docs/env.md
126
140
  - docs/es6.md
127
141
  - docs/folder-structure.md
142
+ - docs/integrations.md
128
143
  - docs/misc.md
129
144
  - docs/props.md
130
145
  - docs/testing.md
@@ -135,9 +150,6 @@ files:
135
150
  - docs/webpack.md
136
151
  - docs/yarn.md
137
152
  - gemfiles/Gemfile-rails-edge
138
- - gemfiles/Gemfile-rails.4.2.x
139
- - gemfiles/Gemfile-rails.5.0.x
140
- - gemfiles/Gemfile-rails.5.1.x
141
153
  - gemfiles/Gemfile-rails.5.2.x
142
154
  - gemfiles/Gemfile-rails.6.0.x
143
155
  - lib/install/angular.rb
@@ -181,7 +193,6 @@ files:
181
193
  - lib/install/loaders/elm.js
182
194
  - lib/install/loaders/erb.js
183
195
  - lib/install/loaders/svelte.js
184
- - lib/install/loaders/typescript.js
185
196
  - lib/install/loaders/vue.js
186
197
  - lib/install/react.rb
187
198
  - lib/install/stimulus.rb
@@ -267,6 +278,8 @@ files:
267
278
  - test/rake_tasks_test.rb
268
279
  - test/test_app/Rakefile
269
280
  - test/test_app/app/javascript/packs/application.js
281
+ - test/test_app/app/javascript/packs/multi_entry.css
282
+ - test/test_app/app/javascript/packs/multi_entry.js
270
283
  - test/test_app/bin/webpack
271
284
  - test/test_app/bin/webpack-dev-server
272
285
  - test/test_app/config.ru
@@ -287,8 +300,8 @@ homepage: https://github.com/rails/webpacker
287
300
  licenses:
288
301
  - MIT
289
302
  metadata:
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
303
+ source_code_uri: https://github.com/rails/webpacker/tree/v5.1.1
304
+ changelog_uri: https://github.com/rails/webpacker/blob/v5.1.1/CHANGELOG.md
292
305
  post_install_message:
293
306
  rdoc_options: []
294
307
  require_paths:
@@ -297,7 +310,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
310
  requirements:
298
311
  - - ">="
299
312
  - !ruby/object:Gem::Version
300
- version: 2.2.0
313
+ version: 2.4.0
301
314
  required_rubygems_version: !ruby/object:Gem::Requirement
302
315
  requirements:
303
316
  - - ">="
@@ -320,6 +333,8 @@ test_files:
320
333
  - test/rake_tasks_test.rb
321
334
  - test/test_app/Rakefile
322
335
  - test/test_app/app/javascript/packs/application.js
336
+ - test/test_app/app/javascript/packs/multi_entry.css
337
+ - test/test_app/app/javascript/packs/multi_entry.js
323
338
  - test/test_app/bin/webpack
324
339
  - test/test_app/bin/webpack-dev-server
325
340
  - test/test_app/config.ru
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: "../"
4
-
5
- gem "rails", "~> 4.2.0"
6
- gem "rake", ">= 11.1"
7
- gem "rack-proxy", require: false
8
- gem "minitest", "~> 5.0"
9
- gem "byebug"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: "../"
4
-
5
- gem "rails", "~> 5.0.0"
6
- gem "rake", ">= 11.1"
7
- gem "rack-proxy", require: false
8
- gem "minitest", "~> 5.0"
9
- gem "byebug"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: "../"
4
-
5
- gem "rails", "~> 5.1.0"
6
- gem "rake", ">= 11.1"
7
- gem "rack-proxy", require: false
8
- gem "minitest", "~> 5.0"
9
- gem "byebug"
@@ -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
- }