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
Copy file name to clipboardExpand all lines: README.md
+51-42Lines changed: 51 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ angular-cli-ghpages is right now not compatible with `angular-cli: 1.0.0-beta.11
25
25
26
26
This addon has the following prerequisites:
27
27
28
-
- Node.js 4.x
28
+
- Node.js 4.x
29
29
- Git 1.7.6 or higher
30
-
- Angular project created via [angular-cli](https://github.com/angular/angular-cli)
30
+
- Angular project created via [angular-cli](https://github.com/angular/angular-cli)
31
31
32
32
To install this addon run the following command:
33
33
@@ -55,8 +55,8 @@ By default, __gh-pages__ assumes that the current working directory is a git rep
55
55
56
56
#### <aid="message">--message</a>
57
57
* optional
58
-
* default: `Auto-generated commit`
59
-
58
+
* default: `Auto-generated commit`
59
+
60
60
The commit message, __must be wrapped in quotes__.
61
61
Some handy additional text is always added, if the environment variable `process.env.TRAVIS` exists (for Travis CI).
62
62
@@ -68,7 +68,7 @@ ng ghpages --message="What could possibly go wrong?"
68
68
69
69
#### <aid="branch">--branch</a>
70
70
* optional
71
-
* default: `gh-pages`
71
+
* default: `gh-pages`
72
72
73
73
The name of the branch you'll be pushing to. The default uses GitHub's `gh-pages` branch, but this can be configured to push to any branch on any remote.
74
74
@@ -86,43 +86,52 @@ If you are running the command in a repository without a `user.name` or `user.em
86
86
87
87
Suppress logging. With silent `true` log messages are suppressed and error messages are sanitized.
88
88
89
-
> This option should be used if the repository URL or other information passed to git commands is sensitive and should not be logged (== you have a public build server). By default the silent mode is enabled to avoid sensitive data exposure.
90
-
91
-
92
-
#### <aid="dir">--dir</a>
93
-
* optional
94
-
* default: `dist`
95
-
96
-
Directory for all published sources, relative to the project-root.
97
-
Most probably no change is required here, useful together with --skip-build.
98
-
This option can be used to deploy completely different folders, which are note related at all to angular.
99
-
100
-
101
-
#### <aid="environment">--environment</a>
102
-
* optional
103
-
* default: `production`
104
-
105
-
The Angular environment to create a build for.
106
-
The build artifacts are always placed into the path `dist/`.
107
-
The option `--dir` has no effect on the output path.
108
-
109
-
110
-
#### <aid="skip-build">--skip-build</a>
111
-
* optional
112
-
* default: `false` (boolean)
113
-
114
-
Skip building the project before deploying, useful together with --dir.
115
-
116
-
117
-
118
-
#### <aid="dotfiles">--dotfiles</a>
119
-
* optional
120
-
* default: `true` (boolean)
121
-
122
-
Includes dotfiles by default. When set to `false` files starting with `.` are ignored.
123
-
124
-
125
-
89
+
> This option should be used if the repository URL or other information passed to git commands is sensitive and should not be logged (== you have a public build server). By default the silent mode is enabled to avoid sensitive data exposure.
90
+
91
+
92
+
#### <aid="dir">--dir</a>
93
+
* optional
94
+
* default: `dist`
95
+
96
+
Directory for all published sources, relative to the project-root.
97
+
Most probably no change is required here, useful together with --skip-build.
98
+
This option can be used to deploy completely different folders, which are note related at all to angular.
99
+
(Hint: usual angular-cli config is ignored here!)
100
+
101
+
AND ALSO: Output path for the build, if a build is done.
102
+
103
+
#### <aid="target">--target</a>
104
+
* optional
105
+
* default: `production`
106
+
* alias: `t`
107
+
108
+
Build target (`development` or `production`), see [Build Targets and Environment Files](https://github.com/angular/angular-cli/#build-targets-and-environment-files).
109
+
110
+
111
+
#### <aid="environment">--environment</a>
112
+
* optional
113
+
* default: `prod`
114
+
* alias: `e`
115
+
116
+
Environment file to be used with that build (`dev`, `prod` or own), see [Build Targets and Environment Files](https://github.com/angular/angular-cli/#build-targets-and-environment-files).
117
+
118
+
119
+
#### <aid="skip-build">--skip-build</a>
120
+
* optional
121
+
* default: `false` (boolean)
122
+
123
+
Skip building the project before deploying, useful together with --dir.
124
+
125
+
126
+
127
+
#### <aid="dotfiles">--dotfiles</a>
128
+
* optional
129
+
* default: `true` (boolean)
130
+
131
+
Includes dotfiles by default. When set to `false` files starting with `.` are ignored.
132
+
133
+
134
+
126
135
## Extra
127
136
128
137
For your convenience, the addon will recognize the [environment variable](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings)`GH_TOKEN` and will replace this pattern in the `--repo` string. Please __do NOT disable the silent mode__ if you have any credentials in the repository URL! Read more about [Github tokens here](https://help.github.com/articles/creating-an-access-token-for-command-line-use/).
varWebpackBuild=require.main.require('angular-cli/addon/ng2/tasks/build-webpack.ts');// see angular-cli/lib/cli/index.js which hooks up on require calls to transpile TypeScript.
0 commit comments