Skip to content

Commit ea47844

Browse files
committed
Modifying README & Bump version
1 parent bcbfa8e commit ea47844

File tree

2 files changed

+21
-52
lines changed

2 files changed

+21
-52
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,7 @@ So it will look like:
574574

575575
## Known Issues
576576

577-
There're some 3rd party issues related to the version of webpack v4. Please be patient for them:
578-
579-
* For deprecated warning of `(node:31249) DeprecationWarning: Tapable.plugin is deprecated. Use new API on '.hooks' instead` is caused from [assets-webpack-plugin](https://github.com/kossnocorp/assets-webpack-plugin) and there's a [open issue](https://github.com/kossnocorp/assets-webpack-plugin/issues/86) for it.
580-
581-
* HMR doesn't work for style. Because of I use (mini-css-extract-plugin)[https://github.com/webpack-contrib/mini-css-extract-plugin] to instead of [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin). And it'll [support HMR](https://github.com/webpack-contrib/mini-css-extract-plugin#mini-css-extract-plugin) soon.
577+
HMR doesn't work for style. Because of I use (mini-css-extract-plugin)[https://github.com/webpack-contrib/mini-css-extract-plugin] to instead of [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin). And it'll [support HMR](https://github.com/webpack-contrib/mini-css-extract-plugin#mini-css-extract-plugin) soon.
582578

583579
## To Do...
584580

package.json

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "react-cool-starter",
3-
"version": "2.4.0",
4-
"description": "A starter boilerplate for an universal web application with the best development experience and best practices.",
3+
"version": "2.4.1",
4+
"description":
5+
"A starter boilerplate for an universal web application with the best development experience and best practices.",
56
"main": "index.js",
67
"engines": {
78
"node": ">=6.0",
@@ -73,13 +74,15 @@
7374
}
7475
},
7576
"build": {
76-
"command": "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js",
77+
"command":
78+
"webpack --progress --hide-modules --config ./tools/webpack/config.babel.js",
7779
"env": {
7880
"NODE_ENV": "production"
7981
}
8082
},
8183
"analyze": {
82-
"command": "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js",
84+
"command":
85+
"webpack --progress --hide-modules --config ./tools/webpack/config.babel.js",
8386
"env": {
8487
"NODE_ENV": "analyze"
8588
}
@@ -124,16 +127,10 @@
124127
"@babel/preset-stage-0",
125128
"@babel/preset-flow"
126129
],
127-
"plugins": [
128-
"loadable-components/babel",
129-
"dynamic-import-node",
130-
"lodash"
131-
],
130+
"plugins": ["loadable-components/babel", "dynamic-import-node", "lodash"],
132131
"env": {
133132
"production": {
134-
"plugins": [
135-
"transform-remove-console"
136-
]
133+
"plugins": ["transform-remove-console"]
137134
}
138135
}
139136
},
@@ -145,11 +142,7 @@
145142
"prettier",
146143
"prettier/react"
147144
],
148-
"plugins": [
149-
"lodash-fp",
150-
"react",
151-
"prettier"
152-
],
145+
"plugins": ["lodash-fp", "react", "prettier"],
153146
"settings": {
154147
"import/resolver": {
155148
"webpack": {
@@ -171,10 +164,7 @@
171164
"react/jsx-filename-extension": [
172165
"error",
173166
{
174-
"extensions": [
175-
".js",
176-
".jsx"
177-
]
167+
"extensions": [".js", ".jsx"]
178168
}
179169
],
180170
"import/no-extraneous-dependencies": [
@@ -186,9 +176,7 @@
186176
"jsx-a11y/anchor-is-valid": [
187177
"error",
188178
{
189-
"specialLink": [
190-
"to"
191-
]
179+
"specialLink": ["to"]
192180
}
193181
],
194182
"lodash-fp/use-fp": "off",
@@ -206,36 +194,26 @@
206194
"__DEV__": true
207195
}
208196
},
209-
"eslintIgnore": [
210-
"tools/flow"
211-
],
197+
"eslintIgnore": ["tools/flow"],
212198
"stylelint": {
213199
"extends": [
214200
"stylelint-config-standard",
215201
"stylelint-config-recommended-scss",
216202
"./node_modules/prettier-stylelint/config.js"
217203
],
218-
"plugins": [
219-
"stylelint-scss"
220-
],
204+
"plugins": ["stylelint-scss"],
221205
"rules": {
222206
"string-quotes": "single",
223207
"selector-pseudo-class-no-unknown": [
224208
true,
225209
{
226-
"ignorePseudoClasses": [
227-
"global",
228-
"local"
229-
]
210+
"ignorePseudoClasses": ["global", "local"]
230211
}
231212
]
232213
}
233214
},
234215
"jest": {
235-
"setupFiles": [
236-
"raf/polyfill",
237-
"<rootDir>/tools/jest/setup.js"
238-
],
216+
"setupFiles": ["raf/polyfill", "<rootDir>/tools/jest/setup.js"],
239217
"globals": {
240218
"__DEV__": true
241219
},
@@ -252,19 +230,14 @@
252230
],
253231
"moduleNameMapper": {
254232
".*\\.(css|scss|sass)$": "<rootDir>/tools/jest/styleMock.js",
255-
".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tools/jest/assetMock.js"
233+
".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
234+
"<rootDir>/tools/jest/assetMock.js"
256235
}
257236
},
258237
"nodemonConfig": {
259-
"watch": [
260-
"src/server.js",
261-
"src/helpers/renderHtml.js"
262-
]
238+
"watch": ["src/server.js", "src/helpers/renderHtml.js"]
263239
},
264-
"browserslist": [
265-
"> 1%",
266-
"last 2 versions"
267-
],
240+
"browserslist": ["> 1%", "last 2 versions"],
268241
"dependencies": {
269242
"@babel/register": "^7.0.0-beta.44",
270243
"axios": "^0.18.0",

0 commit comments

Comments
 (0)