Skip to content

Smiranin/ng-deploy-gh-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published