webpacker 4.2.2 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) 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/.travis.yml +7 -20
  9. data/CHANGELOG.md +40 -2
  10. data/Gemfile +1 -0
  11. data/Gemfile.lock +81 -78
  12. data/README.md +59 -295
  13. data/docs/css.md +61 -7
  14. data/docs/deployment.md +2 -2
  15. data/docs/docker.md +17 -17
  16. data/docs/engines.md +13 -0
  17. data/docs/env.md +0 -2
  18. data/docs/integrations.md +220 -0
  19. data/docs/target.md +22 -0
  20. data/docs/testing.md +2 -3
  21. data/docs/troubleshooting.md +3 -1
  22. data/docs/typescript.md +92 -28
  23. data/docs/webpack-dev-server.md +1 -1
  24. data/lib/install/config/babel.config.js +1 -3
  25. data/lib/install/config/webpacker.yml +1 -5
  26. data/lib/install/examples/react/tsconfig.json +2 -1
  27. data/lib/install/examples/typescript/tsconfig.json +2 -1
  28. data/lib/install/loaders/svelte.js +2 -2
  29. data/lib/install/template.rb +1 -1
  30. data/lib/install/typescript.rb +5 -12
  31. data/lib/tasks/webpacker/check_node.rake +15 -8
  32. data/lib/tasks/webpacker/check_yarn.rake +17 -10
  33. data/lib/tasks/webpacker/clean.rake +12 -6
  34. data/lib/tasks/webpacker/clobber.rake +8 -4
  35. data/lib/tasks/webpacker/yarn_install.rake +5 -16
  36. data/lib/webpacker/commands.rb +33 -9
  37. data/lib/webpacker/compiler.rb +9 -5
  38. data/lib/webpacker/configuration.rb +13 -9
  39. data/lib/webpacker/dev_server_proxy.rb +3 -1
  40. data/lib/webpacker/dev_server_runner.rb +6 -6
  41. data/lib/webpacker/helper.rb +37 -18
  42. data/lib/webpacker/manifest.rb +4 -4
  43. data/lib/webpacker/railtie.rb +2 -45
  44. data/lib/webpacker/runner.rb +1 -0
  45. data/lib/webpacker/version.rb +1 -1
  46. data/lib/webpacker/webpack_runner.rb +2 -2
  47. data/package.json +39 -39
  48. data/package/__tests__/config.js +12 -1
  49. data/package/__tests__/dev_server.js +2 -0
  50. data/package/__tests__/development.js +14 -1
  51. data/package/config.js +4 -1
  52. data/package/configPath.js +3 -0
  53. data/package/dev_server.js +1 -1
  54. data/package/env.js +1 -2
  55. data/package/environments/__tests__/base.js +30 -3
  56. data/package/environments/base.js +17 -7
  57. data/package/environments/development.js +39 -37
  58. data/package/environments/production.js +1 -3
  59. data/package/rules/babel.js +12 -5
  60. data/package/rules/file.js +1 -0
  61. data/package/rules/node_modules.js +1 -3
  62. data/package/rules/sass.js +7 -1
  63. data/package/utils/helpers.js +1 -1
  64. data/test/compiler_test.rb +8 -3
  65. data/test/configuration_test.rb +8 -7
  66. data/test/dev_server_runner_test.rb +1 -1
  67. data/test/helper_test.rb +3 -0
  68. data/test/manifest_test.rb +37 -6
  69. data/test/rake_tasks_test.rb +11 -0
  70. data/test/test_app/app/javascript/packs/multi_entry.css +4 -0
  71. data/test/test_app/app/javascript/packs/multi_entry.js +4 -0
  72. data/test/test_app/config/application.rb +0 -1
  73. data/test/test_app/config/webpacker.yml +7 -1
  74. data/test/test_app/public/packs/manifest.json +1 -0
  75. data/test/webpack_runner_test.rb +1 -1
  76. data/webpacker.gemspec +4 -3
  77. data/yarn.lock +3413 -2843
  78. metadata +34 -13
  79. data/gemfiles/Gemfile-rails.4.2.x +0 -9
  80. data/gemfiles/Gemfile-rails.5.0.x +0 -9
  81. data/gemfiles/Gemfile-rails.5.1.x +0 -9
  82. data/lib/install/loaders/typescript.js +0 -11

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.