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
The plugin accepts the following configuration parameters. They can be supplied in any of the following ways:
24
24
25
-
- In the `options` object of the plugin configuration block inside `sourcebit.js`, with the value of the _Property_ column as a key;
26
-
- As an environment variable named after the _Env variable_ column, when running the `sourcebit fetch` command;
27
-
- As part of a `.env` file, with the value of the _Env variable_ column separated by the value with an equals sign (e.g. `MY_VARIABLE=my-value`);
28
-
- As a CLI parameter, when running the `sourcebit fetch` command, using the value of the _Parameter_ column as the name of the parameter (e.g. `sourcebit fetch --my-parameter`).
25
+
-In the `options` object of the plugin configuration block inside `sourcebit.js`, with the value of the _Property_ column as a key;
26
+
-As an environment variable named after the _Env variable_ column, when running the `sourcebit fetch` command;
27
+
-As part of a `.env` file, with the value of the _Env variable_ column separated by the value with an equals sign (e.g. `MY_VARIABLE=my-value`);
28
+
-As a CLI parameter, when running the `sourcebit fetch` command, using the value of the _Parameter_ column as the name of the parameter (e.g. `sourcebit fetch --my-parameter`).
29
29
30
30
| Property | Type | Visibility | Default value | Env variable | Parameter | Description |
@@ -34,9 +34,9 @@ The plugin accepts the following configuration parameters. They can be supplied
34
34
35
35
The `writeFile` function is invoked on each entry from the `objects` data bucket, with the following parameters:
36
36
37
-
-`entry` (Object): An entry from the `objects` data bucket
38
-
-`utils` (Object): An object containing utility methods:
39
-
-`slugify` (Function): Creates a filename-friendly version of any string (e.g. `utils.slugify('Hello, Sourcebit friends!') === 'hello-sourcebit-friends'`)
37
+
-`entry` (Object): An entry from the `objects` data bucket
38
+
-`utils` (Object): An object containing utility methods:
39
+
-`slugify` (Function): Creates a filename-friendly version of any string (e.g. `utils.slugify('Hello, Sourcebit friends!') === 'hello-sourcebit-friends'`)
40
40
41
41
The return value of this function determines whether the entry being evaluated will be written to a file and, if so, defines the path, the format and the contents of the file.
0 commit comments