You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@@ -237,37 +236,6 @@ and then we edit the `package.json` file's start script to be
237
236
238
237
now run it with `npm start`
239
238
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.
Copy file name to clipboardExpand all lines: packages/@angular/cli/blueprints/ng2/files/README.md
-4
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,6 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
22
22
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23
23
Before running the tests make sure you are serving the app via `ng serve`.
24
24
25
-
## Deploying to GitHub Pages
26
-
27
-
Run `ng github-pages:deploy` to deploy to GitHub Pages.
28
-
29
25
## Further help
30
26
31
27
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).
0 commit comments