webpacker 4.0.7 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.node-version +1 -1
- data/.rubocop.yml +2 -1
- data/.travis.yml +7 -4
- data/CHANGELOG.md +226 -137
- data/Gemfile.lock +78 -59
- data/README.md +110 -3
- data/docs/css.md +12 -0
- data/docs/deployment.md +38 -9
- data/docs/docker.md +25 -6
- data/docs/engines.md +40 -3
- data/docs/es6.md +19 -1
- data/docs/troubleshooting.md +37 -9
- data/docs/typescript.md +8 -5
- data/docs/webpack-dev-server.md +1 -1
- data/docs/webpack.md +18 -3
- data/gemfiles/Gemfile-rails.6.0.x +9 -0
- data/lib/install/bin/webpack +0 -1
- data/lib/install/bin/webpack-dev-server +0 -1
- data/lib/install/coffee.rb +1 -1
- data/lib/install/config/babel.config.js +10 -10
- data/lib/install/config/webpacker.yml +2 -1
- data/lib/install/elm.rb +1 -1
- data/lib/install/erb.rb +2 -2
- data/lib/install/examples/angular/hello_angular/polyfills.ts +2 -2
- data/lib/install/examples/react/babel.config.js +16 -14
- data/lib/install/examples/svelte/app.svelte +11 -0
- data/lib/install/examples/svelte/hello_svelte.js +20 -0
- data/lib/install/loaders/elm.js +9 -6
- data/lib/install/loaders/svelte.js +9 -0
- data/lib/install/loaders/typescript.js +1 -1
- data/lib/install/svelte.rb +29 -0
- data/lib/install/template.rb +1 -1
- data/lib/install/typescript.rb +1 -1
- data/lib/install/vue.rb +1 -1
- data/lib/tasks/installers.rake +1 -0
- data/lib/tasks/webpacker.rake +2 -0
- data/lib/tasks/webpacker/clean.rake +19 -0
- data/lib/tasks/webpacker/compile.rake +2 -10
- data/lib/tasks/webpacker/yarn_install.rake +15 -0
- data/lib/webpacker.rb +9 -1
- data/lib/webpacker/commands.rb +29 -1
- data/lib/webpacker/compiler.rb +15 -8
- data/lib/webpacker/configuration.rb +9 -1
- data/lib/webpacker/dev_server.rb +1 -1
- data/lib/webpacker/dev_server_proxy.rb +2 -8
- data/lib/webpacker/env.rb +1 -1
- data/lib/webpacker/helper.rb +39 -13
- data/lib/webpacker/railtie.rb +6 -0
- data/lib/webpacker/version.rb +1 -1
- data/package.json +36 -36
- data/package/__tests__/config.js +0 -23
- data/package/config.js +2 -10
- data/package/config_types/config_list.js +3 -3
- data/package/config_types/config_object.js +1 -1
- data/package/environments/base.js +2 -2
- data/package/environments/development.js +1 -1
- data/package/environments/production.js +12 -0
- data/package/rules/babel.js +1 -1
- data/package/rules/node_modules.js +2 -2
- data/package/rules/sass.js +1 -1
- data/package/utils/__tests__/get_style_rule.js +9 -0
- data/package/utils/deep_merge.js +5 -5
- data/package/utils/get_style_rule.js +7 -12
- data/package/utils/helpers.js +9 -9
- data/test/command_test.rb +6 -0
- data/test/compiler_test.rb +5 -6
- data/test/configuration_test.rb +36 -27
- data/test/dev_server_test.rb +22 -0
- data/test/helper_test.rb +34 -0
- data/test/rake_tasks_test.rb +6 -0
- data/test/test_app/bin/webpack +0 -1
- data/test/test_app/bin/webpack-dev-server +0 -1
- data/test/test_app/config/webpacker.yml +1 -0
- data/test/test_app/public/packs/manifest.json +3 -0
- data/webpacker.gemspec +1 -0
- data/yarn.lock +1934 -1634
- 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.
|
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-
|
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.
|
271
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v4.
|
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:
|