Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 4ce47a0

Browse files
committed
(docs): Adding some content adjustments to the file so that things are more clear for the plugin section.
1 parent 4e78a96 commit 4ce47a0

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

docs/getting-started/plugins.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ pagination_prev: getting-started/community-plugins
1010

1111
Amplication uses _Plugins_ to extend the functionality of your generated service. These software additions allow developers to customize the default behavior of [Amplication's code generation process](/plugins/plugin-architecture/), providing hooks into various stages of service creation.
1212

13-
Amplication offers a wide range of community-created plugins that are open-source and available on GitHub. You also have the flexibility to develop your own [custom plugins](/plugins/overview/) so you can tailor your generated service to meet your exact requirements.
13+
Amplication offers a wide range of community plugins that are open-source and available on GitHub.
14+
You can also [develop your own private plugins](/private-plugins/) and [community plugins](/plugins/overview/) to extend Amplication's functionality and have it meet your exact requirements.
1415

1516
You can enable certain plugins when you first create your service.
1617
For example, if you choose MySQL as your database, the _MySQL DB_ plugin will be enabled.

docs/plugins/plugin-architecture.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ The `pluginWrapper` function is invoked with the following arguments:
1515
- **event** - the name of event we want to capture, and change something in the triggered process.
1616
- **args** - the original parameters of the DSG function. These are likely to be used as the parameters of the event, for the plugin developer to have access to these params and manipulate the returned value of the function.
1717

18-
For the purpose of this architecture overview, remember that every event has before and after property (which is a function), representing the event's lifecycle in which you can intervene (before the emission of the event and after the emission of the event). For more information about `before` and `after` event see [Before and After Lifecycle Functions](docs\plugins\before-after.md)
18+
## Event Lifecycle
19+
20+
Each plugin event supports two execution points:
21+
22+
- `before`: Executes before the main event processing
23+
- `after`: Executes after the main event processing
24+
25+
These lifecycle hooks allow precise control over the code generation process.
26+
27+
For more information about `before` and `after` event see [Before and After Lifecycle Functions](docs\plugins\before-after.md)
1928

2029
When the `pluginWrapper` function is invoked, it checks whether the event argument that was passed has a `before` or `after` property. If so, it invokes other functions that are responsible for calculating the final behavior when this event is emitted, or in other words, the outcome of the function that this event is responsible to execute.
2130

docs/plugins/plugindev-overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ pagination_prev: plugins/event-hierarchy
99

1010
# Plugin Development Overview
1111

12-
A plugin is a custom code that extends Amplication developer platform with new features. The features incorporated can be generic, useful to a wide variety of users, or can be very specific to deal with specialized requirements.
12+
A plugin is code that extends the Amplication developer platform by adding new features or modifying existing functionality.
13+
The features incorporated can be generic, useful to a wide variety of users, or can be very specific to deal with specialized requirements.
1314

1415
If you or your organization have a specific workflow, install an existing plugin or write one to customize the platform to perform your required tasks.
1516

0 commit comments

Comments
 (0)