Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 12, 2019. It is now read-only.

Commit b2dd7fd

Browse files
committed
updated react
1 parent e1a6b73 commit b2dd7fd

32 files changed

+112
-97
lines changed
File renamed without changes.

react-v15.4.2-keyed/index.html renamed to react-v15.5.4-keyed/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>React v15.4.2</title>
5+
<title>React v15.5.4</title>
66
<link href="../css/currentStyle.css" rel="stylesheet"/>
77
</head>
88
<body>

react-v15.4.2-keyed/package.json renamed to react-v15.5.4-keyed/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "React demo",
55
"main": "index.js",
66
"scripts": {
7-
"build-dev": "webpack -w -d -c webpack.config.js",
8-
"build-prod": "webpack -p -c webpack.config.js"
7+
"build-dev": "webpack -w -d",
8+
"build-prod": "webpack -p"
99
},
1010
"keywords": [
1111
"react",
@@ -19,15 +19,15 @@
1919
"url": "https://github.com/krausest/js-framework-benchmark.git"
2020
},
2121
"devDependencies": {
22-
"babel-core": "6.21.0",
23-
"babel-loader": "6.2.10",
24-
"babel-preset-es2015": "6.18.0",
25-
"babel-preset-react": "6.16.0",
26-
"webpack": "1.14.0",
22+
"babel-core": "6.24.1",
23+
"babel-loader": "7.0.0",
24+
"babel-preset-es2015": "6.24.1",
25+
"babel-preset-react": "6.24.1",
26+
"webpack": "2.5.1",
2727
"jsx-loader": "0.13.2"
2828
},
2929
"dependencies": {
30-
"react": "15.4.2",
31-
"react-dom": "15.4.2"
30+
"react": "15.5.4",
31+
"react-dom": "15.5.4"
3232
}
3333
}

react-v15.4.2-keyed/src/Main.jsx renamed to react-v15.5.4-keyed/src/Main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Main extends React.Component{
9494
<div className="jumbotron">
9595
<div className="row">
9696
<div className="col-md-6">
97-
<h1>React v15.4.2</h1>
97+
<h1>React v15.5.4</h1>
9898
</div>
9999
<div className="col-md-6">
100100
<div className="row">
File renamed without changes.

react-v15.4.2-redux-v3.6.0/webpack.config.js renamed to react-v15.5.4-keyed/webpack.config.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
require("babel-plugin-syntax-jsx")
3-
3+
var path = require('path')
4+
var webpack = require('webpack')
45
var cache = {};
56
var loaders = [
67
{
@@ -17,7 +18,7 @@ var loaders = [
1718
}
1819
];
1920
var extensions = [
20-
'', '.js', '.jsx', '.es6.js'
21+
'.js', '.jsx', '.es6.js'
2122
];
2223

2324
module.exports = [{
@@ -29,14 +30,20 @@ module.exports = [{
2930
main: './src/main.es6.js',
3031
},
3132
output: {
32-
path: './dist',
33+
path: path.resolve(__dirname, "dist"),
3334
filename: '[name].js'
3435
},
3536
resolve: {
3637
extensions: extensions,
37-
root: [
38+
modules: [
3839
__dirname,
39-
__dirname + '/src'
40+
path.resolve(__dirname, "src"),
41+
"node_modules"
4042
]
41-
}
42-
}];
43+
},
44+
plugins: [
45+
new webpack.DefinePlugin({
46+
'process.env.NODE_ENV': '"production"'
47+
})
48+
]
49+
}];

react-v15.4.2-mobX-v3.0.1/index.html renamed to react-v15.5.4-mobX-v3.1.9/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>React v15.4.2 + Mobx 3.0.1</title>
5+
<title>React v15.5.4 + Mobx 3.1.9</title>
66
<link href="/css/currentStyle.css" rel="stylesheet"/>
77
</head>
88
<body>

react-v15.4.2-mobX-v3.0.1/package.json renamed to react-v15.5.4-mobX-v3.1.9/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "React demo",
55
"main": "index.js",
66
"scripts": {
7-
"build-dev": "webpack -w -d -c webpack.config.js",
8-
"build-prod": "webpack -p -c webpack.config.js"
7+
"build-dev": "webpack -w -d",
8+
"build-prod": "webpack -p"
99
},
1010
"keywords": [
1111
"react",
@@ -19,20 +19,20 @@
1919
"url": "https://github.com/krausest/js-framework-benchmark.git"
2020
},
2121
"devDependencies": {
22-
"babel-core": "6.21.0",
23-
"babel-loader": "6.2.10",
24-
"babel-plugin-transform-class-properties": "6.19.0",
22+
"babel-core": "6.24.1",
23+
"babel-loader": "7.0.0",
24+
"babel-plugin-transform-class-properties": "6.24.1",
2525
"babel-plugin-transform-decorators-legacy": "1.3.4",
26-
"babel-preset-es2015": "6.18.0",
27-
"babel-preset-react": "6.16.0",
28-
"babel-preset-stage-0": "6.16.0",
29-
"webpack": "1.14.0",
26+
"babel-preset-es2015": "6.24.1",
27+
"babel-preset-react": "6.24.1",
28+
"babel-preset-stage-0": "6.24.1",
29+
"webpack": "2.5.1",
3030
"jsx-loader": "0.13.2"
3131
},
3232
"dependencies": {
33-
"mobx": "3.0.1",
34-
"mobx-react": "4.1.0",
35-
"react": "15.4.2",
36-
"react-dom": "15.4.2"
33+
"mobx": "3.1.9",
34+
"mobx-react": "4.1.8",
35+
"react": "15.5.4",
36+
"react-dom": "15.5.4"
3737
}
3838
}

