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: README.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,37 +2,48 @@
2
2
3
3
## About
4
4
5
-
This is a sample project that helps you to implement your own __deployment builder__ for the Angular CLI.
5
+
This is a sample project that helps you to implement your own __deployment builder__(`ng deploy`) for the Angular CLI.
6
6
The groundwork of this starter was provided by Minko Gechev's [ngx-gh project](https://github.com/mgechev/ngx-gh).
7
7
8
8
This project has the following purposes:
9
9
10
10
1. To promote the adoption of `ng deploy`.
11
-
2. To clarify various questions and to standardise the experience of the various builders.
11
+
2. To clarify various questions and to standardise the experience of the various builders.
12
+
13
+
**We hope for an inspiring discussion, pull requests and questions.**
12
14
13
15
## Essential considerations
14
16
15
17
These rules are open for discussion, of course.
16
18
17
-
### 1. A deployment builder should always compile the project before the deployment
19
+
### 1. A deployment builder must always compile the project before the deployment
18
20
19
21
To reduce the chances to deploy corrupted assets, it's important to build the app right before deploying it. ([source](https://github.com/angular-schule/website-articles/pull/3#discussion_r315802100))
20
22
23
+
**Current state:**
21
24
Currently there are existing deployment builders that only build in production mode.
22
25
This might be not enough.
23
26
There is also the approach not to perform the build step at all.
24
27
25
-
**Our suggestion:**
26
-
By default, a deployment builder compiles in `production` mode, but you can configure an other coniguration using the option `--configuration`.
28
+
**Our suggestion:**
29
+
By default, a deployment builder **shall** compile in `production` mode, but it **should** be possible to override the default coniguration using the option `--configuration`.
Copy file name to clipboardExpand all lines: docs/README_contributors.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ npm test
12
12
```
13
13
14
14
15
-
## Local development <aname="local-dev"></a>
15
+
## Local development
16
16
17
17
If you want to try the latest package locally without installing it from NPM, use the following instructions.
18
18
This may be useful when you want to try the latest non-published version of this library or you want to make a contribution.
19
19
20
20
Follow the instructions for [checking and updating the Angular CLI version](#angular-cli) and then link the package.
21
21
22
22
23
-
### 1. Angular CLI <aname="angular-cli"></a>
23
+
### 1. Angular CLI
24
24
25
25
1. Install the next version of the Angular CLI.
26
26
@@ -71,7 +71,7 @@ Use the following instructions to make `ngx-deploy-starter` available locally vi
71
71
Read more about the `link` feature in the [official NPM documentation](https://docs.npmjs.com/cli/link).
72
72
73
73
74
-
### 3. Adding to an Angular project -- ng add <aname="local-dev-add"></a>
74
+
### 3. Adding to an Angular project -- ng add
75
75
76
76
Once you have completed the previous steps to `npm link` the local copy of `ngx-deploy-starter`, follow these steps to use it in a local Angular project.
77
77
@@ -102,7 +102,7 @@ Once you have completed the previous steps to `npm link` the local copy of `ngx-
102
102
5. You can remove the link later by running `npm unlink`
103
103
104
104
105
-
### 4. Testing <aname="testing"></a>
105
+
### 4. Testing
106
106
107
107
Testing is done with [Jest](https://jestjs.io/).
108
108
To run the tests:
@@ -114,20 +114,11 @@ npm test
114
114
115
115
116
116
117
-
118
-
119
-
## Testing the standalone CLI
120
-
121
-
To quickly test the file `engine.ts` directly, the standalone mode is the best option.
122
-
Use VSCode and debug the task `Launch Standalone Program`.
Copy file name to clipboardExpand all lines: src/deploy/schema.json
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,17 @@
3
3
"title": "schema",
4
4
"description": "Deployment of Angular CLI applications to GitHub pages (ngx-deploy-starter)",
5
5
"properties": {
6
+
"baseHref": {
7
+
"type": "string",
8
+
"description": "This is an example how to override the workspace set of options. --- Base url for the application being built. Same as `ng build --base-href=/XXX/`."
9
+
},
6
10
"configuration": {
7
11
"type": "string",
8
-
"description": "A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Same as `ng build --configuration=XXX`."
12
+
"description": "This is a proposal from RFC #1. --- A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Same as `ng build --configuration=XXX`."
9
13
},
10
14
"targetDir": {
11
15
"type": "string",
12
-
"description": "Only for demonstration: we will 'deploy' to this folder."
16
+
"description": "This is one of the options you can freely choose according to your needs. --- We will 'deploy' to this folder."
0 commit comments