ng-deploy-gh-pages
v1.0.1
Published
deploy ng-cli project to gh-pages
Downloads
6
Readme
ng-deploy-gh-pages
What is ng-deploy-gh-pages?
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.
How to use
- 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
How does it work?
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