Skip to content

Commit cf82276

Browse files
committed
fixed minor issues
1 parent e4b5d86 commit cf82276

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

assemblies/dynamic-plugins/assembly-third-party-plugins-installation.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
= Third-party plugins in {product}
33
:context: assembly-third-party-plugins-installation
44

5-
In {product}, third-party dynamic plugins can be integrated seamlessly, enabling the use of external plugins alongside native ones. This flexibility allows you to enhance the platform’s functionality without modifying its core structure. To add third-party dynamic plugins, you can either export them as standalone packages or wrap them in custom wrappers, especially if you want to adjust the plugin’s dependencies or configurations for compatibility.
5+
In {product}, third-party dynamic plugins can be integrated seamlessly, enabling the use of external plugins alongside native ones. This flexibility allows you to enhance the platform functionality without modifying its core structure. To add third-party dynamic plugins, you can either export them as standalone packages or wrap them in custom wrappers, especially if you want to adjust the dependencies or configurations of a plugin for compatibility.
66

77
The third-party plugins are typically packaged as dynamic plugins, which means they can be loaded at runtime, enabling you to easily manage external modules without rebuilding the entire application. The process involves creating a wrapper that exports the plugin code, ensuring that dependencies are correctly bundled or marked as shared, depending on their relationship to the {product-short} environment.
88

@@ -24,13 +24,13 @@ The new backend system is created using `createBackendPlugin()` or `createBacken
2424

2525
The backend plugins contains two types of dependencies, including:
2626

27-
* *Shared dependencies* are provided by the Backstage application and listed as `peerDependencies` in `package.json` file, not bundled in the dynamic plugin package. By default, all `@backstage` packages are shared.
27+
* *Shared dependencies* are provided by an application and listed as `peerDependencies` in `package.json` file, not bundled in the dynamic plugin package. For example, by default, all `@backstage` packages are shared.
2828
+
2929
You can use the `--shared-package` flag to specify shared dependencies. To treat a `@backstage` package as private, use the negation prefix (`!`).
3030

3131
* *Embedded dependencies* are bundled into the dynamic plugin package with their dependencies hoisted to the top level. By default, packages with `-node` or `-common` suffixes are embedded.
3232
+
33-
You can use the `--embed-package` flag to specify additional embedded packages, including those in the same monorepo that do not follow the default naming convention.
33+
You can use the `--embed-package` flag to specify additional embedded packages, including those in the same repository that do not follow the default naming convention.
3434

3535
The following is an example of exporting a dynamic plugin with shared and embedded packages:
3636

@@ -44,20 +44,20 @@ npx @janus-idp/cli@latest export-dynamic-plugin --shared-package '!/@backstage/p
4444
<2> `@backstage/plugin-notifications-backend` package is marked as an embedded dependency and is bundled in the dynamic plugin package.
4545
--
4646

47-
Frontend plugins::
47+
Front-end plugins::
4848
+
4949
--
50-
Frontend plugins can leverage Scalprum for configuration, which the CLI can generate automatically during the export process. The generated default configuration is logged when running the following command:
50+
Front-end plugins can use `scalprum` for configuration, which the CLI can generate automatically during the export process. The generated default configuration is logged when running the following command:
5151

5252
.Example command to log the default configuration
5353
[source,bash]
5454
----
5555
npx @janus-idp/cli@latest export-dynamic
5656
----
5757

58-
The following is an example of default Scalprum configuration:
58+
The following is an example of default `scalprum` configuration:
5959

60-
.Default Scalprum configuration
60+
.Default `scalprum` configuration
6161
[source,json]
6262
----
6363
"scalprum": {
@@ -68,9 +68,9 @@ The following is an example of default Scalprum configuration:
6868
}
6969
----
7070

71-
To customize Scalprum, add a `scalprum` section to the `package.json` file. For example:
71+
You can add a `scalprum` section to the `package.json` file. For example:
7272

73-
.Example Scalprum customization
73+
.Example `scalprum` customization
7474
[source,json]
7575
----
7676
"scalprum": {

0 commit comments

Comments
 (0)