webpacker 6.0.0.rc.4 → 6.0.0.rc.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/v6_upgrade.md +2 -2
- data/lib/webpacker/version.rb +1 -1
- data/package/__tests__/development.js +2 -2
- data/package/env.js +1 -4
- data/package.json +1 -1
- data/test/dev_server_runner_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 308f1dcfbba68cb509f38d0990c5fc0bbab2f0d1291869057f4c11eb797cdc61
|
4
|
+
data.tar.gz: 816f1050b3df6a970119fa967e4ff9db2562dd240674d46eba91c0d6ae5aefa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e3051f31353cd4f6ec9c0c7642ce00ab5b90f8093cfbfbb566a17468705e4a2c1ee691e0fb9b45dc55edd49b0cf62c60a8a4428b2843914dabb95ff2eb92f10
|
7
|
+
data.tar.gz: a00f04d5951f343a0e0c39bc942aec73863547630807ccd944e0d2a3a459ee52170ce77f4a3fd10c2019c5fed49f570ea174531679d61cf4e5051dea1e4036ac
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
webpacker (6.0.0.rc.
|
4
|
+
webpacker (6.0.0.rc.5)
|
5
5
|
activesupport (>= 5.2)
|
6
6
|
rack-proxy (>= 0.6.1)
|
7
7
|
railties (>= 5.2)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
nokogiri (1.12.3)
|
94
94
|
mini_portile2 (~> 2.6.1)
|
95
95
|
racc (~> 1.4)
|
96
|
-
parallel (1.
|
96
|
+
parallel (1.19.1)
|
97
97
|
parser (3.0.2.0)
|
98
98
|
ast (~> 2.4.1)
|
99
99
|
racc (1.5.2)
|
data/docs/v6_upgrade.md
CHANGED
@@ -26,7 +26,7 @@ Example going to a specific version:
|
|
26
26
|
|
27
27
|
```ruby
|
28
28
|
# Gemfile
|
29
|
-
gem 'webpacker', '6.0.0.rc.
|
29
|
+
gem 'webpacker', '6.0.0.rc.5'
|
30
30
|
```
|
31
31
|
|
32
32
|
```bash
|
@@ -34,7 +34,7 @@ Example going to a specific version:
|
|
34
34
|
```
|
35
35
|
|
36
36
|
```bash
|
37
|
-
yarn add @rails/webpacker@6.0.0-rc.
|
37
|
+
yarn add @rails/webpacker@6.0.0-rc.5 --exact
|
38
38
|
```
|
39
39
|
|
40
40
|
```bash
|
data/lib/webpacker/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe('Development environment', () => {
|
|
11
11
|
describe('webpackConfig', () => {
|
12
12
|
beforeEach(() => jest.resetModules())
|
13
13
|
|
14
|
-
test('should use development config and environment including devServer if
|
14
|
+
test('should use development config and environment including devServer if WEBPACK_SERVE', () => {
|
15
15
|
process.env.RAILS_ENV = 'development'
|
16
16
|
process.env.NODE_ENV = 'development'
|
17
17
|
process.env.WEBPACK_DEV_SERVER = 'true'
|
@@ -28,7 +28,7 @@ describe('Development environment', () => {
|
|
28
28
|
})
|
29
29
|
})
|
30
30
|
|
31
|
-
test('should use development config and environment if
|
31
|
+
test('should use development config and environment if WEBPACK_SERVE', () => {
|
32
32
|
process.env.RAILS_ENV = 'development'
|
33
33
|
process.env.NODE_ENV = 'development'
|
34
34
|
process.env.WEBPACK_DEV_SERVER = undefined
|
data/package/env.js
CHANGED
@@ -16,10 +16,7 @@ const config = load(readFileSync(configPath), 'utf8')
|
|
16
16
|
const availableEnvironments = Object.keys(config).join('|')
|
17
17
|
const regex = new RegExp(`^(${availableEnvironments})$`, 'g')
|
18
18
|
|
19
|
-
|
20
|
-
// https://github.com/rails/webpacker/issues/3057
|
21
|
-
const runningWebpackDevServer = process.env.WEBPACK_DEV_SERVER === 'true' ||
|
22
|
-
process.env.WEBPACK_DEV_SERVE === 'true'
|
19
|
+
const runningWebpackDevServer = process.env.WEBPACK_SERVE === 'true'
|
23
20
|
|
24
21
|
module.exports = {
|
25
22
|
railsEnv: railsEnv && railsEnv.match(regex) ? railsEnv : DEFAULT,
|
data/package.json
CHANGED
@@ -50,7 +50,7 @@ class DevServerRunnerTest < Webpacker::Test
|
|
50
50
|
cmd = ["#{test_app_path}/node_modules/.bin/webpack", "serve", "--config", "#{test_app_path}/config/webpack/development.js"]
|
51
51
|
env = Webpacker::Compiler.env.dup
|
52
52
|
ENV["WEBPACKER_CONFIG"] = env["WEBPACKER_CONFIG"] = "#{test_app_path}/config/webpacker_other_location.yml"
|
53
|
-
env["
|
53
|
+
env["WEBPACK_SERVE"] = "true"
|
54
54
|
verify_command(cmd, env: env)
|
55
55
|
end
|
56
56
|
|
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: 6.0.0.rc.
|
4
|
+
version: 6.0.0.rc.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -262,8 +262,8 @@ homepage: https://github.com/rails/webpacker
|
|
262
262
|
licenses:
|
263
263
|
- MIT
|
264
264
|
metadata:
|
265
|
-
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.
|
266
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.
|
265
|
+
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.5
|
266
|
+
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.5/CHANGELOG.md
|
267
267
|
post_install_message:
|
268
268
|
rdoc_options: []
|
269
269
|
require_paths:
|