refactor: apply webpack-defaults - #35
Conversation
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
======================================
Coverage ? 0%
======================================
Files ? 2
Lines ? 132
Branches ? 46
======================================
Hits ? 0
Misses ? 91
Partials ? 41
Continue to review full report at Codecov.
|
michael-ciniawsky
left a comment
There was a problem hiding this comment.
Latest webpack-defaults is the only obvious task left :) (yarn -> npm@5), if we land it sooner then later with the latest uglify@2 it can substitute lib/optimize/UglifyJSPlugin in webpack 3 as the (hopefully) last uglify@2 release
|
I updated it to webpack-defaults 1.1. I don't mind bumping later again. The only thing I noticed is that it overrode ESLint completely. I had to disable a couple of rules to accommodate to the project so those were lost. Is this by design? |
|
Yes, webpack-defaults always overrides the eslint settings; presumably to install new rules if any are added to defaults. Not sure if it's intentional that it doesn't support customizations at all. |
|
@Kovensky Ok, track webpack-contrib/webpack-defaults#59 . |
d295a5e to
23733c2
Compare
joshwiens
left a comment
There was a problem hiding this comment.
- Delete the
yarn.lock& replace withpackage-lock.json
| matrix: | ||
| fast_finish: true | ||
| install: | ||
| - 'ps: Install-Product node $env:nodejs_version x64' |
There was a problem hiding this comment.
You have to strip the ' off of anything that has ps: || cmd:. Already has an open issue in defaults.
| @@ -1,10 +1,34 @@ | |||
| sudo: false | |||
There was a problem hiding this comment.
Pickup webpack-defaults@1.4.0 for all the psudo canary Travis changes.
| "eslint-plugin-node": "^4.0.1", | ||
| "eslint-plugin-react": "^6.9.0", | ||
| "git-prepush-hook": "^1.0.1", | ||
| "jest": "^18.1.0", |
There was a problem hiding this comment.
Change to "jest": "^20.0.4",,
| @@ -56,23 +69,40 @@ | |||
| "babel-jest": "^18.0.0", | |||
There was a problem hiding this comment.
Change to "babel-jest": "^20.0.3",
| "babel-preset-es2015": "^6.18.0", | ||
| "cross-env": "^5.0.0", | ||
| "del-cli": "^1.0.0", | ||
| "eslint": "^3.13.1", |
There was a problem hiding this comment.
Strip the eslint deps in favor of ..
"eslint": "^3.19.0",
"eslint-config-webpack": "^1.2.3",
"eslint-plugin-import": "^2.3.0",
| "eslint-plugin-jsx-a11y": "^3.0.2", | ||
| "eslint-plugin-node": "^4.0.1", | ||
| "eslint-plugin-react": "^6.9.0", | ||
| "git-prepush-hook": "^1.0.1", |
There was a problem hiding this comment.
Shouldn't need this anymore?
| "babel-jest": "^18.0.0", | ||
| "babel-plugin-syntax-object-rest-spread": "^6.13.0", | ||
| "babel-plugin-transform-object-rest-spread": "^6.20.2", | ||
| "babel-polyfill": "^6.23.0", |
There was a problem hiding this comment.
Strip all the Babel in favor of ...
"babel-cli": "^6.24.1",
"babel-jest": "^20.0.3",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.5.2",
| "sync-exec": "^0.6.2", | ||
| "uglify-js": "^2.8.18", | ||
| "webpack": "^2.2.0" | ||
| "webpack": "^2.2.0", |
There was a problem hiding this comment.
Pull the hard devDependency on webpack
|
@Kovensky - The entire point of defaults was to standardize all of the loaders & plugins in contrib to simplify contributions & maintenance, this includes amongst other things, code style. We have a single way of doing things because in the end, it's always going to be a small group of people handling a vast majority of the project maintenance. Rules can be overridden in the There is discussion about using Prettier in the future but as it stands right now, there is far more value in getting the standards work done than tinkering around with stylistic debates. We can take another stylistic pass, probably with prettier in webpac-defaults 2.x along with the schema-utils updates but until https://github.com/orgs/webpack-contrib/projects/5 board is cleared, we are going with |
webpack-defaults
|
Updated to |
|
Why is the CI not working? 😕 😭 |
e77fc28 to
e9b2596
Compare
9339e12 to
07ca8fe
Compare
|
Shipit. |
* fix(package): mv uglify2 to `dependencies` && update `peerDependencies` (#45) * refactor: apply to `webpack-defaults` * chore(package): update `webpack-defaults v1.0.1...1.4.0` * refactor(package): rm `pre-push` hook * chore: rm `yarn.lock` * fix(index): linting
* fix(package): mv uglify2 to `dependencies` && update `peerDependencies` (#45) * refactor: apply to `webpack-defaults` * chore(package): update `webpack-defaults v1.0.1...1.4.0` BREAKING CHANGE: Enforces `peerDependencies` of `"webpack": ">= 3.0.0-rc.0 || ^3.0.0"`. BREAKING CHANGE: Enforces `engines` of `"node": ">=4.3.0 < 5.0.0 || >= 5.10`
Closes #24.