Skip to content

Comments

Modernise React code, update packages, fix warnings and improve build#147

Open
li-boxuan wants to merge 9 commits intophilschatz:masterfrom
li-boxuan:philschatz_refactor_react
Open

Modernise React code, update packages, fix warnings and improve build#147
li-boxuan wants to merge 9 commits intophilschatz:masterfrom
li-boxuan:philschatz_refactor_react

Conversation

@li-boxuan
Copy link

This PR contains a few commits, including:

  1. Modernise React code and upgrade to v16.3
  2. Update packages
  3. Fix ESLint warnings
  4. Improve build

ryanprior and others added 6 commits May 18, 2018 15:24
* 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.
@li-boxuan li-boxuan force-pushed the philschatz_refactor_react branch 3 times, most recently from 8166208 to 2471ac2 Compare June 28, 2018 00:31
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.
@li-boxuan li-boxuan force-pushed the philschatz_refactor_react branch from 2471ac2 to dbba56e Compare June 28, 2018 00:37
@li-boxuan
Copy link
Author

Travis is green now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants