webpacker 3.6.0 → 4.0.0.pre.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -3
  3. data/CHANGELOG.md +6 -43
  4. data/Gemfile.lock +48 -58
  5. data/README.md +11 -11
  6. data/Rakefile +2 -1
  7. data/docs/cloud9.md +1 -1
  8. data/docs/css.md +0 -10
  9. data/docs/troubleshooting.md +2 -2
  10. data/lib/install/angular.rb +2 -2
  11. data/lib/install/bin/webpack +1 -1
  12. data/lib/install/bin/webpack-dev-server +1 -1
  13. data/lib/install/config/webpacker.yml +1 -2
  14. data/lib/install/elm.rb +3 -4
  15. data/lib/install/examples/elm/Main.elm +4 -5
  16. data/lib/install/examples/elm/hello_elm.js +2 -6
  17. data/lib/install/examples/vue/hello_vue.js +1 -1
  18. data/lib/install/loaders/elm.js +4 -3
  19. data/lib/install/loaders/vue.js +1 -3
  20. data/lib/install/template.rb +3 -3
  21. data/lib/install/typescript.rb +1 -1
  22. data/lib/install/vue.rb +13 -4
  23. data/lib/tasks/webpacker.rake +0 -1
  24. data/lib/tasks/webpacker/yarn_install.rake +1 -1
  25. data/lib/webpacker.rb +0 -1
  26. data/lib/webpacker/compiler.rb +2 -4
  27. data/lib/webpacker/configuration.rb +3 -13
  28. data/lib/webpacker/dev_server.rb +4 -8
  29. data/lib/webpacker/dev_server_proxy.rb +0 -4
  30. data/lib/webpacker/dev_server_runner.rb +7 -15
  31. data/lib/webpacker/env.rb +1 -1
  32. data/lib/webpacker/helper.rb +0 -10
  33. data/lib/webpacker/instance.rb +2 -6
  34. data/lib/webpacker/railtie.rb +1 -2
  35. data/lib/webpacker/version.rb +1 -1
  36. data/package.json +16 -16
  37. data/package/__tests__/config.js +1 -17
  38. data/package/__tests__/production.js +1 -3
  39. data/package/__tests__/staging.js +1 -3
  40. data/package/__tests__/test.js +1 -3
  41. data/package/config.js +1 -9
  42. data/package/dev_server.js +1 -1
  43. data/package/env.js +2 -2
  44. data/package/environments/base.js +22 -5
  45. data/package/environments/development.js +2 -0
  46. data/package/environments/production.js +26 -36
  47. data/package/utils/__tests__/deep_assign.js +6 -27
  48. data/package/utils/deep_assign.js +1 -1
  49. data/package/utils/get_style_rule.js +26 -37
  50. data/test/configuration_test.rb +22 -46
  51. data/test/helper_test.rb +0 -6
  52. data/test/test_app/config/webpacker.yml +0 -1
  53. data/test/test_helper.rb +0 -2
  54. data/webpacker.gemspec +0 -5
  55. data/yarn.lock +2199 -998
  56. metadata +6 -11
  57. data/lib/tasks/webpacker/info.rake +0 -19
  58. data/test/webpacker_test.rb +0 -13
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: 3.6.0
4
+ version: 4.0.0.pre.pre.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-03-06 00:00:00.000000000 Z
12
+ date: 2018-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -157,7 +157,6 @@ files:
157
157
  - lib/tasks/webpacker/check_yarn.rake
158
158
  - lib/tasks/webpacker/clobber.rake
159
159
  - lib/tasks/webpacker/compile.rake
160
- - lib/tasks/webpacker/info.rake
161
160
  - lib/tasks/webpacker/install.rake
162
161
  - lib/tasks/webpacker/verify_install.rake
163
162
  - lib/tasks/webpacker/yarn_install.rake
@@ -231,15 +230,12 @@ files:
231
230
  - test/test_app/config/webpacker.yml
232
231
  - test/test_app/public/packs/manifest.json
233
232
  - test/test_helper.rb
234
- - test/webpacker_test.rb
235
233
  - webpacker.gemspec
236
234
  - yarn.lock
237
235
  homepage: https://github.com/rails/webpacker
238
236
  licenses:
239
237
  - MIT
240
- metadata:
241
- source_code_uri: https://github.com/rails/webpacker/tree/v3.6.0
242
- changelog_uri: https://github.com/rails/webpacker/blob/v3.6.0/CHANGELOG.md
238
+ metadata: {}
243
239
  post_install_message:
244
240
  rdoc_options: []
245
241
  require_paths:
@@ -251,12 +247,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
251
247
  version: 2.2.0
252
248
  required_rubygems_version: !ruby/object:Gem::Requirement
253
249
  requirements:
254
- - - ">="
250
+ - - ">"
255
251
  - !ruby/object:Gem::Version
256
- version: '0'
252
+ version: 1.3.1
257
253
  requirements: []
258
254
  rubyforge_project:
259
- rubygems_version: 2.7.6
255
+ rubygems_version: 2.7.3
260
256
  signing_key:
261
257
  specification_version: 4
262
258
  summary: Use webpack to manage app-like JavaScript modules in Rails
@@ -278,4 +274,3 @@ test_files:
278
274
  - test/test_app/config/webpacker.yml
279
275
  - test/test_app/public/packs/manifest.json
280
276
  - test/test_helper.rb
281
- - test/webpacker_test.rb
@@ -1,19 +0,0 @@
1
- require "webpacker/version"
2
-
3
- namespace :webpacker do
4
- desc "Provide information on Webpacker's environment"
5
- task :info do
6
- $stdout.puts "Ruby: #{`ruby --version`}"
7
- $stdout.puts "Rails: #{Rails.version}"
8
- $stdout.puts "Webpacker: #{Webpacker::VERSION}"
9
- $stdout.puts "Node: #{`node --version`}"
10
- $stdout.puts "Yarn: #{`yarn --version`}"
11
-
12
- $stdout.puts "\n"
13
- $stdout.puts "@rails/webpacker: \n#{`npm list @rails/webpacker version`}"
14
-
15
- $stdout.puts "Is bin/webpack present?: #{File.exist? 'bin/webpack'}"
16
- $stdout.puts "Is bin/webpack-dev-server present?: #{File.exist? 'bin/webpack-dev-server'}"
17
- $stdout.puts "Is bin/yarn present?: #{File.exist? 'bin/yarn'}"
18
- end
19
- end
@@ -1,13 +0,0 @@
1
- require "test_helper"
2
-
3
- class WebpackerTest < Webpacker::Test
4
- def test_config_params
5
- assert_equal Rails.env, Webpacker.config.env
6
- assert_equal Webpacker.instance.root_path, Webpacker.config.root_path
7
- assert_equal Webpacker.instance.config_path, Webpacker.config.config_path
8
-
9
- with_rails_env("test") do
10
- assert_equal "test", Webpacker.config.env
11
- end
12
- end
13
- end