Modernise React code, update packages, fix warnings and improve build#147
Open
li-boxuan wants to merge 9 commits intophilschatz:masterfrom
Open
Modernise React code, update packages, fix warnings and improve build#147li-boxuan wants to merge 9 commits intophilschatz:masterfrom
li-boxuan wants to merge 9 commits intophilschatz:masterfrom
Conversation
* Webpack 3 * es2017 + node7 * webpack-dev-server 2
Additionally, remove `no-alert` and `no-console` from .eslintrc because we use that frequently in the code.
Refactor deprecated code and upgrade to React v16.3
* Use `babel-preset-env` and `uglify-webpack-plugin` * Set NODE_ENV to 'production' in production * Disable sourcemap in production * Extract css in production
* loaders -> rules * loader -> use
Webpack >2 supports loading json out of the box.
8166208 to
2471ac2
Compare
1. Run script/run-test.sh on Travis. Modify test logic and abandon magic exit code 42. 2. Use npm-run-all instead of parallelshell. Upgrade ava, http-server, webdriver and webpack. 3. Use selenium-standalone instead of webdriver-manager. 4. Uncomment xvfb start code in .travis.yml. Remove game functionality test code in test/index.js.
Run ESLint on test directory and fix ESLint warnings.
2471ac2 to
dbba56e
Compare
Author
|
Travis is green now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a few commits, including: