-
Notifications
You must be signed in to change notification settings - Fork 222
Building
Amit Patel edited this page Aug 16, 2017
·
7 revisions
To test locally, edit the html/js files and then either:
- Run a local webserver (
python -m SimpleHTTPServer 80
for python2, orpython -m http.server 80
for python3) and visithttp://localhost:80/
- or visit the file using a
file:///
URL. Pages loading additional data with AJAX won't work withfile:///
URLs so you will have to run a local webserver for them.
For now, gh-pages is updated automatically from the main branch. However, if we need to introduce a build step, this is what we were doing before:
- Node.js version 0.10.0 or newer
- Install jspm, eslint, gulp globally
Run this once
npm install -g jspm
npm install -g gulp
Run this once per repository/branch
npm install
jspm install
Run this to copy the current directory to gh-pages
gulp copy
gulp deploy