react-v15.4.2-mobX-v3.0.1/src/Main.jsx renamed to react-v15.5.4-mobX-v3.1.9/src/Main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class Main extends React.Component{
9191
<div className="jumbotron">
9292
<div className="row">
9393
<div className="col-md-6">
94-
<h1>React v15.4.2 + Mobx 3.0.1</h1>
94+
<h1>React v15.5.4 + Mobx 3.1.9</h1>
9595
</div>
9696
<div className="col-md-6">
9797
<div className="row">

react-v15.4.2-mobX-v3.0.1/webpack.config.js renamed to react-v15.5.4-mobX-v3.1.9/webpack.config.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
2-
// require("babel-plugin-syntax-jsx")
3-
2+
require("babel-plugin-syntax-jsx")
3+
var path = require('path')
4+
var webpack = require('webpack')
45
var cache = {};
56
var loaders = [
67
{
@@ -17,7 +18,7 @@ var loaders = [
1718
}
1819
];
1920
var extensions = [
20-
'', '.js', '.jsx', '.es6.js'
21+
'.js', '.jsx', '.es6.js'
2122
];
2223

2324
module.exports = [{
@@ -29,18 +30,20 @@ module.exports = [{
2930
main: './src/Main.jsx',
3031
},
3132
output: {
32-
path: './dist',
33+
path: path.resolve(__dirname, "dist"),
3334
filename: '[name].js'
3435
},
3536
resolve: {
3637
extensions: extensions,
37-
root: [
38+
modules: [
3839
__dirname,
39-
__dirname + '/src'
40-
],
41-
alias: {
42-
"react": __dirname+"/node_modules/react/dist/react.min.js",
43-
"react-dom": __dirname+"/node_modules/react-dom/dist/react-dom.min.js"
44-
}
45-
}
40+
path.resolve(__dirname, "src"),
41+
"node_modules"
42+
]
43+
},
44+
plugins: [
45+
new webpack.DefinePlugin({
46+
'process.env.NODE_ENV': '"production"'
47+
})
48+
]
4649
}];
File renamed without changes.

react-v15.4.2-non-keyed/index.html renamed to react-v15.5.4-non-keyed/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>React v15.4.2</title>
6-
<link href="/css/currentStyle.css" rel="stylesheet"/>
5+
<title>React v15.5.4</title>
6+
<link href="../css/currentStyle.css" rel="stylesheet"/>
77
</head>
88
<body>
99
<div id='main'></div>

react-v15.4.2-non-keyed/package.json renamed to react-v15.5.4-non-keyed/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "React demo",
55
"main": "index.js",
66
"scripts": {
7-
"build-dev": "webpack -w -d -c webpack.config.js",
8-
"build-prod": "webpack -p -c webpack.config.js"
7+
"build-dev": "webpack -w -d",
8+
"build-prod": "webpack -p"
99
},
1010
"keywords": [
1111
"react",
@@ -19,15 +19,15 @@
1919
"url": "https://github.com/krausest/js-framework-benchmark.git"
2020
},
2121
"devDependencies": {
22-
"babel-core": "6.21.0",
23-
"babel-loader": "6.2.10",
24-
"babel-preset-es2015": "6.18.0",
25-
"babel-preset-react": "6.16.0",
26-
"webpack": "1.14.0",
22+
"babel-core": "6.24.1",
23+
"babel-loader": "7.0.0",
24+
"babel-preset-es2015": "6.24.1",
25+
"babel-preset-react": "6.24.1",
26+
"webpack": "2.5.1",
2727
"jsx-loader": "0.13.2"
2828
},
2929
"dependencies": {
30-
"react": "15.4.2",
31-
"react-dom": "15.4.2"
30+
"react": "15.5.4",
31+
"react-dom": "15.5.4"
3232
}
3333
}

react-v15.4.2-non-keyed/src/Main.jsx renamed to react-v15.5.4-non-keyed/src/Main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Main extends React.Component{
9494
<div className="jumbotron">
9595
<div className="row">
9696
<div className="col-md-6">
97-
<h1>React v15.4.2 (non-keyed)</h1>
97+
<h1>React v15.5.4 (non-keyed)</h1>
9898
</div>
9999
<div className="col-md-6">
100100
<div className="row">

react-v15.4.2-non-keyed/webpack.config.js renamed to react-v15.5.4-non-keyed/webpack.config.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
require("babel-plugin-syntax-jsx")
3-
3+
var path = require('path')
4+
var webpack = require('webpack')
45
var cache = {};
56
var loaders = [
67
{
@@ -17,7 +18,7 @@ var loaders = [
1718
}
1819
];
1920
var extensions = [
20-
'', '.js', '.jsx', '.es6.js'
21+
'.js', '.jsx', '.es6.js'
2122
];
2223

2324
module.exports = [{
@@ -29,18 +30,20 @@ module.exports = [{
2930
main: './src/main.es6.js',
3031
},
3132
output: {
32-
path: './dist',
33+
path: path.resolve(__dirname, "dist"),
3334
filename: '[name].js'
3435
},
3536
resolve: {
3637
extensions: extensions,
37-
root: [
38+
modules: [
3839
__dirname,
39-
__dirname + '/src'
40-
],
41-
alias: {
42-
"react": __dirname+"/node_modules/react/dist/react.min.js",
43-
"react-dom": __dirname+"/node_modules/react-dom/dist/react-dom.min.js"
44-
}
45-
}
40+
path.resolve(__dirname, "src"),
41+
"node_modules"
42+
]
43+
},
44+
plugins: [
45+
new webpack.DefinePlugin({
46+
'process.env.NODE_ENV': '"production"'
47+
})
48+
]
4649
}];

react-v15.4.2-redux-v3.6.0/package.json renamed to react-v15.5.4-redux-v3.6.0/package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"description": "React demo",
55
"main": "index.js",
66
"scripts": {
7-
"build-dev": "webpack -w -d -c webpack.config.js",
8-
"build-prod": "webpack --define process.env.NODE_ENV='\"production\"' -p -c webpack.config.js",
9-
"start": "http-server -c-1 ."
7+
"build-dev": "webpack -w -d",
8+
"build-prod": "webpack -p"
109
},
1110
"keywords": [
1211
"react",
@@ -20,19 +19,19 @@
2019
"url": "https://github.com/krausest/js-framework-benchmark.git"
2120
},
2221
"devDependencies": {
23-
"babel-core": "6.21.0",
24-
"babel-loader": "6.2.10",
25-
"babel-preset-es2015": "6.18.0",
26-
"babel-preset-react": "6.16.0",
22+
"babel-core": "6.24.1",
23+
"babel-loader": "7.0.0",
24+
"babel-preset-es2015": "6.24.1",
25+
"babel-preset-react": "6.24.1",
2726
"jsx-loader": "0.13.2",
28-
"webpack": "1.14.0"
27+
"webpack": "2.5.1"
2928
},
3029
"dependencies": {
3130
"immutable": "v3.8.1",
32-
"react": "15.4.2",
33-
"react-addons-shallow-compare": "15.4.2",
34-
"react-dom": "15.4.2",
35-
"react-redux": "5.0.2",
31+
"react": "15.5.4",
32+
"react-addons-shallow-compare": "15.5.2",
33+
"react-dom": "15.5.4",
34+
"react-redux": "5.0.4",
3635
"redux": "3.6.0"
3736
}
3837
}

0 commit comments

Comments
 (0)