publish-microfrontend 0.15.6-beta.5103 → 0.15.6-beta.5106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,47 @@
4
4
 
5
5
  A simple command-line utility for publishing micro frontends to compatible feed services.
6
6
 
7
+ ## Usage
8
+
9
+ You can publish any micro frontend using this tool using
10
+
11
+ ```sh
12
+ npx publish-microfrontend --url <feed-url> --api-key <feed-api-key>
13
+ ```
14
+
15
+ By default, this will take the current folder, pack it, and push it to a server. This server could also be configured in a `.microfrontendrc` file such as
16
+
17
+ ```json
18
+ {
19
+ "url": "https://myfeed.com/api/v1/pilet"
20
+ }
21
+ ```
22
+
23
+ No API key is necessary. Depending on your feed server you might want to use interactive authentication:
24
+
25
+ ```sh
26
+ npx publish-microfrontend --url <feed-url> --interactive
27
+ ```
28
+
29
+ ## Config Options
30
+
31
+ For the `.microfrontendrc` file the following options exist:
32
+
33
+ - `url`: The URL of the feed service to use.
34
+ - `apiKey`: The API key to use when authenticating.
35
+ - `interactive`: Determines if the interactive login should be used to retrieve the authentication token / API key. Defaults to *false*.
36
+ - `cert`: The path to the custom certificate to use as CA.
37
+ - `mode`: The auth mode to use (can be 'none', 'basic', 'bearer', 'digest'). Defaults to *basic*.
38
+ - `from`: Describes the source location (can be 'local', 'remote', 'npm'). Defaults to *local*.
39
+ - `fields`: An object using key-value pairs to place additionally in the request's body.
40
+ - `headers`: An object using key-value pairs to place additionally in the request's header.
41
+
42
+ The config options can all be overriden by the CLI flags. They serve as the default values for the CLI flags.
43
+
44
+ ## CLI Flags
45
+
46
+ The CLI flags are a superset of the shown config options.
47
+
7
48
  ## License
8
49
 
9
50
  Piral is released using the MIT license. For more information see the [license file](./LICENSE).