Skip to content

Commit 9d397cd

Browse files
authored
Merge pull request codeBelt#26 from codeBelt/js/package-updates
update packages and node version
2 parents f64d468 + e01b7d6 commit 9d397cd

File tree

6 files changed

+2013
-1751
lines changed

6 files changed

+2013
-1751
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.2.0
1+
13.9.0

craco.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ const path = require('path');
22

33
module.exports = function({ env, paths }) {
44
return {
5+
babel: {
6+
presets: [],
7+
plugins: ['@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-nullish-coalescing-operator'],
8+
// loaderOptions: { /* Any babel-loader configuration options: https://github.com/babel/babel-loader. */ },
9+
// loaderOptions: (babelLoaderOptions, { env, paths }) => { return babelLoaderOptions; }
10+
},
511
webpack: {
612
alias: {
713
environment: path.join(__dirname, 'src', 'environments', process.env.CLIENT_ENV),

package.json

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
]
4343
},
4444
"dependencies": {
45-
"axios": "0.19.0",
45+
"axios": "0.19.2",
4646
"classnames": "2.2.6",
47-
"connected-react-router": "6.6.1",
48-
"dayjs": "1.8.18",
47+
"connected-react-router": "6.7.0",
48+
"dayjs": "1.8.21",
4949
"history": "4.10.1",
5050
"lodash.groupby": "4.6.0",
51-
"react": "16.12.0",
52-
"react-app-polyfill": "1.0.5",
53-
"react-dom": "16.12.0",
54-
"react-redux": "7.1.3",
51+
"react": "16.13.0",
52+
"react-app-polyfill": "1.0.6",
53+
"react-dom": "16.13.0",
54+
"react-redux": "7.2.0",
5555
"react-router-dom": "5.1.2",
5656
"redux": "4.0.5",
5757
"redux-devtools-extension": "2.13.8",
@@ -61,35 +61,37 @@
6161
"semantic-ui-css": "2.4.1",
6262
"semantic-ui-react": "0.88.2",
6363
"sjs-base-model": "1.9.0",
64-
"uuid": "3.3.3"
64+
"uuid": "7.0.1"
6565
},
6666
"devDependencies": {
67-
"@craco/craco": "5.6.2",
67+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.8.3",
68+
"@babel/plugin-proposal-optional-chaining": "7.8.3",
69+
"@craco/craco": "5.6.3",
6870
"@types/classnames": "2.2.9",
69-
"@types/history": "4.7.3",
70-
"@types/jest": "24.0.25",
71+
"@types/history": "4.7.5",
72+
"@types/jest": "25.1.3",
7173
"@types/lodash.groupby": "4.6.6",
72-
"@types/node": "13.1.2",
73-
"@types/react": "16.9.17",
74-
"@types/react-dom": "16.9.4",
75-
"@types/react-redux": "7.1.5",
74+
"@types/node": "13.7.7",
75+
"@types/react": "16.9.23",
76+
"@types/react-dom": "16.9.5",
77+
"@types/react-redux": "7.1.7",
7678
"@types/react-router-dom": "5.1.3",
77-
"@types/uuid": "3.4.6",
78-
"@typescript-eslint/eslint-plugin": "2.14.0",
79-
"@typescript-eslint/parser": "2.14.0",
80-
"cross-env": "6.0.3",
79+
"@types/uuid": "7.0.0",
80+
"@typescript-eslint/eslint-plugin": "2.21.0",
81+
"@typescript-eslint/parser": "2.21.0",
82+
"cross-env": "7.0.0",
8183
"eslint": "6.8.0",
82-
"eslint-config-prettier": "6.9.0",
84+
"eslint-config-prettier": "6.10.0",
8385
"eslint-plugin-prettier": "3.1.2",
84-
"eslint-plugin-react": "7.17.0",
85-
"eslint-plugin-react-hooks": "2.3.0",
86-
"generate-template-files": "2.2.0",
87-
"gh-pages": "2.1.1",
88-
"husky": "3.1.0",
89-
"node-sass": "4.13.0",
86+
"eslint-plugin-react": "7.18.3",
87+
"eslint-plugin-react-hooks": "2.5.0",
88+
"generate-template-files": "2.2.1",
89+
"gh-pages": "2.2.0",
90+
"husky": "4.2.3",
91+
"node-sass": "4.13.1",
9092
"prettier": "1.19.1",
9193
"pretty-quick": "2.0.1",
92-
"react-scripts": "3.3.0",
93-
"typescript": "3.7.4"
94+
"react-scripts": "3.4.0",
95+
"typescript": "3.8.3"
9496
}
9597
}

src/environments/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export default function baseEnv(baseApi) {
77
return {
88
route: {
9-
baseRoute: '',
9+
baseRoute: '/react-redux-architecture', // Fixes issue with Github Pages
1010
},
1111
api: {
1212
cast: `${baseApi}/shows/:showId/cast`,

src/environments/production.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ const env = environment(baseApi);
1010

1111
const productionEnv = {
1212
...env,
13-
route: {
14-
...env.route,
15-
baseRoute: '/react-redux-architecture', // Fixes issue with Github Pages
16-
},
13+
// override anything that gets added from base.
1714
};
1815

1916
export default productionEnv;

0 commit comments

Comments
 (0)