8000 GitHub - legalcodes/egamebook_site: Source of the egamebook.com site
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

legalcodes/egamebook_site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egamebook.com site Build Status

Use make to build, serve and deploy. For example:

  • $ make install to install everything necessary
  • $ make build to build the site from source
  • $ make serve to develop the site on localhost:3000 with a fast edit-refresh cycle, using BrowserSync
  • $ make deploy to upload to Firebase
  • $ make clean to clean up all generated files, useful for a clean build

Video on site

The homepage has a video screencast of the game in action. To get it, record a device screen with the correct screen ratio (480 x 984). Then compress the video using something like VideoSmaller with width of 480 pixels. (The site has better results than whichever command line tool and preset I've tried so far.)

Before Deploying

Invalidate cached assets

Before deploying any changes to CSS, images or other media linked in HTML or CSS, update query string in all requests for such assets. Make sure all requests for a file use the same query string, eg.:

<link rel="preload" href="/css/main.min.css?v=2019021201" as="style" />
<!-- … -->
<link rel="stylesheet" href="/css/main.min.css?v=2019021201" />

This will force browsers to download the assets even if they had been cached before (may not work for proxy servers that strip query strings).

Check links

Always check that links work before deployment. Recommended approach:

One-time install

  1. Install Dart SDK, and make sure it's in $PATH
  2. Install linkcheck via pub global activate linkcheck

Check

  1. Start the local server via make serve
  2. Run linkcheck via linkcheck :5000 (this checks localhost:5000)
  3. (Optionally) Check external links with linkcheck :5000 -e

About

Source of the egamebook.com site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.8%
  • HyPhy 17.5%
  • CSS 17.1%
  • HTML 3.6%
  • Ruby 0.0%
  • Makefile 0.0%
0