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
@@ -12,29 +13,56 @@ This installer ensures that plugins end up in the correct directory:
12
13
### sample composer.json for plugins
13
14
14
15
{
15
-
"name": "yourvendor/plugin-name",
16
-
"license": "the license",
17
-
"description": "tell the world what your plugin is good at",
16
+
"name": "<your-vendor-name>/<plugin-name>",
18
17
"type": "roundcube-plugin",
19
-
"authors": [
20
-
{
21
-
"name": "<your-name>",
22
-
"email": "<your-email>"
23
-
}
24
-
],
25
-
"repositories": [
26
-
{
27
-
"type": "composer",
28
-
"url": "http://plugins.roundcube.net"
29
-
}
30
-
]
18
+
"license": "GPL-3.0+",
31
19
"require": {
32
-
"roundcube/plugin-installer": "*"
33
-
},
34
-
"minimum-stability": "dev-master"
20
+
"roundcube/plugin-installer": ">=0.3.0"
21
+
}
35
22
}
36
23
37
-
* Submit your plugin to [plugins.roundcube.net](http://plugins.roundcube.net).
24
+
### sample composer.json for skins
25
+
26
+
{
27
+
"name": "<your-vendor-name>/<skin-name>",
28
+
"type": "roundcube-skin",
29
+
"license": "GPL-3.0+",
30
+
"require": {
31
+
"roundcube/plugin-installer": ">=0.3.0"
32
+
}
33
+
}
34
+
35
+
## Roundcube specific composer.json params
36
+
37
+
For both plugins and skins you can, optionally, add the following section to your `composer.json` file. All properties are optional and provided below with example values.
38
+
`persistent-files` defines a list of files which should be maintained across updates. By default only `config.inc.php` is maintained. The array should contain paths relative to the root of your plugin.
This installer will ask if you want to enable each plugin or skin as it is installed. To always enable all plugins or skins add `enable-plugin`/`enable-skin` to the `config` section in the `composer.json` in the root of your Roundcube directory.
53
+
When uninstalling packages Composer will not remove the folder. To remove the folder set `uninstall-remove-folder` in your config.
54
+
55
+
"config": {
56
+
"roundcube": {
57
+
"enable-plugin": true,
58
+
"enable-skin": true,
59
+
"uninstall-remove-folder": true
60
+
}
61
+
}
62
+
63
+
## Repository
64
+
65
+
Submit your plugin or skin to [Packagist](https://packagist.org/).
0 commit comments