Git Product home page Git Product logo

angular-cli-github-pages's Introduction

angular-cli-github-pages

Angular CLI addon for deploying apps to GitHub pages.

If you need to quickly deploy and redeploy a small Angular 2 app via GitHub pages this angular-cli addon is for you!

This addon does the following:

  • creates GitHub repo for the current project if one doesn't exist
  • rebuilds the app at the current HEAD
  • creates a local gh-pages branch if one doesn't exist
  • moves your app to the gh-pages branch and creates a commit
  • pushes the gh-pages branch to github
  • returns back to the original HEAD

Installation & Setup

This addon has the following prerequisites:

  • Node.js 4.x
  • SSH keys setup for authentication with GitHub (see "Authentication" section below)
  • Angular project created via angular-cli

To install this addon all you need to do is install angular-cli-github-pages via npm:

npm install --save-dev angular-cli-github-pages

Usage

Once that's done, you can checkout the branch you want to create the gh-page from (likely master) and run the command to build and commit it.

Then run ng github-pages:deploy in order to rebuild gh-pages branch and deploy it.

git checkout master
ng github-pages:deploy --message "Optional commit message"

Authentication

This addon relies on ssh authentication for all git operations that communicate with github.com. To simplify the authentication, be sure to setup your ssh keys.

For repository creation, the addon needs to make a single https call to the GitHub api, for this user name and password are requested when the repo is being created.

Note: Two factor authentication is currently not supported by this addon.

Authors

License

Licensed under the MIT license

angular-cli-github-pages's People

Contributors

danielochoa avatar darkzeroman avatar igorminar avatar jakecraige avatar jessepinho avatar jhr007 avatar jpadilla avatar kidgodzilla avatar lukesargeant avatar mike-north avatar osxi avatar ronco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.