publish - nonlinear/canvas GitHub Wiki

Publishing pushes your ./dist folder only (as root) to the gh-pages branch.

Your published page is always {username}.github.com/{repository}

GitHub pages is a free service.

Usage

  • To publish your distribution file, just run gulp publish and it will:
    • unCSS your file
    • add inline css rules to any mail-*.html file (for proper email template)
    • push ./dist folder to gh-pages branch (with timestamp as commit)

Limitations and troubleshooting

  • It only works if your distribution folder is ./dist (as default)
  • If somehow it breaks, delete folder .publish/ and try again
  • If for any reason you need to rename your distribution folder, check root instructions.