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.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/CHANGELOG.md +6 -43
- data/Gemfile.lock +48 -58
- data/README.md +11 -11
- data/Rakefile +2 -1
- data/docs/cloud9.md +1 -1
- data/docs/css.md +0 -10
- data/docs/troubleshooting.md +2 -2
- data/lib/install/angular.rb +2 -2
- data/lib/install/bin/webpack +1 -1
- data/lib/install/bin/webpack-dev-server +1 -1
- data/lib/install/config/webpacker.yml +1 -2
- data/lib/install/elm.rb +3 -4
- data/lib/install/examples/elm/Main.elm +4 -5
- data/lib/install/examples/elm/hello_elm.js +2 -6
- data/lib/install/examples/vue/hello_vue.js +1 -1
- data/lib/install/loaders/elm.js +4 -3
- data/lib/install/loaders/vue.js +1 -3
- data/lib/install/template.rb +3 -3
- data/lib/install/typescript.rb +1 -1
- data/lib/install/vue.rb +13 -4
- data/lib/tasks/webpacker.rake +0 -1
- data/lib/tasks/webpacker/yarn_install.rake +1 -1
- data/lib/webpacker.rb +0 -1
- data/lib/webpacker/compiler.rb +2 -4
- data/lib/webpacker/configuration.rb +3 -13
- data/lib/webpacker/dev_server.rb +4 -8
- data/lib/webpacker/dev_server_proxy.rb +0 -4
- data/lib/webpacker/dev_server_runner.rb +7 -15
- data/lib/webpacker/env.rb +1 -1
- data/lib/webpacker/helper.rb +0 -10
- data/lib/webpacker/instance.rb +2 -6
- data/lib/webpacker/railtie.rb +1 -2
- data/lib/webpacker/version.rb +1 -1
- data/package.json +16 -16
- data/package/__tests__/config.js +1 -17
- data/package/__tests__/production.js +1 -3
- data/package/__tests__/staging.js +1 -3
- data/package/__tests__/test.js +1 -3
- data/package/config.js +1 -9
- data/package/dev_server.js +1 -1
- data/package/env.js +2 -2
- data/package/environments/base.js +22 -5
- data/package/environments/development.js +2 -0
- data/package/environments/production.js +26 -36
- data/package/utils/__tests__/deep_assign.js +6 -27
- data/package/utils/deep_assign.js +1 -1
- data/package/utils/get_style_rule.js +26 -37
- data/test/configuration_test.rb +22 -46
- data/test/helper_test.rb +0 -6
- data/test/test_app/config/webpacker.yml +0 -1
- data/test/test_helper.rb +0 -2
- data/webpacker.gemspec +0 -5
- data/yarn.lock +2199 -998
- metadata +6 -11
- data/lib/tasks/webpacker/info.rake +0 -19
- 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:
|
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:
|
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:
|
252
|
+
version: 1.3.1
|
257
253
|
requirements: []
|
258
254
|
rubyforge_project:
|
259
|
-
rubygems_version: 2.7.
|
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
|
data/test/webpacker_test.rb
DELETED
@@ -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
|