- Enter the project settings. Under
GitHub Pagessection, setSourcetoMaster 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.jsonfile,scriptssection, 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://[email protected]/AnSyn/project-name.git -d dist/project-name"
And replace project-name with the current project's name
- Add
gh-pagesadd a dev dependency: from a terminal, enteryarn add gh-pages --dev