Skip to content

Instantly share code, notes, and snippets.

Avatar

Ram Tobolski ramtob

View GitHub Profile
@ramtob
ramtob / .github-pages-with-travis.md
Last active Jan 17, 2019
How to connect a github project to github-pages with automatic deployment via travis
View .github-pages-with-travis.md
  • Enter the project settings. Under GitHub Pages section, set Source to Master branch (we will change the branch later).
  • Add the github-pages link (e.g. https://ansyn.github.io/project-name/) to the project's description line at github.
  • To the project's root, add file named .travis.yml (see file contents below in this gist, copy from there).
  • To the project's package.json file, scripts section, add the following two lines:
"predeploy": "npm run build -- --base-href=https://ansyn.github.io/project-name/ --deploy-url=https://ansyn.github.io/project-name/",
"deploy": "gh-pages --repo https://$GITHUB_TOKEN@github.com/AnSyn/project-name.git -d dist/project-name"

And replace project-name with the current project's name

  • Add gh-pages add a dev dependency: from a terminal, enter yarn add gh-pages --dev
@ramtob
ramtob / .block
Last active Oct 11, 2016
Block: Parallel Links in a Force Layout Graph (d3.js)
View .block
license: mit
View .block
license: mit