Skip to content

Commit 0f8689b

Browse files
Broccohansl
authored andcommitted
refactor(@angular/cli): removed the github pages deploy command (#4385)
BREAKING CHANGE: This command is being removed from the core of the CLI There are several options for deploying CLI-based applications outside the scope of this project. One of which being https://github.com/angular-buch/angular-cli-ghpages This functionality is likely to return in the form of an addon/plugin in the future
1 parent d2f8ca7 commit 0f8689b

File tree

9 files changed

+1
-808
lines changed

9 files changed

+1
-808
lines changed

README.md

-32
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ with NPM 3 or higher.
4545
* [Running Unit Tests](#running-unit-tests)
4646
* [Running End-to-End Tests](#running-end-to-end-tests)
4747
* [Proxy To Backend](#proxy-to-backend)
48-
* [Deploying the App via GitHub Pages](#deploying-the-app-via-github-pages)
4948
* [Linting code](#linting-code)
5049
* [Commands autocompletion](#commands-autocompletion)
5150
* [Project assets](#project-assets)
@@ -237,37 +236,6 @@ and then we edit the `package.json` file's start script to be
237236

238237
now run it with `npm start`
239238

240-
### Deploying the app via GitHub Pages
241-
242-
You can deploy your apps quickly via:
243-
244-
```bash
245-
ng github-pages:deploy --message "Optional commit message"
246-
```
247-
248-
This will do the following:
249-
250-
- creates GitHub repo for the current project if one doesn't exist
251-
- rebuilds the app in production mode at the current `HEAD`
252-
- creates a local `gh-pages` branch if one doesn't exist
253-
- moves your app to the `gh-pages` branch and creates a commit
254-
- edit the base tag in index.html to support GitHub Pages
255-
- pushes the `gh-pages` branch to GitHub
256-
- returns back to the original `HEAD`
257-
258-
Creating the repo requires a token from GitHub, and the remaining functionality
259-
relies on ssh authentication for all git operations that communicate with github.com.
260-
To simplify the authentication, be sure to [setup your ssh keys](https://help.github.com/articles/generating-ssh-keys/).
261-
262-
If you are deploying a [user or organization page](https://help.github.com/articles/user-organization-and-project-pages/), you can instead use the following command:
263-
264-
```bash
265-
ng github-pages:deploy --user-page --message "Optional commit message"
266-
```
267-
268-
This command pushes the app to the `master` branch on the GitHub repo instead
269-
of pushing to `gh-pages`, since user and organization pages require this.
270-
271239

272240
### Linting code
273241

docs/documentation/stories/deploy-github-pages.md

-30
This file was deleted.

packages/@angular/cli/addon/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module.exports = {
3232
'version': require('../commands/version').default,
3333
'completion': require('../commands/completion').default,
3434
'doc': require('../commands/doc').default,
35-
'github-pages-deploy': require('../commands/github-pages-deploy').default,
3635

3736
// Easter eggs.
3837
'make-this-awesome': require('../commands/easter-egg').default,

packages/@angular/cli/blueprints/ng2/files/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
2222
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
2323
Before running the tests make sure you are serving the app via `ng serve`.
2424

25-
## Deploying to GitHub Pages
26-
27-
Run `ng github-pages:deploy` to deploy to GitHub Pages.
28-
2925
## Further help
3026

3127
To get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

packages/@angular/cli/commands/github-pages-deploy.run.ts

-272
This file was deleted.

0 commit comments

Comments
 (0)