- Your package.json file should consist a field
homepage
:
"homepage": "https://<github-username>.github.io/<project-repo>"
2.1. Install gh-pages
via npm:
npm i --save-dev gh-pages
[ | |
{ "name": "Afghanistan", "nameFrench": "Afghanistan", "nameSpanish": "Afganistán", "nameRussian": "Афганистан", "nameChinese": "阿富汗", "nameArabic": "أفغانستان", "m49code": 4, "region": 142, "subRegion": 34, "alpha2": "AF", "alpha3": "AFG", "LDC": true, "LLDC": true, "phoneCode": ["+93"] }, | |
{ "name": "Åland Islands", "nameFrench": "Îles d’Åland", "nameSpanish": "Islas Åland", "nameRussian": "Аландских островов", "nameChinese": "奥兰群岛", "nameArabic": "جزر ألاند", "m49code": 248, "region": 150, "subRegion": 154, "alpha2": "AX", "alpha3": "ALA", "phoneCode": ["+35818"] }, | |
{ "name": "Albania", "nameFrench": "Albanie", "nameSpanish": "Albania", "nameRussian": "Албания", "nameChinese": "阿尔巴尼亚", "nameArabic": "ألبانيا", "m49code": 8, "region": 150, "subRegion": 39, "alpha2": "AL", "alpha3": "ALB", "phoneCode": ["+355"] }, | |
{ "name": "Algeria", "nameFrench": "Algérie", "nameSpanish": "Argelia", "nameRussian": "Алжир", "nameChinese": "阿尔及利亚", "nameArabic": "الجزائر", "m49code": 12, "region": 2, "subRegion": 15, "alp |
homepage
: "homepage": "https://<github-username>.github.io/<project-repo>"
2.1. Install gh-pages
via npm:
npm i --save-dev gh-pages
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |