Skip to content

Publishing

Bruce Schubert edited this page Mar 22, 2019 · 1 revision

Deploy to GitHub Pages

The Explorer is hosted on GitHub pages from this project's gh-pages branch.

Setup

Publishing is accomplished via the gh-pages npm plugin. The package.json file contains a script entry that instructs the plugin to publish everything in the root folder to the gh-pages branch. The following snippet from package.json shows the configuration.

  "devDependencies": {
    "gh-pages": "^1.2.0"
  },
  "scripts": {
    "deploy": "gh-pages -d root"
  }

Publish

To publish everything from your root folder to your gh-pages branch, run this command:

npm run deploy
Clone this wiki locally