Преглед изворни кода

chore(extra-plugin): statement plugin tag

JianBo He пре 4 година
родитељ
комит
6a07c8ef6d
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      lib-extra/README.md

+ 9 - 0
lib-extra/README.md

@@ -19,6 +19,15 @@ e.g. For an Erlang plugin named `plugin_foo`:
 }.
 ```
 
+Note: The `-emqx_plugin(?MODULE)` attribute should be added to
+`<plugin-name>_app.erl` file to indicate that this is an EMQ X Broker plugin.
+
+For example:
+```erlang
+%% plugin_foo_app.erl
+-emqx_plugin(?MODULE)
+```
+
 ## Build a release
 
 ```