This packege run automatic deploy of your ng-cli project on git repository in gh-pages branch You must run the command "npm run deploy" being in the master branch. It's all.
- npm install ng-deploy-gh-pages --save-dev
- add script in your package.json
"deploy": "./node_modules/.bin/deploy"
- git checkout master
- npm run deploy
- Get git origin url
- Build project with changed base href to the name of the repository
- Create 404.html in ./dist
- Init new repo in ./dist and prepare for push to gh-pages
- Push files from ./dist to gh-pages
- Delete ./dist