Skip to content
Amit Patel edited this page May 1, 2017 · 7 revisions

Testing locally

To test locally, edit the html/js files and then either:

  1. Run a local webserver (python -m SimpleHTTPServer 80 for python2, or python -m http.server 80 for python3) and visit http://localhost:80/
  2. or visit the file using a file:/// URL

Deploying to gh-pages

Prerequisites

  • Node.js version 0.10.0 or newer
  • Install jspm, eslint, gulp globally

Run this once

npm install -g jspm
npm install -g gulp

Set up

Run this once per repository/branch

npm install
jspm install

Push to gh-pages

Run this to copy the current directory to gh-pages

gulp copy
gulp deploy
Clone this wiki locally