This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
- Enter the project settings. Under
GitHub Pages
section, setSource
toMaster 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, enteryarn add gh-pages --dev