Skip to content

Commit a0ff1a4

Browse files
committed
Upgrade dependencies & Simplfy commands & Remove un-necessary jest coverage ignored file
1 parent 7330f06 commit a0ff1a4

File tree

7 files changed

+104
-88
lines changed

7 files changed

+104
-88
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ By the way, Jest built-in code coverage reports, the report files are generated
503503
"collectCoverageFrom": [
504504
"src/pages/**/*.js", // Define the files, which want to be covered
505505
"src/components/**/*.js",
506-
"!src/**/__tests__" // The files will be ignored by code coverage
506+
"!src/pages/index.js" // The files will be ignored by code coverage
507507
],
508508
// Other configurations
509509
},

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
},
5858
"betterScripts": {
5959
"dev": {
60-
"command": "nodemon ./index.js",
60+
"command": "nodemon .",
6161
"env": {
6262
"NODE_PATH": "./src",
6363
"NODE_ENV": "development",
6464
"PORT": 3000
6565
}
6666
},
6767
"start": {
68-
"command": "node ./index.js",
68+
"command": "node .",
6969
"env": {
7070
"NODE_PATH": "./src",
7171
"NODE_ENV": "production",
@@ -264,8 +264,7 @@
264264
"!src/pages/index.js",
265265
"!src/pages/Home/index.js",
266266
"!src/pages/UserInfo/index.js",
267-
"!src/reducers/index.js",
268-
"!src/**/__tests__"
267+
"!src/reducers/index.js"
269268
],
270269
"moduleNameMapper": {
271270
".*\\.(css|scss|sass)$": "<rootDir>/tools/jest/styleMock.js",
@@ -303,8 +302,8 @@
303302
"helmet": "^3.13.0",
304303
"history": "^4.7.2",
305304
"hpp": "^0.2.2",
306-
"html-minifier": "^3.5.19",
307-
"loadable-components": "^2.2.2",
305+
"html-minifier": "^3.5.20",
306+
"loadable-components": "^2.2.3",
308307
"lodash": "^4.17.10",
309308
"morgan": "^1.9.0",
310309
"node-sass": "^4.9.3",
@@ -335,7 +334,7 @@
335334
"compression-webpack-plugin": "^1.1.11",
336335
"coveralls": "^3.0.2",
337336
"css-loader": "^1.0.0",
338-
"enzyme": "^3.4.1",
337+
"enzyme": "^3.4.4",
339338
"enzyme-adapter-react-16": "^1.2.0",
340339
"eslint": "^5.3.0",
341340
"eslint-config-airbnb": "^17.1.0",
@@ -347,7 +346,7 @@
347346
"eslint-plugin-prettier": "^2.6.2",
348347
"eslint-plugin-react": "^7.11.0",
349348
"file-loader": "^1.1.11",
350-
"flow-bin": "^0.78.0",
349+
"flow-bin": "^0.79.1",
351350
"friendly-errors-webpack-plugin": "^1.7.0",
352351
"husky": "^0.14.3",
353352
"identity-obj-proxy": "^3.0.0",
@@ -368,12 +367,12 @@
368367
"redux-mock-store": "^1.5.3",
369368
"rimraf": "^2.6.2",
370369
"sass-loader": "^7.1.0",
371-
"stylelint": "^9.4.0",
370+
"stylelint": "^9.5.0",
372371
"stylelint-config-prettier": "^4.0.0",
373372
"stylelint-config-recommended-scss": "^3.2.0",
374373
"stylelint-config-standard": "^18.2.0",
375374
"stylelint-scss": "^3.3.0",
376-
"url-loader": "^1.1.0",
375+
"url-loader": "^1.1.1",
377376
"webpack": "^4.16.5",
378377
"webpack-bundle-analyzer": "^2.13.1",
379378
"webpack-cli": "^3.1.0",

public/webpack-assets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"main.js": "/assets/main.03209cb8.js",
44
"main.js.map": "/assets/main.03209cb8.js.map",
55
"vendors~main.css": "/assets/3.1736fc72.chunk.css",
6-
"vendors~main.js": "/assets/3.c083344f.chunk.js",
7-
"vendors~main.js.map": "/assets/3.c083344f.chunk.js.map"
6+
"vendors~main.js": "/assets/3.0e582dad.chunk.js",
7+
"vendors~main.js.map": "/assets/3.0e582dad.chunk.js.map"
88
}

src/app/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { hot } from 'react-hot-loader';
88
import config from '../config';
99
// Import your global styles here
1010
import 'normalize.css/normalize.css'; // eslint-disable-line import/first
11-
import '../theme/root.scss';
1211
import styles from './styles.scss';
1312

1413
type Props = { route: Object };

src/app/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@import '../theme/variables';
22

3+
body {
4+
background-color: $color-dark-gray;
5+
font-family: 'Helvetica-Light', Helvetica, Arial, sans-serif;
6+
}
7+
38
.App {
49
color: $color-white;
510

src/theme/root.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)