Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 8b7d9ed

Browse files
committed
Update fether-react to create-react-app 2 (closes #212)
1 parent ed6d3fd commit 8b7d9ed

File tree

5 files changed

+4219
-1564
lines changed

5 files changed

+4219
-1564
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
"yarn": "^1.4.2"
4040
},
4141
"scripts": {
42-
"build": "lerna run build",
42+
"build": "cross-env SKIP_PREFLIGHT_CHECK=true lerna run build",
4343
"preelectron": "yarn build",
44-
"electron": "cd packages/fether-electron && yarn electron",
44+
"electron": "cd packages/fether-electron && cross-env SKIP_PREFLIGHT_CHECK=true yarn electron",
4545
"lint-files": "./scripts/lint-files.sh",
4646
"lint": "yarn lint-files '**/*.{js,ts}'",
4747
"prepackage": "yarn build",
4848
"package": "cd packages/fether-electron && yarn package",
4949
"release": "cd packages/fether-electron && yarn release",
50-
"start": "npm-run-all -l -p start-*",
50+
"start": "cross-env SKIP_PREFLIGHT_CHECK=true npm-run-all -l -p start-*",
5151
"start-electron": "cd packages/fether-electron && yarn start",
5252
"start-react": "cd packages/fether-react && yarn start",
5353
"start-ui": "cd packages/fether-ui && yarn start",
@@ -59,11 +59,11 @@
5959
}
6060
},
6161
"devDependencies": {
62-
"babel-eslint": "^8.2.5",
62+
"babel-eslint": "^9.0.0",
6363
"husky": "^1.0.0-rc.13",
6464
"lerna": "^2.11.0",
6565
"npm-run-all": "^4.1.2",
6666
"prettier": "^1.14.2",
67-
"semistandard": "^12.0.1"
67+
"semistandard": "^13.0.1"
6868
}
6969
}

packages/fether-react/config-overrides.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ const { injectBabelPlugin } = require('react-app-rewired');
33
/* config-overrides.js */
44
module.exports = function override (config) {
55
// use the MobX rewire to use @decorators
6-
config = injectBabelPlugin('transform-decorators-legacy', config);
7-
6+
config = injectBabelPlugin(
7+
['@babel/proposal-decorators', { legacy: true }],
8+
config
9+
);
810
return config;
911
};

packages/fether-react/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,22 @@
6060
"react-markdown": "^3.3.4",
6161
"react-resize-detector": "^3.0.1",
6262
"react-router-dom": "^4.2.2",
63-
"react-scripts": "1.1.4",
63+
"react-scripts": "^2.1.1",
6464
"recompose": "^0.27.1",
6565
"rxjs": "^6.2.0"
6666
},
6767
"devDependencies": {
68-
"babel-plugin-transform-decorators-legacy": "^1.3.5",
68+
"@babel/plugin-proposal-decorators": "^7.2.0",
6969
"capitalize": "^1.0.0",
7070
"node-sass": "^4.9.0",
7171
"node-sass-chokidar": "^1.2.2",
7272
"npm-run-all": "^4.1.2",
7373
"react-app-rewired": "^1.5.2"
74-
}
74+
},
75+
"browserslist": [
76+
">0.2%",
77+
"not dead",
78+
"not ie <= 11",
79+
"not op_mini all"
80+
]
7581
}

packages/fether-react/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta http-equiv="Content-Security-Policy" content="default-src 'self';connect-src file: http: https: ws: wss:;img-src 'self' 'unsafe-inline' file: data: blob: http: https:;style-src 'unsafe-inline' file:;">
7+
<meta http-equiv="Content-Security-Policy" content="default-src 'self';script-src file: http: 'unsafe-inline'; connect-src file: http: https: ws: wss:;img-src 'self' 'unsafe-inline' file: data: blob: http: https:;style-src 'unsafe-inline' file:;">
88
<meta name="theme-color" content="#000000">
99
<!--
1010
manifest.json provides metadata used when your web app is added to the

0 commit comments

Comments
 (0)