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
{{ message }}
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/README_contributors.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,19 @@ This may be useful when you want to try the latest non-published version of this
28
28
29
29
Follow the instructions for [checking and updating the Angular CLI version](#angular-cli) and then link the package.
30
30
31
-
### 1. Angular CLI
31
+
### 1. Optional: Latest Angular version
32
32
33
-
1. Install the next version of the Angular CLI.
33
+
This builder requires the method `getTargetOptions()` from the Angular DevKit which was introduced [here](https://github.com/angular/angular-cli/pull/13825/files).
34
+
All Angular projects with Angular 9 and greater are supposed to be compatible. (Actually it works with some versions of 8.x too, but you want to be up to date anyway, don't you?)
35
+
Execute the next three steps, if your test project is still older.
36
+
37
+
1. Install the latest version of the Angular CLI.
34
38
35
39
```sh
36
40
npm install -g @angular/cli
37
41
```
38
42
39
-
2. Run `ng version`, make sure you have installed Angular CLI v8.3.0 or greater.
43
+
2. Run `ng version`, to make sure you have installed Angular v9.0.0 or greater.
40
44
41
45
3. Update your existing project using the command:
42
46
@@ -105,13 +109,11 @@ Once you have completed the previous steps to `npm link` the local copy of `@ang
105
109
ng deploy
106
110
```
107
111
108
-
````
109
-
110
-
Or with the old builder syntax:
112
+
Or with the old builder syntax:
111
113
112
-
```sh
113
-
ng run your-angular-project:deploy
114
-
````
114
+
```sh
115
+
ng run your-angular-project:deploy
116
+
```
115
117
116
118
5. You can remove the link later by running `npm unlink`
117
119
@@ -169,15 +171,19 @@ To debug your deployer you need to:
169
171
170
172
```
171
173
cd ngx-deploy-starter/src
172
-
npx prettier --write '**/*'
174
+
npm run prettier
173
175
npm run build
174
176
npm run test
175
177
npm publish dist --access public
176
178
```
177
179
178
-
## Usage of Prettier Formatter
180
+
## Keeping track of all the forks
181
+
182
+
[ngx-deploy-starter](https://github.com/angular-schule/ngx-deploy-starter/) and
183
+
[angular-cli-ghpages](https://github.com/angular-schule/angular-cli-ghpages/) (both developed by Johannes Hoppe) are follow-up projects of the deprecated [ngx-gh demo](https://github.com/mgechev/ngx-gh).
184
+
This project was a follow-up of the deploy schematics from the [angularfire](https://github.com/angular/angularfire/) project.
179
185
180
-
Just execute `npx prettier --write '**/*'` and the code is formated automatically.
181
-
Please ignore the errors for now. ([error] No parser could be inferred for file)
186
+
To stay in sync with the stuff the Angular team is doing, you might want to keep an eye on the following files:
182
187
183
-
We are still working on this, see https://github.com/angular-schule/ngx-deploy-starter/issues/10 .
Copy file name to clipboardExpand all lines: src/README.md
+35-13Lines changed: 35 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,20 +27,36 @@ ng deploy [options]
27
27
28
28
The following options are also available.
29
29
30
-
#### --configuration
30
+
#### --build-target <aname="build-target"></a>
31
31
32
32
-**optional**
33
-
- Default: `production` (string)
33
+
- Default: `undefined` (string)
34
34
- Example:
35
-
-`ng deploy` – Angular project is build in production mode
36
-
-`ng deploy --configuration=test` – Angular project is using the configuration `test` (this configuration must exist in the `angular.json` file)
35
+
-`ng deploy` – Angular project is built in `production` mode
36
+
-`ng deploy --build-target=test` – Angular project is using the build configuration `test` (this configuration must exist in the `angular.json` file)
37
+
38
+
If no `buildTarget` is set, the `production` build of the default project will be chosen.
39
+
The `buildTarget` simply points to an existing build configuration for your project, as specified in the `configurations` section of `angular.json`.
40
+
Most projects have a default configuration and a production configuration (commonly activated by using the `--prod` flag) but it is possible to specify as many build configurations as needed.
41
+
42
+
This is equivalent to calling the command `ng build --configuration=XXX`.
43
+
This command has no effect if the option `--no-build` is active.
44
+
45
+
**⚠️ BREAKING CHANGE (v1)**
46
+
47
+
This option was called `--configuration` in previous versions.
48
+
49
+
BEFORE (_does not work_):
50
+
51
+
```
52
+
ng deploy --configuration=test
53
+
```
37
54
38
-
A named build target, as specified in the `configurations` section of `angular.json`.
39
-
Each named target is accompanied by a configuration of option defaults for that target.
40
-
Same as `ng build --configuration=XXX`.
41
-
This command has no effect if the option `--no-build` option is active.
55
+
NOW:
42
56
43
-
> **This is a proposal from [RFC #1](https://github.com/angular-schule/ngx-deploy-starter/issues/1).**
57
+
```
58
+
ng deploy --build-target=test
59
+
```
44
60
45
61
#### --no-build
46
62
@@ -52,9 +68,7 @@ This command has no effect if the option `--no-build` option is active.
52
68
53
69
Skip build process during deployment.
54
70
This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact.
55
-
This command causes the `--configuration` setting to have no effect.
56
-
57
-
> **This is a proposal from [RFC #1](https://github.com/angular-schule/ngx-deploy-starter/issues/1).**
71
+
This command causes the `--build-target` setting to have no effect.
58
72
59
73
#### --target-dir
60
74
@@ -66,7 +80,7 @@ This command causes the `--configuration` setting to have no effect.
66
80
67
81
> **This is one of the options you can freely choose according to your needs.**
68
82
69
-
#### --base-href <aname="base-href"></a>
83
+
#### --base-href
70
84
71
85
-**optional**
72
86
- Default: `undefined` (string)
@@ -78,3 +92,11 @@ Specifies the base URL for the application being built.
78
92
Same as `ng build --base-href=/XXX/`
79
93
80
94
> **This is an example how to override the workspace set of options.**
95
+
96
+
## License <aname="license"></a>
97
+
98
+
Code released under the [MIT license](LICENSE).
99
+
100
+
<hr>
101
+
102
+
## 🚀 Powered by [ngx-deploy-starter](https://github.com/angular-schule/ngx-deploy-starter)
0 commit comments