Links:
git clone git@github.com:inciteco/tug-of-war.git
cd tug-of-war && npm install
npm start
There's a few dev scripts to help automate things, to use these you'll want to install these dependencies:
Installing (on Mac OS X):
brew update
brew install ffmpeg
brew install lame
brew install --with-libvorbis --with-lame sox
brew install jq
You can generate csv-formatted reports with the command below:
firebase use production && npm run reports
This will create two timestamp-prefixed files in reports/
:
reports
├── 2017-09-05T13:46:50-entries.csv
└── 2017-09-05T13:46:50-opt_ins.csv
There is a script to compress all source images in the src/assets/images
folder into the public/assets/images
. The initial pass reduced our load from 77mb to 10mb.
This should be used whenever new images are added:
npm run compress
Deploy to Staging:
firebase use default && firebase deploy
Deploy to Production:
firebase use production && firebase deploy
You can logout via the developer console with:
gameService.signOut()
localStorage corruption?
If you get weird caching things after updating js files, try running this in the chrome dev tools console while on the page:
localStorage.clear()
A fully layered, editable psd is in the root of /src which contains all visual assets