Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

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
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.

None yet

3 participants