izonder / rock-paper-scissors

Rock-Paper-Scissors game

Home Page:https://izonder.github.io/rock-paper-scissors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock-Paper-Scissors

Pre-requisites

  • Node.js: v10.15.0+
  • Yarn: v1.3.0+
  • Docker: v1.12.3+

Compatibility

Default target browsers are defined via browserlist:

  • > 1%
  • last 2 versions

Full list of supported browsers here: https://browserl.ist/?q=%3E+1%25%2C+last+2+versions

Development

Development mode supports pre-linting and auto-compilation with live-reload.

  1. to start dev-server just enter:
yarn start
  1. open in browser http://0.0.0.0:9000

  2. enjoy!

QA

QA stage commands:

yarn lint # check linting manually
yarn test # run test suites

NOTE! test suites are not implemented yet

Production

To start building the project type:

yarn build # prepare dist in `./docs` folder

To prepare a Docker container and publish it to registry:

yarn docker

Then to run it in dev mode e.g. with port 8888 (just open in browser URL http://0.0.0.0:8888 then):

docker run -it --rm -p 8888:80 rock-paper-scissors ash

Known issues

  • global rerender after store changes
  • only global store support
  • leak of event handlers

TODO

  • test suites
  • styles

About

Rock-Paper-Scissors game

https://izonder.github.io/rock-paper-scissors/

License:MIT License


Languages

Language:JavaScript 95.2%Language:Dockerfile 3.2%Language:HTML 1.2%Language:CSS 0.5%