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

Commit 14e9a5e

Browse files
committed
Enable async functions, upgrade deps, release 2.2.0
1 parent e63c5f3 commit 14e9a5e

File tree

5 files changed

+757
-593
lines changed

5 files changed

+757
-593
lines changed

config/babel.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
'babel-plugin-lodash',
44
'babel-plugin-transform-function-bind',
55
'react-hot-loader/babel'
6-
].map(require.resolve),
6+
],
77
presets: [
88
['latest', { es2015: { modules: false }}],
99
'stage-2',

config/polyfills.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Enable async functions
2+
require('babel-polyfill');
3+
14
// Promise polyfill (mostly for IE11)
25
if (typeof Promise === 'undefined') {
36
// Rejection tracking prevents a common issue where React gets into an

config/webpack.server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ var srcPath = path.resolve(appDirectory, 'src');
99
module.exports = {
1010
target: 'node',
1111

12-
entry: path.join(srcPath, 'server', 'index'),
12+
entry: [
13+
'babel-polyfill',
14+
path.join(srcPath, 'server', 'index')
15+
],
1316

1417
output: {
1518
path: path.join(buildPath, 'server'),

package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stoke-react-scripts",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Common scripts for running React-based apps and websites",
55
"repository": "stokestudio/stoke-react-scripts",
66
"author": "Kevin Wade <kevin@stokestudio.com>",
@@ -13,42 +13,43 @@
1313
"react-dom": "15.x"
1414
},
1515
"dependencies": {
16-
"autoprefixer": "^6.7.2",
17-
"babel-core": "^6.22.1",
18-
"babel-loader": "^6.2.5",
16+
"autoprefixer": "^7.1.1",
17+
"babel-core": "^6.24.1",
18+
"babel-loader": "^7.0.0",
1919
"babel-plugin-lodash": "^3.2.9",
2020
"babel-plugin-transform-function-bind": "^6.22.0",
21-
"babel-preset-latest": "^6.22.0",
22-
"babel-preset-react": "^6.22.0",
23-
"babel-preset-stage-2": "^6.22.0",
24-
"css-loader": "^0.26.1",
25-
"eslint-loader": "^1.6.0",
26-
"extract-text-webpack-plugin": "^2.0.0-rc.3",
27-
"html-loader": "^0.4.4",
21+
"babel-polyfill": "^6.23.0",
22+
"babel-preset-latest": "^6.24.1",
23+
"babel-preset-react": "^6.24.1",
24+
"babel-preset-stage-2": "^6.24.1",
25+
"css-loader": "^0.28.3",
26+
"eslint-loader": "^1.7.1",
27+
"extract-text-webpack-plugin": "^2.1.0",
28+
"html-loader": "^0.4.5",
2829
"json-loader": "^0.5.4",
29-
"node-sass": "^4.5.0",
30+
"node-sass": "^4.5.3",
3031
"null-loader": "^0.1.1",
3132
"postcss-assets": "^4.1.0",
32-
"postcss-flexbugs-fixes": "^2.0.0",
33-
"postcss-loader": "^1.2.2",
34-
"postcss-pseudo-class-any-link": "^3.0.1",
35-
"postcss-pxtorem": "^4.0.0",
33+
"postcss-flexbugs-fixes": "^3.0.0",
34+
"postcss-loader": "^2.0.5",
35+
"postcss-pseudo-class-any-link": "^4.0.0",
36+
"postcss-pxtorem": "^4.0.1",
3637
"precss": "^1.4.0",
3738
"promise": "^7.1.1",
3839
"react-hot-loader": "^3.0.0-beta.6",
39-
"sass-loader": "^4.0.2",
40-
"style-loader": "^0.13.1",
41-
"webpack": "^2.2.1",
42-
"webpack-dev-server": "^2.3.0",
43-
"whatwg-fetch": "^2.0.2"
40+
"sass-loader": "^6.0.5",
41+
"style-loader": "^0.18.1",
42+
"webpack": "^2.6.1",
43+
"webpack-dev-server": "^2.4.5",
44+
"whatwg-fetch": "^2.0.3"
4445
},
4546
"devDependencies": {
46-
"babel-eslint": "^7.0.0",
47-
"eslint": "^3.15.0",
48-
"eslint-config-react-app": "^0.5.0",
49-
"eslint-plugin-flowtype": "^2.30.0",
50-
"eslint-plugin-import": "^2.0.1",
51-
"eslint-plugin-jsx-a11y": "^3.0.2",
52-
"eslint-plugin-react": "^6.9.0"
47+
"babel-eslint": "^7.2.3",
48+
"eslint": "^3.19.0",
49+
"eslint-config-react-app": "^1.0.4",
50+
"eslint-plugin-flowtype": "^2.33.0",
51+
"eslint-plugin-import": "^2.3.0",
52+
"eslint-plugin-jsx-a11y": "^5.0.3",
53+
"eslint-plugin-react": "^7.0.1"
5354
}
5455
}

0 commit comments

Comments
 (0)