Skip to content

Instantly share code, notes, and snippets.

View christiearcus's full-sized avatar

Christie christiearcus

  • Sharesies
  • Wellington
View GitHub Profile

React && Firebase Workshop

Contact Information

Prequisite Setup

  • A recent version of Node.js
  • npm install -g create-react-app
@DanielHeath
DanielHeath / deploy.sh
Last active August 1, 2016 03:38
Deploying to github pages, from e.g. a webpack static site generator [OSX/LINUX]
#!/usr/bin/env bash
set -o pipefail # If you pipe one command into another, fail the whole lot if any fail
set -e # fail if there are any errors in the script
set -u # fail if you use an uninitialized variable
# Warn about the dire consequences of this action
read -r -p "THIS WILL WIPE OUT ANY UNCOMMITTED CHANGES - control-c to stop" yn
HEAD=$(git rev-parse HEAD) # Save where you're up to
git reset --hard "$HEAD" # Avoid using uncommitted changes to build the site