Skip to content

Commit d2f698e

Browse files
committed
Upgrade packages and mode option
1 parent ffb9aef commit d2f698e

File tree

5 files changed

+2201
-511
lines changed

5 files changed

+2201
-511
lines changed

Gemfile.lock

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,53 @@ PATH
99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
actioncable (5.1.5)
13-
actionpack (= 5.1.5)
12+
actioncable (5.1.6)
13+
actionpack (= 5.1.6)
1414
nio4r (~> 2.0)
1515
websocket-driver (~> 0.6.1)
16-
actionmailer (5.1.5)
17-
actionpack (= 5.1.5)
18-
actionview (= 5.1.5)
19-
activejob (= 5.1.5)
16+
actionmailer (5.1.6)
17+
actionpack (= 5.1.6)
18+
actionview (= 5.1.6)
19+
activejob (= 5.1.6)
2020
mail (~> 2.5, >= 2.5.4)
2121
rails-dom-testing (~> 2.0)
22-
actionpack (5.1.5)
23-
actionview (= 5.1.5)
24-
activesupport (= 5.1.5)
22+
actionpack (5.1.6)
23+
actionview (= 5.1.6)
24+
activesupport (= 5.1.6)
2525
rack (~> 2.0)
2626
rack-test (>= 0.6.3)
2727
rails-dom-testing (~> 2.0)
2828
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29-
actionview (5.1.5)
30-
activesupport (= 5.1.5)
29+
actionview (5.1.6)
30+
activesupport (= 5.1.6)
3131
builder (~> 3.1)
3232
erubi (~> 1.4)
3333
rails-dom-testing (~> 2.0)
3434
rails-html-sanitizer (~> 1.0, >= 1.0.3)
35-
activejob (5.1.5)
36-
activesupport (= 5.1.5)
35+
activejob (5.1.6)
36+
activesupport (= 5.1.6)
3737
globalid (>= 0.3.6)
38-
activemodel (5.1.5)
39-
activesupport (= 5.1.5)
40-
activerecord (5.1.5)
41-
activemodel (= 5.1.5)
42-
activesupport (= 5.1.5)
38+
activemodel (5.1.6)
39+
activesupport (= 5.1.6)
40+
activerecord (5.1.6)
41+
activemodel (= 5.1.6)
42+
activesupport (= 5.1.6)
4343
arel (~> 8.0)
44-
activesupport (5.1.5)
44+
activesupport (5.1.6)
4545
concurrent-ruby (~> 1.0, >= 1.0.2)
46-
i18n (~> 0.7)
46+
i18n (>= 0.7, < 2)
4747
minitest (~> 5.1)
4848
tzinfo (~> 1.1)
4949
arel (8.0.0)
5050
ast (2.4.0)
5151
builder (3.2.3)
52-
byebug (10.0.0)
52+
byebug (10.0.2)
5353
concurrent-ruby (1.0.5)
5454
crass (1.0.3)
5555
erubi (1.7.1)
5656
globalid (0.4.1)
5757
activesupport (>= 4.2.0)
58-
i18n (0.9.5)
58+
i18n (1.0.0)
5959
concurrent-ruby (~> 1.0)
6060
loofah (2.2.2)
6161
crass (~> 1.0.2)
@@ -66,44 +66,44 @@ GEM
6666
mini_mime (1.0.0)
6767
mini_portile2 (2.3.0)
6868
minitest (5.11.3)
69-
nio4r (2.2.0)
69+
nio4r (2.3.0)
7070
nokogiri (1.8.2)
7171
mini_portile2 (~> 2.3.0)
7272
parallel (1.12.1)
73-
parser (2.5.0.3)
73+
parser (2.5.0.5)
7474
ast (~> 2.4.0)
7575
powerpack (0.1.1)
7676
rack (2.0.4)
7777
rack-proxy (0.6.4)
7878
rack
79-
rack-test (0.8.3)
79+
rack-test (1.0.0)
8080
rack (>= 1.0, < 3)
81-
rails (5.1.5)
82-
actioncable (= 5.1.5)
83-
actionmailer (= 5.1.5)
84-
actionpack (= 5.1.5)
85-
actionview (= 5.1.5)
86-
activejob (= 5.1.5)
87-
activemodel (= 5.1.5)
88-
activerecord (= 5.1.5)
89-
activesupport (= 5.1.5)
81+
rails (5.1.6)
82+
actioncable (= 5.1.6)
83+
actionmailer (= 5.1.6)
84+
actionpack (= 5.1.6)
85+
actionview (= 5.1.6)
86+
activejob (= 5.1.6)
87+
activemodel (= 5.1.6)
88+
activerecord (= 5.1.6)
89+
activesupport (= 5.1.6)
9090
bundler (>= 1.3.0)
91-
railties (= 5.1.5)
91+
railties (= 5.1.6)
9292
sprockets-rails (>= 2.0.0)
9393
rails-dom-testing (2.0.3)
9494
activesupport (>= 4.2.0)
9595
nokogiri (>= 1.6)
96-
rails-html-sanitizer (1.0.3)
97-
loofah (~> 2.0)
98-
railties (5.1.5)
99-
actionpack (= 5.1.5)
100-
activesupport (= 5.1.5)
96+
rails-html-sanitizer (1.0.4)
97+
loofah (~> 2.2, >= 2.2.2)
98+
railties (5.1.6)
99+
actionpack (= 5.1.6)
100+
activesupport (= 5.1.6)
101101
method_source
102102
rake (>= 0.8.7)
103103
thor (>= 0.18.1, < 2.0)
104104
rainbow (3.0.0)
105-
rake (12.3.0)
106-
rubocop (0.53.0)
105+
rake (12.3.1)
106+
rubocop (0.54.0)
107107
parallel (~> 1.10)
108108
parser (>= 2.5)
109109
powerpack (~> 0.1)

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,38 @@
1313
},
1414
"dependencies": {
1515
"babel-core": "^6.26.0",
16-
"babel-loader": "^7.1.2",
16+
"babel-loader": "^7.1.3",
1717
"babel-plugin-syntax-dynamic-import": "^6.18.0",
1818
"babel-plugin-transform-class-properties": "^6.24.1",
1919
"babel-plugin-transform-object-rest-spread": "^6.26.0",
2020
"babel-polyfill": "^6.26.0",
2121
"babel-preset-env": "^1.6.1",
2222
"case-sensitive-paths-webpack-plugin": "^2.1.1",
2323
"compression-webpack-plugin": "^1.1.10",
24-
"css-loader": "^0.28.9",
24+
"css-loader": "^0.28.10",
2525
"extract-text-webpack-plugin": "^3.0.2",
26-
"file-loader": "^1.1.6",
26+
"file-loader": "^1.1.11",
2727
"glob": "^7.1.2",
2828
"js-yaml": "^3.10.0",
2929
"node-sass": "^4.7.2",
3030
"path-complete-extname": "^1.0.0",
3131
"postcss-cssnext": "^3.1.0",
32-
"postcss-import": "^11.0.0",
33-
"postcss-loader": "^2.1.0",
34-
"sass-loader": "^6.0.6",
35-
"style-loader": "^0.20.1",
36-
"uglifyjs-webpack-plugin": "^1.1.8",
37-
"webpack": "^3.10.0",
38-
"webpack-manifest-plugin": "^1.3.2"
32+
"postcss-import": "^11.1.0",
33+
"postcss-loader": "^2.1.1",
34+
"sass-loader": "^6.0.7",
35+
"style-loader": "^0.20.2",
36+
"uglifyjs-webpack-plugin": "^1.2.2",
37+
"webpack": "^4.0.1",
38+
"webpack-cli": "^2.0.10",
39+
"webpack-manifest-plugin": "^2.0.0-rc.2"
3940
},
4041
"devDependencies": {
41-
"eslint": "^4.17.0",
42+
"eslint": "^4.18.2",
4243
"eslint-config-airbnb": "^16.1.0",
43-
"eslint-plugin-import": "^2.8.0",
44+
"eslint-plugin-import": "^2.9.0",
4445
"eslint-plugin-jsx-a11y": "^6.0.3",
45-
"eslint-plugin-react": "^7.6.1",
46-
"jest": "^22.2.1"
46+
"eslint-plugin-react": "^7.7.0",
47+
"jest": "^22.4.2"
4748
},
4849
"jest": {
4950
"testRegex": "(/__tests__/.*|(\\.|/))\\.jsx?$",

package/environments/base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const getModulePaths = () => {
6161

6262
const getBaseConfig = () =>
6363
new ConfigObject({
64+
mode: 'production',
6465
output: {
6566
filename: '[name]-[chunkhash].js',
6667
chunkFilename: '[name]-[chunkhash].chunk.js',

package/environments/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = class extends Base {
1010
if (devServer.hmr) {
1111
this.plugins.append('HotModuleReplacement', new webpack.HotModuleReplacementPlugin())
1212
this.plugins.append('NamedModules', new webpack.NamedModulesPlugin())
13+
this.config.mode = 'development'
1314
this.config.output.filename = '[name]-[hash].js'
1415
}
1516

0 commit comments

Comments
 (0)